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
in conjunction with what other keyword must ovrdta and ovrata be used?
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
explain the difference between defining subfile and message-subfile?
an access path may be in which sequence?
hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.
what does check opcode do ?
What is binder language ?
What is the default access path of a file?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
how do you pass parameters in cl?
how many specifications are there in rpg/400? What are they?
what is *iso date format?
how many files, printer files you can describe in a rpg?
What is RETURN CURSER LOCATION in subfile?
what keyword must be used with protect keyword ?