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 to set on/off a group of indicators in a single statement?

3 Answers  


what is the difference between the procedure and module in ILERPG?

4 Answers  


1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?

3 Answers   HSBC,


A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???

3 Answers   HSBC,


list down and describe the sub systems vailable

5 Answers   IBM,






wat is curser?? and its types???

4 Answers   HSBC,


if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.

10 Answers   Four soft,


what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file in qtemp no of records in file in library qtemp is checked wat shud be the count of records let say it was 10 initially endpgm

2 Answers  


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

0 Answers  


As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?

1 Answers  


Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


Categories