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 / ravi kumar
hi,
You can use
FFILE1 IF E K DISK IGNORE(RECFMT9:RECFMT10)
here if file1 contains 10 members. I want use first 8 members then use ignore keyword as it is above.
FFILE1 IF E K DISK INCLUDE(RECFMT1:RECFMT2)
here if file1 contains 10 members. I want use first 2 members then use include keyword as it is above.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
is this a rpg channel?
What is the purpose of record level identifier?
What is the difference between copybooks and subprocedures in as400?
what is *place and *auto keyword in prtf ?plz explain
how do I play {insert rpg system here}?
what is file information data structure?
what is a rpg?
What is the difference between iter and do?
how does the rpg element work?
How to select highest score of each subject or how to select highest income of every month?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
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
what is the difference between do while and do until?
When it is desirable to describe files Internally?