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
what do you mean by an input subfile, what are the keywords required?
how do I play {insert rpg system here}?
can I touch the array during treatments?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
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 to write record if no field or the field are different in physical file in rpgle ?
are there any useful c runtime apis that I can call from rpg iv?
What is the difference between iter and do?
how do I preserve and clean the array?
what is the difference between do while and do until?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
How can we know running job is batch or interactive?