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
explain the difference between defining subfile and message-subfile?
what is the purpose of dynslt keyword?
when is a tag statement used in rpg?
what is subfile?
WHAT IS FERERENTIAL INTRIGRITY ?
what is the difference between udate and the system date?
maximum number of subfiles that can be active for a single file is?
is there any way to dynamically merge other html scripts into a given html?
What is the use of jdftval in as400?
what are the different methods to access seu?
how to get the cursor position?
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?
under given circumstances, my cgi should link to another site. How to implement this?
what is the purpose of putovr (put with explicit override) keyword?
what does check opcode is used?