View previous topic :: View next topic
|
Author |
Message |
shihas_backer
New User
Joined: 11 Dec 2005 Posts: 2 Location: Chennai
|
|
|
|
I need to build a 'n' level table, based on the parameter passed.
Ex. if parameter is 01 then table should look like
Level01 Occurs 100 times.
if parameter is 02 then table should look like
Level01 Occurs 100 times
Level02 Occurs 100 times
if parameter is 04 then table should look like
Level01 Occurs 100 times
Level02 Occurs 100 times
Level03 Occurs 100 times
Level04 Occurs 100 times
Kindly let me know, if this is possible in COBOL, Under IBM Mainframe environment.
Regards,
Shihas
***EMail ID REMOVED... Use CODE tag to include mail id*** |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Since the number of levels in a table is generated at compile time, you would have to define the table with the maximum number of levels at compile time.
At runtime, the passed parameter would inform the program how many of those levels are to be used.
In other words, no. |
|
Back to top |
|
|
|