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

Answers were Sorted based on User's Feedback



I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / samul paul

Sweta yes, we can use EXTMBR in RPG4 but I need use RPG400
only....

Is This Answer Correct ?    0 Yes 2 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / samul paul

Hi Swetha,thanks for ur suggestion.

If I am not worng , in RPG400 pgm we can't specify 2nd
member in F-spec.

Clear me if I am worng....

Thnaks

Is This Answer Correct ?    0 Yes 2 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / swetha p rao

I dint get you. You define your member name and specify
Extmbr in F spec.This is in RP400 only rite? we are not
using anything else other than RPG400.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More IBM AS400 AllOther Interview Questions

at what level s,o are defined and what they will do?

1 Answers   IBM,


all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?

0 Answers  


What is the purpose of the "N" in the following calculation specification? C KEY CHAIN FILE N 99

1 Answers  


1.What is the difference between regular join logical file and non join logical file? 2.what are the nessasary keywords for non join logical file

3 Answers   ANZ,


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

1 Answers   IBM,






What is LDA?

1 Answers  


what is data structure?how many types of data structers?

4 Answers  


PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM In above example,what is content of myfile.txt ...Thanx

2 Answers  


Q. 1.What would be structure of CL PGM. 2. What are the levels of CL PGM. 3.How many files can be defined in new CLLE program?

3 Answers   IBM,


Q.Suppose one job is running in a batch mode for a long time now i want to kill this batch job. how you achive this?

3 Answers   IBM,


(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these keywords is necessary. (2)If we will not define these two keywords (PGMand ENDPGM) then any error will be come or not.

5 Answers   FIS, IBM, Virtusa,


which cl command can be used at program execution to redirect the file named in an rpg program?

0 Answers   IBM,


Categories