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
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 |
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 |
Answer / syam
A1. READP
A2. CALL PGM(KCS/MYPROGRAM) PARM(11111 22222)
A3. EXTNAME
| Is This Answer Correct ? | 5 Yes | 5 No |
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 |
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
Can we possible to key with the date field?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
What is the purpose of record level identifier?
Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?
how to display all the members records in a physical file without using ovrdbf?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?
How to identify the object has compiled with the debug view as *source without using STRDBG?
how does the rpg element work?
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
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?