Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Last statement of any RPG pgm is LR?

Answers were Sorted based on User's Feedback



Last statement of any RPG pgm is LR?..

Answer / amit

Not necessary. We can write the codes after SETON LR also
and it will execute that too. The main difference is that
the program will end after the last line of coding you did
and will clear all the access path and variables to blanks
or zeros.
But when you give RETURN then the program will not execute
the below coding part and will end as soon as the RETURN is
encountered,but here it will not clear the access path and
the variables..if you run the program again you will find
the last value in the variable.

hope this will help

Is This Answer Correct ?    13 Yes 0 No

Last statement of any RPG pgm is LR?..

Answer / amit

Not necessarily. LR is generally set on after all
processing is doen i.e. at the end of the program but there
is no hard and fast rule for that.

Is This Answer Correct ?    7 Yes 1 No

Last statement of any RPG pgm is LR?..

Answer / sivakumar y

While writing a program Last statement of RPG program need
not be LR. It is the last executable statement. i.e. after
all processing is done LR(Last Record indicator) will be
set on.

NOTE: In a program that does not contain a primary file,
you can set the LR indicator on as one method to end the
program.

Is This Answer Correct ?    4 Yes 1 No

Last statement of any RPG pgm is LR?..

Answer / vishal

Not necessary . In case of RPG cycle where primary file is defined, it does not require any LR statement or RETURN opcode. if there is any total calculations in output spec then that is performed at last using L0 indicator.

Is This Answer Correct ?    1 Yes 0 No

Last statement of any RPG pgm is LR?..

Answer / syam

No, Last statement is RETURN. Means Exit from program
LR is second last statment. Means move pointer to end of
file.

Ex: CLOS BEGSR
MOVE '1' *INLR
RETURN
ENDSR

Is This Answer Correct ?    4 Yes 9 No

Post New Answer

More DB400 Interview Questions

How to find the list of source physical files in a library?? Is there any way to get a list??

5 Answers   Infosys,


What is the purpose of the chain and setll and setgt?

0 Answers  


When u create a PF and did not fill up Maint parameter, then by default which access path will the system take & why

2 Answers   HCL,


Is it possible to create a logical file whose Physical file is not in same library?

6 Answers  


one physical file can have how many max of logical files? what is the primary file?

3 Answers   Four soft,


Why we create the Physical File Member?

5 Answers  


I have a PF with out any data but the dependent LF is having data?

1 Answers   HCL,


How to find the list of source physical files in a library?

0 Answers  


can any one tell me what is meant by PSSR? Kindly elaborate it...

1 Answers  


Q.1 how to implement the commitment control. 2.how to control commitment control from external program.

7 Answers   IBM,


In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.

0 Answers   Nous,


If we use the file level keywords like LIFO, FIFO, FCFO in a file, can we see the impact of it by doing the run query of the file? if not how can we see the impact of these keywords.

2 Answers  


Categories