1) How to retrieve RRN through RPG ?
2) How to pass parameter by value ?
3) How to trap the error through the RPG/400

Answers were Sorted based on User's Feedback



1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / swetha p rao

1. File information Data Strucutre

2. Using Parm

3. Monitor
On-Error *All
Endmon

Is This Answer Correct ?    20 Yes 4 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / zhang

1. in F specification, use RECNO keyword.
2.
3. Use error capture subrountine, *PSSR

Is This Answer Correct ?    6 Yes 2 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / deepu

1.USING SETLL OR CHAIN BY GIVING RRN IN FACTOR ONE,OR
SPECIFY RECNO KEYWORD IN FILE LEVEL.

2.USING CALL AND PARM



3.USING ON-ERROR OPCODE

Is This Answer Correct ?    8 Yes 5 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / vishal

using recno(var) keyword in f spec where var is a variable
to store rrn.

Is This Answer Correct ?    3 Yes 1 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / guest

1 we can retrieve RRN through RPG by SFLRCDRRN along with
dds

3. we can trap the error through the RPG/400 by PSSR, INFDS

Is This Answer Correct ?    5 Yes 4 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / dileep

WE CAN RETRIEVE RRN BY USING INFDS

Is This Answer Correct ?    2 Yes 1 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / kumar

1) using CHAIN OR SETLL
EX : FSAMP IF E DISK
C 5 CHAIN SAMP
FLD DSPLY
EVAL *INLR=*ON

2) Using call and parm


3)Indicators, infds(file information datastructure) *pssr

Is This Answer Correct ?    2 Yes 1 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / sbakshi4

useing below query:

select rrn(a),a.* from Lib_name/File_name a

Is This Answer Correct ?    0 Yes 0 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / prateek

we can pass parameter by value to *PGM object.

Is This Answer Correct ?    0 Yes 5 No

1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the erro..

Answer / girish kulkarni

1) Through CHAIN opcode it is possible , give RRN in Fact1
2) Write the value in Fact2 of Parm Opcode and name of
parameter in result field
3) Through the program status data structure or File
information data structure

Is This Answer Correct ?    4 Yes 14 No

Post New Answer

More RPG400 Interview Questions

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

4 Answers   Accenture, IBM,


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

2 Answers  


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

0 Answers   IBM,


purpose of pannel group??/

2 Answers   CTS,


As400 Command to find the Name of the Program to which a Particular Module is Bound..? Ex: IC210AMR (*MODULE) is bound with Other Modules which Forms Program Object as IC210ABP(*PGM) . As400 Command to find the IC210ABP Using IC210AMR..? Thanks

5 Answers   CTS,






1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF

5 Answers  


I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....

1 Answers  


Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?

2 Answers  


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,


what is program status data structure?

1 Answers   IBM,


How can you delete records form a file in rpg without using "Delete" OPCODE?

7 Answers  


How to print Superscript / Subscript from RPG400

1 Answers  


Categories