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


Please Help Members By Posting Answers For Below Questions

Explain mdt?

641


can you debug ile rpg program using isdb?

708


what are the key words you must use when using a subfile?

662


What are the types of identifiers?

546


how does the rpg element work?

680






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?

457


How Chain operation copies the record's data to the input buffer for the program?

1055


How to write record if no field or the field are different in physical file in rpgle ?

457


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?

484


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2490


What is file identifier where we can use?

619


how do I declare a table or array in rpg iv?

705


can I touch the array during treatments?

715


what is kids-rpg?

643


is this a rpg channel?

656