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
How to Define a Procedure in RPG?
when would you use or not use this approach?
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...
how can you specify no duplicate key?
what are the different types of data areas?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
in which specification the report layout can be defined?
How to reverse a string using RPG?
how many levels are there in a physical file?
how do you specify page overflow indicator for printer files in rpg?
What is array in as400? What are the types of array?
how to declare a constant variable in the freeformat?
how can you execute a command from within an rpg program without calling a clp program?
Service Program : S1 Modules in S1 : M1 M1 having two procedures : ADD, SUB Current Binder Language STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP Doubt: I need to add one new Module to the Service Program M2 having one procedure ‘MULT’ How to add this new module to the service program S1 ? If I need to recreate the service program again, Do I need to mention the Module M1 again while recreating along with new Module M2? There is no Binding Directory. Binder language structure will be like this STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") EXPORT SYMBOL("MULT") ENDPGMEXP STRPGMEXP PGMLVL(*PREVIOUS) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP
what are the various types of device files?