[ Previous |
Next |
Contents |
Search ]
3270 Host Connection Program 2.1 and 1.3.3 for AIX: Guide and Reference
Using an HCON AUTOLOG Script
This procedure explains how to use an HCON AUTOLOG script.
Prerequisite
An AUTOLOG script must be stored in your $HOME directory.
Note: The /usr/lib/hcon directory provides three sample AUTOLOG scripts: SYSvm1, SYSvm2, and SYStso. The directory also contains the logform file, which shows the format of the genprof command menu.
Using an AUTOLOG Script with the File Transfer Command
To use an AUTOLOG script with the fxfer command, run the command implicitly without initiating the corresponding e789 emulation session. Then, specify the -nSessionName flag.
Using an AUTOLOG Script with an API Program
To use an AUTOLOG script with an API program:
- Compile the API program by entering:
- For C programs:
cc apiprog.c -o apiprog -l g3270
- For FORTRAN programs:
xlf apiprog.f -o apiprog -lc -l g3270f -lg3270
- For Pascal programs:
xlp apiprog.pas -o apiprog -lc -lg3270p -lg3270
- Execute the API program:
- To start the API program implicitly, execute the program without initiating an emulator session. If the Host Logon ID is not in the session profile, the API program prompts for a logon ID and password. Otherwise, the program only prompts for the password.
- To start the API program explicitly, start an emulator session using the e789 command. Before compiling the application, set the flag parameter in the g32_open or g32_openx call to 1
. Then execute the API program.
[ Previous |
Next |
Contents |
Search ]