I had ruestion in one of the interview.....
If 1 file has more than 1 member and i want to use the 2nd
member in the RPG pgm (in RPG400),how can I use this....
I know the possible answers i.e. useing API 'QCMDEXE' or
Before calling the pgm I can use OVRDBF for that member...
but I dont' want to use both the tips in above scenarion.
Does any body tell me how can i use this ....?
Answer Posted / sweta
What is the scenario exactly , You want to access all the
members of the file one by one and you donno the names of
the memebers
or
You want to access only second member and you donno the
name of the member
If you want to use only second number then define a
variable and initialise it with second member name.and in F
spec define the extmbr.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different opcodes used for file operation on a subfile in a rpg pgm?
what would be the effect on the field where reverse image, underline and highlight display attributes were active?
Difference Between Call & Sbmjob?
is it there an easy way to determine if an html section is available to issue a wrtsection upon?
Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out
what are different record spacing keywords in rlu ?
1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?
when do you use f-spec. Continuation line ?
Difference Between Ca & Cf?
maximum number of subfiles that can be active for a single file is?
what is join logical file?
difference between sflrcdnbr and sflnxtchg?
what is the function of cpysplf command?
what is the purpose of overrides?
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...