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
To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?
how many levels are there in a physical file?
what is arrival sequence?
what are all the contents of subfile?
What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?
how to define global parameter in ile ?
define the purpose/use for sflrna?
how many maximum spaces could be given in o specs?
what does check opcode is used?
I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.
when do you use f-spec. Continuation line ?
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?
how many files can be defined in f specs?
can you have multiple key lists for a single file ?
How to reverse the string in rpg