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


Please Help Members By Posting Answers For Below Questions

is this a rpg channel?

667


What is the purpose of record level identifier?

720


What is the difference between copybooks and subprocedures in as400?

801


what is *place and *auto keyword in prtf ?plz explain

2712


how do I play {insert rpg system here}?

576






what is file information data structure?

1353


what is a rpg?

692


What is the difference between iter and do?

663


how does the rpg element work?

711


How to select highest score of each subject or how to select highest income of every month?

1283


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1553


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.

5383


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

824


what is the difference between do while and do until?

693


When it is desirable to describe files Internally?

1178