I'm copying to a stream file and if the object exists it works. The help says if it does not exist it will create it. Here is the error msg
Message ID . . . . . . : CPFA0A9 Severity . . . . . . . : 40
Message type . . . . . : Escape
Date sent . . . . . . : 04/29/09 Time sent . . . . . . : 11:39:29
Message . . . . : Object not found. Object is /RON/GSPOOL.TXT.
I'm not sure what is going on. Any ideas.
Thanks Ron
Software/Hardware used:
ASKED:
April 29, 2009 3:49 PM
UPDATED:
May 1, 2009 8:35 PM
here is the statement
CPYTOSTMF +
FROMMBR(‘/QSYS.LIB/QTEMP.LIB/GSPOOL.FILE/GS+
POOL.MBR’) TOSTMF(‘/QDLS/RON/GSPOOL.TXT’) +
STMFOPT(*REPLACE) STMFCODPAG(*PCASCII)
Hello,
With STMFOPT(*REPLACE) you are telling it to replace the contents of the existing file. It will only create the file if it doesn’t exist with the *NONE option.
replace creates the file also. Just like cpyf does.