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
Answer Posted / surya siram
Hi,
It is better to use "EXTMBR" with *all (EXTMBR(*all)) and then use file information data structure. EXTMBR(*ALL) is used to read the all the members of the file and file information data structure is used to know which member of the file is reading. Then by using this you should to skip the first 4 members and then read the remaining 6 members.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........
how do I declare a table or array in rpg iv?
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
What is the difference between copybooks and subprocedures in as400?
what is data area and how it is used in rpg program ?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is file identifier where we can use?
How Chain operation copies the record's data to the input buffer for the program?
What is a record lock error?
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
how do you use commitment control in rpg?
How can we know running job is batch or interactive?
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 the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com