Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

can a join logical file be updated?

966


can we define multi-dimensional arrays in rpg ?

1524


what is the use of dspatr(mdt) keyword?

2154


what is a logical file?

1682


which indicator is used for read?

1073


define the purpose of the %sst function?

1544


what is the favicon.ico request that my site receives now and then?

1050


In Which Specs Arrays, Tables & Constants Are Defined?

1115


how to declare a constant variable in the freeformat?

1346


what is message subfile?

1659


why is the declare cursor statement is used for?

1011


what is the maximum number of subroutines allowed in rpg?

1690


Explain The Keywords Edtcde & Edtwrd?

1326


WHAT IS FERERENTIAL INTRIGRITY ?

1564


what is xfoot opcode ?

1712