CPYTOSTMF error CPFA097 Object not Copied
- From: "that 1 guy" <xintood@xxxxxxxxxxxx>
- Date: 16 Sep 2005 09:24:00 -0700
As you see I'm receiving an error CPFA097 when using the CPYTOSTMF
command in a CL. The message says Object Not Copied (V5R1M0) although
I go to the IFS and there is my file with all the Data in it. I could
just MONMSG for the error but this is really spooky & what if one time
it truly does not work? Has anyone else experienced this or have some
input?
The Command in the CL:
CPYTOSTMF +
FROMMBR('/QSYS.LIB/FMSV3DB01.LIB/RAFLAT.FIL+
E/RAFLAT.MBR') TOSTMF(&FILE2) +
STMFOPT(*REPLACE) ENDLINFMT(*LF)
Have &FILE and &FILE2:(&FILE1 is the file name without the preceeding
'/')
DCL VAR(&FILE) TYPE(*CHAR) LEN(26)
DCL VAR(&FILE2) TYPE(*CHAR) LEN(27)
then before the copy I do:
CHGVAR VAR(&FILE2) VALUE('/' *CAT &FILE)
Also, in the CPFA097 ErrMsg, it states "...not copied to Object /
because of Errors", but when i run in Debug &FILE2 shows it's value as:
'/MCC_B&B_00001_09162005.txt'
I'm perplexed!
thanks in advance
that 1 guy
.
- Follow-Ups:
- Re: CPYTOSTMF error CPFA097 Object not Copied
- From: that 1 guy
- Re: CPYTOSTMF error CPFA097 Object not Copied
- Prev by Date: Re: A different unlink problem.
- Next by Date: Re: Embedded SQL, sub-procedures and activation groups
- Previous by thread: A different unlink problem.
- Next by thread: Re: CPYTOSTMF error CPFA097 Object not Copied
- Index(es):
Relevant Pages
|