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 |
Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2
Can anybody tell me that why we use option(*nodebugio)in H- Spec?
what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?
what is kids-rpg?
HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
how do u track msg in cl pgm???
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?
i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.