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 |
how can i retrieve the field name from display file at run time? Devendra Singh Tomar
Can we create 300 logical files based on a single physical file using the CRTLF command only once?.
How can we receive values from a called procedure in RPG?
use of PUTOVR,OVRDTA,KEEP keywords?
Can we journel logical file and access path? Can we use commitment control for non-join L.F?
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG
How to update physical file in rpgle without using display file?
What is the purpose of record level identifier?
Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?
i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.
In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?