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


Please Help Members By Posting Answers For Below Questions

WHAT is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?

2037


an access path may be in which sequence?

635


What is the Difference between command attention key and command function key ?

793


how may a cgi control duplicate inputs?

599


different type of cursor?

640






Space & Skip Are Which Level Keywords?

758


What are the mandatory keywords of sub file?

748


what is service program?

603


how you will find an error which is not in the first page of the subfile without using rolldown key?

562


what does check opcode do ?

1069


what is a program described file in rpg?

1056


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3152


what is a join logical file?

756


What is array in as400? What are the types of array?

627


how many files, printer files you can describe in a rpg?

632