What is Multi Occurrence Data Structure(MODS)?



What is Multi Occurrence Data Structure(MODS)?..

Answer / gagan44

Multiple occuerence data structure is a data structure in which multiple oocurence of the data are defined .
It is similiar to a 2-D array.
For Eg: a 2-D array is defined as:
ara1 ds dim( 99 ) qualified
d ara2 10a dim( 99 )
d ara3 10i 0 dim( 99 )

If Multioccurence data structure is defined in same way then it would look like this:
DS1 ds Occurs( 99 )
d FLD2 10a dim( 99 )
d FLD3 10i 0 dim( 99 )

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,


I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic

2 Answers  


Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4

4 Answers  


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,






How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


difference betwen keywords and opcodes

3 Answers  


two attributes which govern the excecution of a job>>>>??

2 Answers   CTS,


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


how to run only 10 modules of existing N modules in service program in RPGILE ?

3 Answers   Wipro,


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


Maximum how many files declare in rpgle

3 Answers   TCS,


Categories