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

I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?

5 Answers   HCL,


I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?

4 Answers  


what is file information data structure?

1 Answers   IBM,


HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....

1 Answers   HCL, Mind Tree,






Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,


how do I declare a minor?

0 Answers   IBM,


How would display prime numbers using CL program?

0 Answers   Hexaware,


One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?

4 Answers  


What will happen if we r using seton lr after return or vice versa.

5 Answers  


Categories