How to read alternative records in a pf by using rpg?
Answer Posted / uday bagdai
1st set the pointer on the record(depend on rrn).after increase the rrn value by 2 (rrn=rrn+2).trape their on doweq loop so you can read alternative records.because (your pointer set on alternative records)
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
explain sflclr, sflend, sfldlt, and sflcsrrrn?
how do you use commitment control in rpg?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
How can we override a file during runtime in rpg?
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?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
How can we know running job is batch or interactive?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
How to declare the pull button in AS/400..
what are the key words you must use when using a subfile?
How would display prime numbers using CL program?
can I touch the array during treatments?
what is the rpg system?
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.