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
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is difference between bind by copy and bind by reference?
How can we override a file during runtime in rpg?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
how do I declare a minor?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
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?
How to select highest score of each subject or how to select highest income of every month?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
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?
how do I preserve and clean the array?
What is the difference between copybooks and subprocedures in as400?