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



I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execut..

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

I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execut..

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

I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execut..

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

I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execut..

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

I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execut..

Answer / vinit soni

yes,It will execute.access path will be created again.

Is This Answer Correct ?    3 Yes 8 No

I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execut..

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

Post New Answer

More RPG400 Interview Questions

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?

3 Answers   Cap Gemini,


what is the rpg system?

0 Answers   IBM,


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


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?

3 Answers  


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  






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.

4 Answers   HCL,


What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???

7 Answers   HSBC, Systime,


How to declare the pull button in AS/400..

0 Answers  


Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?

1 Answers   Infogain,


what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????

1 Answers   CTS,


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

3 Answers  


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.

9 Answers   IBM,


Categories