OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-57
Example 1 in TAL—Updating a Remote File (in
Nowait Mode)
37 ! confirm procedures !
38 ! !
39 ! check_status A procedure that checks status !
40 ! returned by FTM request and !
41 ! response procedures as well as the !
42 ! I/O completions !
43 ! !
44 ! bad_state A procedure that handles an invalid !
45 ! FTAM state result !
46 ! !
47 ! check_action_diag A procedure that checks the action !
48 ! result and diagnostic messages !
49 ! returned by an FTM procedure !
50 ! !
51 ! FTM requests and responses return a status value on both !
52 ! the procedure call and the I/O completion. The check_status !
53 ! procedure checks the results of the operation. The FTM !
54 ! indication and confirm procedures return an error value and !
55 ! do not have I/O completions. The check_error procedure checks !
56 ! the return value. !
57 ! !
58 !-----------------------------------------------------------------------!
59 ! !
60 ! NOTE : Before attempting to run this program, make sure: !
61 ! !
62 ! a) the environmental variables are set correctly !
63 ! b) the local file contains at least five records !
64 ! c) the local file record length is less than or !
65 ! equal to 132 bytes !
66 ! d) the required parameters (currently using defaults) !
67 ! in the FTM_INITIALIZE_REQ_ call are set correctly !
68 ! !
69 !-----------------------------------------------------------------------!
70
71
72 !-----------------------------------------------------------------------!
73 ! Source in the FTM and APS structure definitions and literals from !
74 ! the appropriate volume and subvolume. !
75 !-----------------------------------------------------------------------!