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
how can database records be read without lock ?
can you specify a display file to be used in the following modes input,output, or combined modes ?
How can we arrange duplicate records in a file?
what are members?
what is the function of crtdupobj command?
What are the record format field mapping options in cpyf?
what does defn do?
an access path may be in which sequence?
hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
how can a message from a message file appear as a constant on the screen?
what are the various types of device files?
what is sflinz and sflrna?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?
when is a tag statement used in rpg?