In a particular program one file is used where override
command is applied to a file, now this program calls
another program where we want to use the same file but
without override.How it can be done?
Answer Posted / s kumar
Suppose File Name(MyFile) is overriding to File(MyFile1) in
one Cl program (i.e ClPGM1) by
Ovrdbf File(MyFile) ToFile(MyLib/MyFile1)
Now You are calling the program(i.e RPG1)in Cl Pgm(CLPGM1)
and want to use same file(MyFile1)
So Just Declare the File in F- spec
F MyFile1 IE F Disk
.
.
.
In this way we can use the file
Hope you got your answer!
Thanks!!
| Is This Answer Correct ? | 3 Yes | 13 No |
Post New Answer View All Answers
how do I play {insert rpg system here}?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
what do you mean by an input subfile, what are the keywords required?
can you debug ile rpg program using isdb?
how does the rpg element work?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
what is the use of sflnxtchg?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
What is the purpose of record level identifier?
are there any useful c runtime apis that I can call from rpg iv?
how do I declare a minor?
How to call one program from another program in RPG? please help me with the code