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
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 |
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 |
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 |
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 |
yes,It will execute.access path will be created again.
Is This Answer Correct ? | 3 Yes | 8 No |
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 |
what is the equivalent keyword for CHAIN opcode ??
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
RPG/400 faqs?
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?
i would like to know under what circumstance the object will get locked on AS400.
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?
check existence of one record without using chain or read?
What is the purpose of record level identifier?
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?
1.The questions have given an array declaration and move operation then this statement is correct or not?
can anyone say,what is the use of operation extended H/N/P?
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...?