Progress/400
Product Guide


Transferring Progress 4GL Procedures to the AS/400

This section provides guidelines for transferring 4GL code to the AS/400:

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:

  1. Develop your code on your remote client. Make sure to remove user-interface syntax.
  2. Perform a syntax check on the remote client to make sure the p-code is valid.
  3. Transfer the code to the AS/400 from the remote client.

Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095