File Utility Program (FUP) Management Programming Manual

FUP Programmatic Interface
File Utility Program (FUP) Management Programming Manual523322-001
2-2
Communicating With FUP
FUP uses the default volume and subvolume in the startup message unless
ZSCRATCH is specified only for the LOAD or LOADALTFILE commands. They are
not used for the other commands.
The text portion of the startup message must be filled with zeros.
Figure 2-1. Communicating With FUP
002CDT .CDD
Send requests
Return replies
Receive the buffer.
Interpret the request.
Execute the command.
Return a response.
FUP
Server
1. Start a FUP process.
2. Open the FUP process and
send a startup message.
3. Close the FUP process.
4. Open the FUP process for
programmatic access.
5. Allocate the buffer.
6. Initialize the buffer.
7. Initialize structured tokens.
8. Add tokens to buffer.
9. Send the command buffer.
10. Interpret the response record
buffer.
11. Take an appropriate action;
execute an error routine if an
error occurs.
12. If the context token is present,
rebuild the buffer and return
to step 9.
13. If any more command requests
exist, return to step 6.
14. Close FUP.
Management
Application