1.If *HIVAL SETGT is used what opcode is used to read a
record?
A:READ
B:READPE
C:CHAIN
D:READP
2.How to pass numeric parameter to the rpg pgm from the
command line?
3.What keyword is used on the rpg 4 definition
specification to rename a subfile in an externally
definition data structure?

A:RENAME
B;LIKE
C:EXTNAME
D:EXTFLD

Answers were Sorted based on User's Feedback



1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAI..

Answer / sanjeev

(1)readp
(2) we can pass paramaters through command line

If a numeric A has length 5 and its value is (8)then on
command line we have to type X'00008F'
(3)EXTNAME

Is This Answer Correct ?    13 Yes 0 No

1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAI..

Answer / yash

1. ReadP
2. Its not advisable to pass numeric parameters from
command line to RPG program as numeric parameters from
command line goes in 15,5 packed format and generally the
data gets corrupted.
3. EXTNAME

Is This Answer Correct ?    6 Yes 0 No

1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAI..

Answer / syam

A1. READP
A2. CALL PGM(KCS/MYPROGRAM) PARM(11111 22222)
A3. EXTNAME

Is This Answer Correct ?    5 Yes 5 No

1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAI..

Answer / naga srinivas.kattula

1)We can use both READP and READPE ..bcz REAP is used to
read the records from bottom to top and READPE reads the
records which are equal to KEY in facor1 from bottom to
top(we get equal records of key value from bottom to top)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More RPG400 Interview Questions

How to write record if no field or the field are different in physical file in rpgle ?

0 Answers  


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


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

7 Answers  


how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE

3 Answers   iGate,


suppose if we want to update the data in cl what we will do?

9 Answers  






wat is curser?? and its types???

4 Answers   HSBC,


where we give the MSGSFL in rpg400?

4 Answers  


how to check on which PF , the LF is dependant ?

4 Answers   IBM,


what is the difference between SETON RT & RETURN?

5 Answers  


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

0 Answers   CTS,


Categories