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

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

4 Answers   Manhattan,


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,


how do I preserve and clean the array?

0 Answers   IBM,


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

0 Answers  






what is meant by record lock.how records are locked.what is the purpose of record lock.if records are locked what happens.how to find out which record is locked.

4 Answers   HCL,


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,


which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


can I touch the array during treatments?

0 Answers   IBM,


list down and describe the sub systems vailable

5 Answers   IBM,


Categories