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

What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,






Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.

2 Answers   IBM,


what are the key words you must use when using a subfile?

0 Answers   IBM,


why we do STRSRVJOB in batch debugging in as400

1 Answers  


How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?

11 Answers   Bank Of America, CSC, IBM,


How to select highest score of each subject or how to select highest income of every month?

0 Answers  


can we use cl programming to update or delete physical files

12 Answers  


Categories