what is code for reading member in rpgle when wehave
like extmbr(*all)
so we have 3 members in *all then i want to read first
record in 2member

Answer Posted / svankipu

Use OVRDBF & replace the member(MBR(*FIRST)) with second
member's name.

Now call the RPG pgm to read the second(2nd) member.
- OR -
If u r already in RPG pgm, use QCMDEXC for overriding the
member with 2nd mbr & continue.

- OR -
If it permits use EXTMBR(2nd mbr-name) instead of EXTMBR(*ALL)

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different types of variables available in cl?

1336


when do you explicitly open files and close files in an rpg program?

1521


which are the query selection criteria, which can be given in a query?

871


how do you pass parameters in cl?

1338


I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.

2481


how many specifications are there in rpg/400? What are they?

1437


Using %check we are checking monika in mona what is output? What is %SCAN?

1180


what is the maximum number of records you can specify in a display file?

1457


in conjunction with which statements can orxx and andxx conditions be used ?

1469


how do u compile rpgle program?

813


How to reverse the string in rpg

1443


some special characters I key in my html source members show different on my web pages. Why? How can I solve this?

821


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2399


what is the difference between sflclr and sflinz?

1340


how do you read changed records backward in subfile?

800