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 is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?
an access path may be in which sequence?
What is the Difference between command attention key and command function key ?
how may a cgi control duplicate inputs?
different type of cursor?
Space & Skip Are Which Level Keywords?
What are the mandatory keywords of sub file?
what is service program?
how you will find an error which is not in the first page of the subfile without using rolldown key?
what does check opcode do ?
what is a program described file in rpg?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
what is a join logical file?
What is array in as400? What are the types of array?
how many files, printer files you can describe in a rpg?