PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

OVRDBF with DLTF

View previous topic View next topic Go down

OVRDBF with DLTF

Post  maran on Mon Jul 27, 2009 7:46 pm

PGM

OVRDBF FROMFILE(FILE1) TOFILE(FILE2)

DLTF FILE1


ENDPGM

Note: Both files are in the *LIBL

Consider the above code which file will be deleted? Reason???
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: OVRDBF with DLTF

Post  maran on Mon Jul 27, 2009 7:47 pm

I am confused with the qbove topic. Here we OVRDBF FILE2, but delete FILE1. Pls clear it whether DLTF FILE1 or DLTF FILE2? .
But whatever may be here DLTF FILE1 means it will delete FIEL1 I believe.
Pls repley if this is wrong.
_________________
Regards,
Razuk.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: OVRDBF with DLTF

Post  maran on Mon Jul 27, 2009 7:47 pm

PGM
OVRDBF FILE(O919) TOFILE(OUTPF)
DLTF (ANUPAMALIB/O919)
DLTOVR (O919)
ENDPGM

File O919 will be deleted.

The file O919 will use data of OUTPF when it is overriden.
But the file O919 - object O919 will be deleted.
_________________
Thanks & Regards,
Anupama M.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: OVRDBF with DLTF

Post  maran on Mon Jul 27, 2009 7:48 pm

PGM
OVRDBF FILE(O919) TOFILE(OUTPF)
DLTF (ANUPAMALIB/O919)
DLTOVR (O919)
ENDPGM

The file O919 will use data of OUTPF when it is overriden.

After delete command,File O919 will be deleted.

the file O919 - object O919 will be deleted.
and O919 cannot use the data of OUTPF as the file is deleted.
_________________
Thanks & Regards,
Anupama M.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: OVRDBF with DLTF

Post  maran on Mon Jul 27, 2009 7:48 pm

Hi Anupama,

But the file O919 - object O919 will be deleted.

I agree what you are saying is correct.
But if we do RCVF 0919, it will receive records from OUTPF. If we DLTF 0919 mean it delete 0919. Why this happens. Actually it should delete OUTPF. Please give the second question REASON.

Consider the above code which file will be deleted? Reason???
_________________
Regards,
Razuk.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: OVRDBF with DLTF

Post  maran on Mon Jul 27, 2009 7:48 pm

OVRDBF will concern abt the data in the file and attr ( temporarily)

But DLTF will concern with object as a whole ( permanent)

So DLTF will ignore OVRDBF
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: OVRDBF with DLTF

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum