OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-162
Example 2 in TAL—Moving a File Between Two
Remote Systems (in Wait Mode)
37 ! by FTM procedure calls. !
38 ! !
39 ! check_error A procedure that checks for errors !
40 ! returned by FTM procedure calls. !
41 ! !
42 ! check_state A procedure that handles a failed state !
43 ! in the remote FTAM regime. !
44 ! !
45 ! bad_event A procedure that handles unexpected !
46 ! FTAM events. !
47 ! !
48 ! check_action_diag A routine that checks the action result !
49 ! and diagnostic messages returned by an !
50 ! FTM procedure. !
51 ! !
52 ! FTM request and response procedures return an I/O status value !
53 ! on the procedure call. The check_status procedure checks the !
54 ! results of the I/O operation. The FTM indication and confirm !
55 ! procedures return an error value indicating the outcome of the !
56 ! completed service. The procedure check_error checks the returned !
57 ! error code. !
58 ! !
59 ! This example is provided to illustrate FTAM programming concepts. !
60 ! It does not necessarily illustrate the recommended programming !
61 ! style for a real application, which might be more modularized to !
62 ! provide a higher level of top-down coding, for instance. To en- !
63 ! hance the illustration of FTAM programming concepts, this example !
64 ! demonstrates programming tasks in sequence, emphasizing a more !
65 ! linear approach to coding. !
66 !-----------------------------------------------------------------------!
67 ! !
68 ! NOTE : Before attempting to run this program, set the following !
69 ! items correctly: !
70 ! !
71 ! a) environmental variables !
72 ! b) required parameters for the FTM_INITIALIZE_REQ_ call !
73 ! !
74 !-----------------------------------------------------------------------!
75