Progress/400
Product Guide
Transferring Progress 4GL Procedures to the AS/400
This section provides guidelines for transferring 4GL code to the AS/400:
- Remove all references to terminal input or output. Use the INPUT FROM and OUTPUT TO statements.
- Select a method to transfer code to the AS/400. Options for transfer might be using FTP, Client Access, or Rumba. If you do not have any of these applications, Progress provides a sample procedure that might help. Refer to your Progress/400 Release Notes for more information.
- Transfer the code. Once transferred, the code resides in the IFS file system.
Writing Your Own Transfer Program
To transfer files to the AS/400 using the Progress 4GL, use the QCMD interface. For a definition of the QCMD interface, see Progress 4GL Interfaces to OS/400 Languages and Objects." Progress/400 provides three server commands that specifically handle file transfer. Table 5–5 describes these commands.
Table 5–5: QCMD Commands for File Transfer Command Description OPNSTMF Opens an OS/400 stream file WRTSTMF Writes to an OS/400 stream file CLOSTMF Closes an OS/400 stream file
Follow these steps to transfer p-code to the AS/400:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |