HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ?
2:Can we used "seton lr" OR "*INLR = *ON" in between the
program code ?
3:if yes then according to there function the code which is
written acter seton lr/ *inlr should not be execute . Can any
one tell me why those code get executed ?

Answers were Sorted based on User's Feedback



HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton..

Answer / kushaal

SETON LR or INLR indicator is not to come out of the
program when its on, it means when all the 'C' spec codes
gets completed it make sures that the open files gets
closed. Nothing really to close the program.

Is This Answer Correct ?    5 Yes 2 No

HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton..

Answer / madhab sikder

It is to inform the system that while coming out of the program, it should release all it's resources allocated to it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

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  


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?

3 Answers   HSBC,


How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


in rpg could u please tell me errors types and meanings like 3030 that ....

1 Answers   EXL, UHG,






I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?

2 Answers  


Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?

1 Answers  


How we will read call stack?

4 Answers  


how do u track msg in cl pgm???

1 Answers   CTS,


how to display all the members records in a physical file without using ovrdbf?

9 Answers  


How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

1 Answers  


Categories