How to read alternative records in a pf by using rpg?
Answer Posted / sreedhar reddy
Simple way is just read a PF process 1st record, then for second read ignore it. It is simple like having two read operations, first is at start of the loop and second is at just before end of the loop.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is data area and how it is used in rpg program ?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
is this a rpg channel?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
How many program bind in one module....
what is file information data structure?
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.
What is the purpose of record level identifier?
How to call one program from another program in RPG? please help me with the code
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
What is the difference between copybooks and subprocedures in as400?
What is difference between bind by copy and bind by reference?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
What is file identifier where we can use?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen