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 I automatically refresh a web page?
How to Define a Procedure in RPG?
which are the figurative constants used in rpg?
what is a spool file?
what is cab?
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?
If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...
how many specifications are there in rpg/400? What are they?
What is RETURN CURSER LOCATION in subfile?
how to get the cursor position?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
how can u check no of records in a file?
What is the draw back of Procedures? why we are going to Modules?
what is overlay?
what is the difference between seton lr and retrn?