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



why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different??please te..

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

why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different??please te..

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

why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different??please te..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

what is the function of cpyf command?

1 Answers   IBM,


What is the purpose of SFLNXTCHG keyword in a subfile?

1 Answers  


Difference Between Skip Before & Space Before?

0 Answers   IBM,


what is message file?

0 Answers   IBM,


What is the purpose of OVRDTA keyword ?

1 Answers  


what is xfoot opcode ?

1 Answers   IBM,


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.

2 Answers   IBM,


what is the purpose of ovrdta and ovrata keywords ?

1 Answers   IBM,


how to see the error messages for each command in cl?

2 Answers   CGI,


how can a procedure will be added in to a srvpgm

4 Answers   TCS,


how will you display a particular page in subfile ?

1 Answers   IBM,


How many secondary files allowed in a program?

1 Answers  


Categories