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
What is data structure in as400? What is the use of data structure?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
What is the as400 called now?
how many types of display are available on as/400 for user interaction?
What is file information data structure(infds) in as400?
if we tried to move year part of *iso date into a field of length 3, what will happen ?
define the purpose/use for sflrna?
what is message subfile?
how can you detect and handle a record lock situation?
how you get the relative record in a subfile in which cursor is located?
what is a spool file?
what opcode will be used to test the zone of a character field?
how you will know whether you are in sfldrop or sflfold mode?
how can u check no of records in a file?
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