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


Please Help Members By Posting Answers For Below Questions

in conjunction with what other keyword must ovrdta and ovrata be used?

919


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

756


explain the difference between defining subfile and message-subfile?

1111


an access path may be in which sequence?

633


hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.

2130






what does check opcode do ?

1069


What is binder language ?

1365


What is the default access path of a file?

587


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

612


how do you pass parameters in cl?

1055


how many specifications are there in rpg/400? What are they?

1096


what is *iso date format?

625


how many files, printer files you can describe in a rpg?

632


What is RETURN CURSER LOCATION in subfile?

1072


what keyword must be used with protect keyword ?

1129