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
Explain mdt?
can you debug ile rpg program using isdb?
what are the key words you must use when using a subfile?
What are the types of identifiers?
how does the rpg element work?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
How Chain operation copies the record's data to the input buffer for the program?
How to write record if no field or the field are different in physical file in rpgle ?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
What is file identifier where we can use?
how do I declare a table or array in rpg iv?
can I touch the array during treatments?
what is kids-rpg?
is this a rpg channel?