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

what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


please guys help me,I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. send me code

4 Answers   Virtusa,


RPG/400 faqs?

1 Answers   HSBC,


What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?

2 Answers   CGI, Wipro,


i would like to know under what circumstance the object will get locked on AS400.

5 Answers   IBM,






Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


check existence of one record without using chain or read?

1 Answers   IBM,


What is the purpose of record level identifier?

0 Answers  


How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?

4 Answers   CTS,


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


can anyone say,what is the use of operation extended H/N/P?

2 Answers  


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


Categories