OVRDBF FILE(xxx) TOFILE(libl/filename) share(*yes)
In which scenario is share(*yes) used?
could any one explain with an example?
Answer Posted / shruti tayal
Suppose you define override on a physical file with
SHARE(*YES) in a CL program, and you call HLL programs from
CL program, by defining SHARE(*yes) all programs who use the
overridden file, will use the same data path, on the
contrary if we dont specify share(*yes), each program will
create its own data path. This is very useful when we use
OPNQRYF, if we dont specify SHARE(*YES) for the file, the
data path created by OPNQRYF will not be of any effect in a
HLL program, as HLL program will create its own data path in
absence of SHARE(*YES).
| Is This Answer Correct ? | 30 Yes | 0 No |
Post New Answer View All Answers
can a join logical file be updated?
can we define multi-dimensional arrays in rpg ?
what is the use of dspatr(mdt) keyword?
what is a logical file?
which indicator is used for read?
define the purpose of the %sst function?
what is the favicon.ico request that my site receives now and then?
In Which Specs Arrays, Tables & Constants Are Defined?
how to declare a constant variable in the freeformat?
what is message subfile?
why is the declare cursor statement is used for?
what is the maximum number of subroutines allowed in rpg?
Explain The Keywords Edtcde & Edtwrd?
WHAT IS FERERENTIAL INTRIGRITY ?
what is xfoot opcode ?