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
How many program bind in one module....
how do I declare a minor?
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?
How can we know running job is batch or interactive?
How Chain operation copies the record's data to the input buffer for the program?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
can I touch the array during treatments?
What is file identifier where we can use?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
How to write record if no field or the field are different in physical file in rpgle ?
How to handle duplicate error handling in RPG?
can you debug ile rpg program using isdb?
What are the types of identifiers?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
what is the use of sflnxtchg?