OSI/FTAM Programming Guide

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide528612-001
5-42
Writing a File: TAL Programming Example
Writing a File: TAL Programming Example
1 !----------------------------------------------------------------------!
2 ! !
3 ! Example in TAL - Creating and writing to a remote FTAM-1 file !
4 ! (in Wait Mode) !
5 ! !
6 !----------------------------------------------------------------------!
7 ! !
8 ! Program Name: EXTWRIF1 !
9 ! !
10 ! Program Description: !
11 ! !
12 ! This program, in wait mode, creates and writes to a remote FTAM-1 !
13 ! file using a local FTAM-1 file. The data transfer is initiated !
14 ! and managed by this application, which opens and reads the local !
15 ! file using Sequential Input/Output (SIO) procedure calls and !
16 ! and sends records as data requests to the remote file. !
17 ! !
18 !----------------------------------------------------------------------!
19 ! !
20 ! NOTE : Before attempting to run this program, set the following !
21 ! items correctly: !
22 ! !
23 ! a) environmental variables !
24 ! b) required parameters for FTM_INITIALIZE_REQ_ call !
25 ! !
26 !----------------------------------------------------------------------!
27
28
29 !--------------- ------------------------------------------------------!
30 ! Source in FTM and APS structure definitions and literals. !
31 !----------------------------------------------------------------------!
32
33 ?nolist
34 ?source zftmtal ! FTAM DDL !
35 ?source zapstal ! APS DDL !
36 ?list
37 ?NOMAP