why we sometimes use same file name in FILE and TOFILE in
OVRDBF and sometimes different??please tell
Answers were Sorted based on User's Feedback
Answer / madhusudhan
I understood your question.
To and From file will be same in the below scenerios for
the OVRDBF command.
1. When you want the different member of the same file.
2. When you want the same file in different Library.
There are more reasons for using OVERDBF other than these
also.
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / mansi walia
In RPGLE if you want to declare the same file in more then
once mode(read/write/update)in this case you can override
the file with different name and declare the same file with
the overriden name.
for example:
In RPGLE if you want to open a file A in two different mode
one is Read and other is Update then you can override the
same file with two different name may be AA and AB and then
declare in your RPGLE program.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / upendra kachhwaha
There is one more use when you want to handle sharing of ODP created for the database member.
Also you can provide open scope to for better handling in different level(Job or Activation Group).
Is This Answer Correct ? | 1 Yes | 0 No |
what is the function of cpyf command?
What is the purpose of SFLNXTCHG keyword in a subfile?
Difference Between Skip Before & Space Before?
what is message file?
What is the purpose of OVRDTA keyword ?
what is xfoot opcode ?
How I can read and display three fields in the record format DSPFM1 of the display file,while one field(using in one file) is NAME which is Key field in field reference file and another two fields are AGE and ROLL NO are using another file. Please send me coding part.
what is the purpose of ovrdta and ovrata keywords ?
how to see the error messages for each command in cl?
how can a procedure will be added in to a srvpgm
how will you display a particular page in subfile ?
How many secondary files allowed in a program?