Host Integration Server 2004 can communicate with RPG programs on an AS/400 computer through a feature that is named Transaction Integrator (TI). When you use the TI Designer to build TI components in Microsoft Visual Studio .NET, the Import RPG Wizard reads a text file that contains RPG code, and then the Import RPG Wizard extracts information about input parameters and output parameters to be used. The RPG Import Wizard only recognizes parameter entries if the *ENTRY PLIST statement comes before these parameter entries in the RPG code.
The following code sample from the Host Integration Server 2004 Software Development Kit (SDK) shows the correct placement of the *ENTRY PLIST statement.
**********************************
* PROGRAM - CDRBANKRPG
* DESCRIPTION - AS400 CEDAR BANK SERVER
* WRITTEN FOR - MICROSOFT Corporation
********************************************
H
*
* Data Definitions
*
D Name s 30A
D AccBal S 9P 2
D AcctNum S 6A
*
* Mainline
*
C *ENTRY PLIST
c PARM NAME
c PARM AcctNum
c PARM AccBal
*
c Z-ADD 2003.66 AccBal
*
C EVAL *INLR = *ON