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
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
how to declare a constant variable in the freeformat?
can you display a empty subfile?
what are the three types of keywords associated with printer file ?
what is the purpose of ovrdta (override data) keyword?
using dfu, user will be able to ___________ from physical file?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
why do we use readc? What is sflnxtchg?
what is service program?
What is array in as400? What are the types of array?
Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?
what is the purpose of data structure?
how do you use commitment control in rpg program ?
what is the clp command to access a query/400?
Can you summarize the steps I have to go through in writing my first cgi?