Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting data structure used as array in RPG III to RPG IV

Status
Not open for further replies.

Ju5

Programmer
May 25, 2007
85
PH
How do you translate the following code from RPG to RPGLE?

E CLU 8 40
ICfile NS
I 1 13 Order#
I 14 53 CLINE1
I 54 93 CLINE2
I 94 133 CLINE3
I 134 173 CLINE4
I 14 173 CLU

Cfile is an external file with a DDS.

I know the array in the E specs can be replaced by the DIM keyword in the D-specs in RPGLE and that I can use CLU(1,2,3,etc) instead of CLU,(1,2,3,etc) in the C-specs but none of the code sample I have seen have a DS defined as an array.

Thanks in advance for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top