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
how many files can be defined in f specs?
If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...
what is logical file?
what is the purpose of indicators in rpg?
define what a data queue is along with a brief example of what it may be used for?
how does the runqry show the output?
what is procedure prototype and procedure interface.
In RPG How to read a records from a file without using read opcodes?
How can we change the uppercase to Lowercase in RPG?
what is xfoot opcode ?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
what is the maximum number of parameters allowed in rpg?
all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?
which cl command is used to trap error messages during program execution?
what is the maximum number of files allowed in rpg?