Hello,
I've lurked here and there and usually can find a resolution to my issue but this time I'm stuck.
I have gotten around it my explicitly specifying QTEMP as the library but I am wondering why the OVRDBF command below doesn't work with the CLRPFM?
This is an extract of my program, &QTEMP = 'Y';
However my joblog looks like this;
So it fails to duplicate, that's fine I monitor for that error.
However the CLRPFM clears the workfile in RAREPORTS, which is the library I copied the object from.
RAREPORTS is first in my library list
QTEMP is second.
I've spend too long on Google and IBM's website which states this;
Note: The override cannot be used for all commands. A list of
the commands that cannot be overridden, along with more
information on overriding files is in the Files and file systems
category in the IBM i Information Center at
http://www.ibm.com/systems/i/infocenter/.
But as usual, IBM's website is a mess and I am unable to find what commands don't work - I'm starting to think it CLRPFM doesn't work but wanted to confirm that is the case or learn what I have done wrong for the future.
Thanks in advance,
Ryan
I've lurked here and there and usually can find a resolution to my issue but this time I'm stuck.
I have gotten around it my explicitly specifying QTEMP as the library but I am wondering why the OVRDBF command below doesn't work with the CLRPFM?
This is an extract of my program, &QTEMP = 'Y';
Code:
IF COND(&QTEMP = 'Y') THEN(DO) CRTDUPOBJ OBJ(RAMERREPWF) FROMLIB(RAREPORTS) + OBJTYPE(*FILE) TOLIB(QTEMP) CST(*NO) TRG(*NO) MONMSG MSGID(CPF2130) OVRDBF FILE(RAMERREPWF) TOFILE(QTEMP/RAMERREPWF) + MBR(*FIRST) OVRSCOPE(*JOB) ENDDO CLRPFM FILE(RAMERREPWF)
Code:
RAMERREP FROM(120117) TO(010317) MAIL(N) QTEMP(Y) Object RAMERREPWF in QTEMP type *FILE already exists. 0 objects duplicated. 1 objects not duplicated. [B]Member RAMERREPWF file RAMERREPWF in RAREPORTS cleared.[/B] Extract sucessful.
However the CLRPFM clears the workfile in RAREPORTS, which is the library I copied the object from.
RAREPORTS is first in my library list
QTEMP is second.
I've spend too long on Google and IBM's website which states this;
Note: The override cannot be used for all commands. A list of
the commands that cannot be overridden, along with more
information on overriding files is in the Files and file systems
category in the IBM i Information Center at
http://www.ibm.com/systems/i/infocenter/.
But as usual, IBM's website is a mess and I am unable to find what commands don't work - I'm starting to think it CLRPFM doesn't work but wanted to confirm that is the case or learn what I have done wrong for the future.
Thanks in advance,
Ryan
Comment