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...

How to read data from Nth member of a physical file containing
some X number of members in it?
"Provided member names are unknown"

Answer Posted / sandey243

Way:1
We can execute DSPFD with *OUTFILE option, using QCMDEXC in
RPGLE program then we can read the outfile to get the name
of the file, then after we can read the file.

Way2:
Make the file to have all members available i.e.,
EXTMBR(*ALL). Then move *HIVAL to RRN and do a SETGT on the
file... this will take the control to the bottom of the
first member...then READ will give you first record of the
Second member...... This way we can go to the member....
(This method I tried and succeeded)...

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to handle duplicate error handling in RPG?

2223


How can we know running job is batch or interactive?

1045


what do you mean by an input subfile, what are the keywords required?

1195


how can I tell when to replace the array?

1152


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

1708


what is the difference between do while and do until?

1184


do you use message subfiles? What are the necessary keywords required coding a message subfile?

1077


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1985


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

1146


can I touch the array during treatments?

1113


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1820


what are the key words you must use when using a subfile?

1098


is this a rpg channel?

1118


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

3093


what is an online rpg?

1196