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

how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

1 Answers  


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


how do I preserve and clean the array?

0 Answers   IBM,






can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?

2 Answers   TCS,


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?

1 Answers  


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.

1 Answers   Voltech,


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,


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?

0 Answers  


Categories