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
what are the different types of arrays available in rpg ?
what is the purpose of ovrdta and ovrata keywords ?
define a shared access path?
what is the maximum number of subfiles that can specified in a display file ?
can a single screen format occupy a screen area above and below a subfile format ?
how will you display a particular page in subfile ?
how to define to define a hidden filed in dspf ?
what is the command used to invoke rlu ?
what is a non-join logical file?
How to convert a spool file to PDF file in AS400?
http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?
which type of object is used in db2/400?
how do u compile rpgle program?
is there any way to dynamically merge other html scripts into a given html?
what are the different opcodes available in rpg for database access ?