OSI/FTAM Programming Reference Manual

HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-1
G
NonStop FTAM Programming
Examples
This appendix covers the following topics:
This appendix contains sample programs that illustrate the use of FTAM programming
procedures. Example 1 updates a remote FTAM-2 file in nowait mode. Example 2
moves an FTAM-3 file between two remote systems in wait mode. Both examples are
provided in the C and TAL programming languages, and the source programs for each
version are included in the release subvolume ZOSIFTAM.
In addition to the example programs contained in this appendix, the OSI/FTAM
Programming Guide also contains two example programs. One example, called
EXCREAF3 and written in the C programming language, reads an FTAM-3 file from a
remote system and writes the contents to a file on the NonStop system. A second
example, called EXTWRIF1 and written in the TAL programming language, creates an
FTAM-1 file on a remote system and writes to it the contents of an edit file on the
NonStop system.
To fully understand these programs, you should be familiar with the material in the
OSI/FTAM Programming Guide. Section 4, FTM Procedures also provides reference
information about these procedure calls and their parameters.
All procedure calls except those for the erase and locate procedures are included in
one or both of the examples in this appendix. Short program excerpts illustrating how
to use the erase and locate procedures are included in the procedure descriptions in
Section 4, FTM Procedures. The programming examples illustrate the use of all
optional parameters. For references to line numbers on which a procedure call is
illustrated, see “Examples” under each procedure call description in Section 4, FTM
Procedures.
Topic Page
Example Structure and Protocol
G-2
Example 1 in C—Updating a Remote File (in Nowait Mode) G-12
Example 1 in TAL—Updating a Remote File (in Nowait Mode) G-56
Example 2 in C—Moving a File Between Two Remote Systems (in Wait Mode) G-106
Example 2 in TAL—Moving a File Between Two Remote Systems (in Wait Mode) G-161
Translation Application Example G-221