1.If *HIVAL SETGT is used what opcode is used to read a
2.How to pass numeric parameter to the rpg pgm from the
3.What keyword is used on the rpg 4 definition
specification to rename a subfile in an externally
definition data structure?
Answers were Sorted based on User's Feedback
Answer / sanjeev
(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'
|Is This Answer Correct ?||12 Yes||0 No|
Answer / yash
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.
|Is This Answer Correct ?||6 Yes||0 No|
Answer / syam
A2. CALL PGM(KCS/MYPROGRAM) PARM(11111 22222)
|Is This Answer Correct ?||5 Yes||5 No|
The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?
How do you call procedures in ILE?
can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E
HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
what is batch debug in as400?
1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?
how can we can we the data decimal error?how can we open such file in support
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
How do you find whether a record is locked or not?