I have a RPG program of 100 Lines and first line is to
SETON indicator LR. Will the program execute rest of the 99
Lines?
Answers were Sorted based on User's Feedback
Answer / bharat
Yes it will but if with Primary file with RPG cycle, it
will not execute for all records.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / biju antony
LR not stand for terminating program. So, it will execute
rest of the program codes. Of course, it won't give you
proper answers if it related to files or indicators. LR
will close all files opened in program as well as switch
off all indicators used so far.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / swadesh.yadav
Definitely,program will execute and display the result also
but it can destroy the flow of program.
Is This Answer Correct ? | 8 Yes | 4 No |
Answer / manish
SETON LR is used to sense that last record has been
reached, so whenever SETON LR occurs all the files will be
closed and the control will be transferred to the next
executable lines...
Is This Answer Correct ? | 3 Yes | 6 No |
yes,It will execute.access path will be created again.
Is This Answer Correct ? | 3 Yes | 8 No |
Answer / reecha
Seton LR will close all the file, the next line will be
definately executed but it will give error for any file
related execution
Is This Answer Correct ? | 3 Yes | 9 No |
1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?
what is the rpg system?
1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.
what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?
What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?
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.
What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???
How to declare the pull button in AS/400..
Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.