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 data structure in as400? What is the use of data structure?

1124


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3718


What is the as400 called now?

1043


how many types of display are available on as/400 for user interaction?

1159


What is file information data structure(infds) in as400?

1527


if we tried to move year part of *iso date into a field of length 3, what will happen ?

1374


define the purpose/use for sflrna?

1741


what is message subfile?

1810


how can you detect and handle a record lock situation?

2061


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

1160


what is a spool file?

1188


what opcode will be used to test the zone of a character field?

1837


how you will know whether you are in sfldrop or sflfold mode?

1108


how can u check no of records in a file?

1182


How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz

1764