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 / shobhit

Share(*yes) means Sharing the access path of a file….
For example
Suppose Physical file have 5 members and you want to access
the records of 3rd member in your program. So OVRDBF
command will be like this.

OVRDBF (File Name) TOFILENAME (File Name) MEMBER (3rd)
SHARE (*YES)
CALL RPG

The RPG program now point to 3rd member of the file and if
you dont use SHARE(*YES) the program will point to 1st
member of the file.

Is This Answer Correct ?    11 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is join logical file?

1894


how you get the relative record in a subfile in which cursor is located?

1110


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

3473


What is the draw back of Procedures? why we are going to Modules?

1795


Can level check error occur if we do chgpf?

1254


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7953


how can u check no of records in a file?

1145


what is the function of crtdupobj command?

2081


what is the use of dspatr(mdt) keyword?

2259


in conjunction with which statements can orxx and andxx conditions be used ?

1871


what is the disadvantage of using global variable?

1212


which type of object is used in db2/400?

1057


How to avoid using indicators in ile ?

1282


What is RETURN CURSER LOCATION in subfile?

1573


What is the maximum number of subfiles that can be specified in a display file?

1922