1.How can you search an entire source file for a particular
field name?
2.How can you find the differences between two versions of
the source for the same program?
3.What is a hidden field as it relates to a sub file?
4.How do you display a sub file that has no records in the
sub file?
Answer Posted / sourabh
1. Through READE opcode
4. With the help of SFLINZ keyword. Use this keyword in
display file with indicator (suppose 33).
After the Do loop where the data has been sent to buffer but
not written on the subfile, use the following code
IF RRN = 0 (OR 1 DEPEND FOR WHICH VALUE U HAD INITIALIZED IT)
MOVE *ON TO CONTROLLER INDICATOR
MOVE *IN33 *ON
MOVE *OFF TO CONTROLLER INDICATOR
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
what is the rpg system?
How can we override a file during runtime in rpg?
what is the difference between do while and do until?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
what is kids-rpg?
How many program bind in one module....
how does the rpg element work?
What is the purpose of record level identifier?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what is a rpg?
How to select highest score of each subject or how to select highest income of every month?
how do I declare a table or array in rpg iv?
what is *place and *auto keyword in prtf ?plz explain
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.