1. I have2 records in a PF.
READ PF
DO
DSPLY EMPNO
RETRN
DSPLY EMPNO
ENDDO
What was the output
2. SETON LR vs RETURN
3. Primary File
4. How to delete a deleted spaces
5. How to read a PF in reverse order in CL
6. I have a object in Lib A, B and C. But it shows in D
Lib..Why?
7.
Answer Posted / srikanth
After executing RETURN statement, any statements next to RETURN will also be executed. In the above code program will display two records. When you call same program again from same session next two records will be displayed. If program is coded with LR indicator, next call of same program will also display same first two records.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
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?
what do you mean by an input subfile, what are the keywords required?
can you debug ile rpg program using isdb?
what is an online rpg?
what is program status data structure?
Explain mdt?
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?
what is a rpg?
How Chain operation copies the record's data to the input buffer for the program?
how can I tell when to replace the array?
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...
how does the rpg element work?
what is the procedure and explain about real time scenario.
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?