Can AnyOne tell me how to read join logical file in rpg from starting to end?
Answer Posted / uday bagdi
1) You can use primary file key field in join logical file. If your join logical file has key field then use *LOVAL SETLL. and read that file in loop.(This condition read records from start to end)
2) if your logical file not a key filed then use RRN like
1 SETLL and read that file in loop. (This condition read records from start to end)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
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 you use commitment control in rpg?
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?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
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...
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
can you debug ile rpg program using isdb?
What is the difference between iter and do?
what is the procedure and explain about real time scenario.
what is the necessary keyword needed to scroll subfile records?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
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?