What will happen if we r using seton lr after return or vice
versa.
Answer Posted / naveen chandra joshi
The question asked is:
What will happen if we r using seton lr after return or vice
versa?
Answer: When we use SETON LR after Return, SETON LR will never be executed because before this operation could be performed, Return will send the control back to the called program.
When we use SETON LR before Return then the program will release all the used resources (like open files, variables, any API used, etc) and then return statement will be executed which will send the control back to the called program. I hope your question has been answered.
Regards,
Naveen Chandra Joshi
+91.9891501280
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
what is program status data structure?
What is the difference between copybooks and subprocedures in as400?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
are there any useful c runtime apis that I can call from rpg iv?
What is ment by record level identifier?
can I touch the array during treatments?
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?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
How to handle duplicate error handling in RPG?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
how do I declare a table or array in rpg iv?
How to declare the pull button in AS/400..
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
what is the procedure and explain about real time scenario.
how do I preserve and clean the array?