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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Complex data structurs

Status
Not open for further replies.

RedMage1967

Programmer
Mar 13, 2003
200
US
Just upgraded to V5R2. The online help says that complex data structures are not allowed in V5R2. But, IBM doesn't show you how to define the data structure. Can someone please help me with the following "D" Specs?
Code:
D Graphs          Ds                Qualified Dim(13)      
D  TopValue                    4    Inz(*Blanks) 
D  Graph                       2    Inz(*Blanks) Dim(13)
D  BtmLine1                    3    Inz(*Blanks)
D  BtmLine2                    3    Inz(*Blanks)
I get a complier error saying the subfields are not defined. What am I doing wrong????

RedMage1967
IBM Certifed - RPG IV Progammer
 
I had the same problem a few months ago. I made a few changes I found off this bookmark

OS/400 V5R2: More Features Added to RPG IV

I'll see if I can track down the PGM I wrote that used the new structure and post it back. not sure if I can remote in now though

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
[/sub]
 
Hi
and what about OCCURS(13) except DIM(13) in DS definition.
 
I feel so embarresed.
The "D" specs are correct.
I confused GRAPHS (the data structure name), and
GRAPH (the subfield in GRAPHS defined as an array.
I changed the names. The data structure is now called GRAPH, and the subfield array is now called USAGE.
Thanks for the help. Should have double checked the program code first, then called for help.

RedMage1967
IBM Certifed - RPG IV Progammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top