Copying to ‘qsys.lib/qtemp.lib’

Tags:
CPYTOIMPF
I'm trying to do CPYTOIMPF to 'qsys.lib/qtemp.lib/FILE.CSV' and get error FILE does not exist in QTEMP. Any suggestions?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 6  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.
  • ToddN2000
    Files in QTEMP only remain for the active session. If you have logged out or are trying this from another session the file will be gone. Try moving the file to another library other than QTEMP if this is going to be a job that will be used over and over.
    131,645 pointsBadges:
    report
  • jimmcglennon42
    I think what I need to do is define a directory in 'qsys.lib/qtemp.lib'. I have been doing this successfully into other directories, but I don't know if I can define a directory there or not. I tried to do a CRTDIR, which was successful, but when I WRKLNK 'qsys.lib/qtemp.lib' I don't see it.
    35 pointsBadges:
    report
  • TheRealRaven
    There is no object type of ".CSV" that can be created in QTEMP nor any other library.

    And a "directory" cannot exist in library QTEMP nor any other library.

    'qsys.lib/qtemp.lib/FILE.CSV'

    The problem is that you're using the TOSTMF() parameter and IFS naming to reference an object in QTEMP. If you want to output to a streamfile, you can't put it in the /QSYS.LIB file system. And if you really want to put the output into a physical file, you should use the TOFILE() parameter.

    What do you actually want to do with the output? That will determine where it should go and what type of object should be created.
    34,465 pointsBadges:
    report
  • jimmcglennon42
    I was afraid of that. Oh well, thanks for the clarification.
    35 pointsBadges:
    report
  • pdraebel
    If this is needed forIFS storage an alternative would be the /home/<usrprf> directories. These are linked to the individual user profiles and are kind of "private" to the user. The directories are not automatically created and cleared per job, but it could be a way for users to store files that need to be kept seperate.
    7,545 pointsBadges:
    report
  • jimmcglennon42
    That's a viable solution. Thanks!
    35 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.

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

Following

Share this item with your network: