CPYTOSTMP

1780 pts.
Tags:
AS/400
AS/400 error messages
CPYTOSTMP
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

Taking a shot here – does the user of job have authority to create files in that folder?
I would think that should throw an authority message but it might also throw this message.

Phil

Yeah the user has athority. I just figured it out. Instead of QDLS/RON/GSPOOL.TXT it should have been /RON/GSPOOL.TXT Its not looking in a folder so I don;t need that. My bad. I think I need glasses. Sorry

Thanks
Ron

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • RonKoontz
    here is the statement CPYTOSTMF + FROMMBR('/QSYS.LIB/QTEMP.LIB/GSPOOL.FILE/GS+ POOL.MBR') TOSTMF('/QDLS/RON/GSPOOL.TXT') + STMFOPT(*REPLACE) STMFCODPAG(*PCASCII)
    1,780 pointsBadges:
    report
  • Batman47
    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.
    1,050 pointsBadges:
    report
  • RonKoontz
    replace creates the file also. Just like cpyf does.
    1,780 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following