What is Multi Occurrence Data Structure(MODS)?
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 |
1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?
can i use unique key in LF
Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?
Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.
1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
two types of read performed in dataqueue?????
how do I preserve and clean the array?
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400
10 Answers IBM, Tech Mahindra,
If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?