Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How many program bind in one module....

2740


how do I declare a minor?

1207


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?

1301


How can we know running job is batch or interactive?

1183


How Chain operation copies the record's data to the input buffer for the program?

1664


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?

1005


can I touch the array during treatments?

1218


What is file identifier where we can use?

1178


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

3047


How to write record if no field or the field are different in physical file in rpgle ?

1023


How to handle duplicate error handling in RPG?

2352


can you debug ile rpg program using isdb?

1337


What are the types of identifiers?

1087


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

1059


what is the use of sflnxtchg?

1316