CPF3309 error message

150 pts.
Tags:
CPYSPLF
While executing CPYSPLF command I get the error CPF3309 with the error description , " No files named &1 is sctive",Please let me know your thoughts and advice solution for the same
ASKED: June 2, 2012  7:17 AM
UPDATED: June 6, 2012  2:42 PM

Answer Wiki

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

If the spool file was generated, you would have an empty spool file line when you do a WRKJOB OPTION(*SPLF). You should check just before the program is called and then just after it is called.
If nothing was written to the file you will still see the line.
You can also do a ovrprtf *ALL hold(*YES) just before you call the program.
Then after the progtram is run check the job.
You will either see the actual spool file ot the empty line if no data was written to the file.

Discuss This Question: 11  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
  • TomLiotta
    ...advice solution for the same ... The only advice is to run CPYSPLF before the file prints or before it's otherwise deleted from the job. You can't copy a spooled file after it's gone. If you can show that the message is sent while the file is still available, please also show the job details including the spooled file status. Tom
    125,585 pointsBadges:
    report
  • assa
    Thank You Very much . I am not sure ,how to find out whether the spool file was existing or not ,during the CPYSPLF command. Before my CPYSPLF line in the program got executed , they call a program which writes records into my printer file.So my assumtion is , at the end of that called program , spool files would have got generated.After that when they do CPYSPLF in th calling program, I should not have any problem ,but , I do not know how the above mentioned error is occured. JOB DETAILS: it is an Interactive Job .I do not find spool file in the system .I am not sure , whether it was not generated or or its gone .
    150 pointsBadges:
    report
  • assa
    Thanks. Even If I get Empty Spool File , will this error CPF3309 occurs? giving the error " No File named &1 are active"?
    150 pointsBadges:
    report
  • TomLiotta
    I am not sure ,how to find out whether the spool file was existing or not ,during the CPYSPLF command. Code a MONMSG CPF3309 EXEC(DO) after the CPYSPLF command. That will tell you. (Assuming that you code something into the DO-group that outputs the condition.) I do not find spool file in the system .I am not sure , whether it was not generated or or its gone . If you get CPF3309, it means that the file was generated, but it's gone from the job. If you get CPF3303, it means it was never created in that job. Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    If you cannot see your spoolfile when you try to copy here is another option. Add an OVRSPLF command like this. OVRPRTF FILE(QSYSPRT) OUTQ(MYOUTQ) COPIES(1) HOLD(*YES) SAVE(*YES) so it does not go automaticaly to an OUTQ. Then you can see if it is blank or not. Once you know if your program is producing output correctly then you can remove the OVRPRTF
    6,360 pointsBadges:
    report
  • assa
    Thanks for all your suggestions and solutions.It helped me a lot .
    150 pointsBadges:
    report
  • assa
    "If you get CPF3309, it means that the file was generated, but it’s gone from the job. If you get CPF3303, it means it was never created in that job. Could You Please explain more on what is mean by "the Spool file gone from the job"?
    150 pointsBadges:
    report
  • Splat
    Assa, look at the message CPF3309; the second-level text explains what is meant: All files named &1 for job &5/&4/&3 were removed from the system after being either produced by a writer or cleared from an output queue or deleted.
    6,255 pointsBadges:
    report
  • assa
    [...] 4. The four horsemen of Splat, TomLiotta, CharlieBrowne and ToddN2000 show Assa how to solve the CPF3309 error message. [...]
    0 pointsBadges:
    report
  • Ankita
    Hi..  I am experincing the error CPF3303 , when I run the command chgsplfa from a program, even though i do not encounter any error if I do it manually using option 2 on wrkjob screen.  Please help and share your views on this.
    135 pointsBadges:
    report
  • TomLiotta
    ...when I run the command chgsplfa from a program...   What is the CHGSPLFA command that you are running? We can't tell anything if you don't show the command from the program.   After we see the command, we might need additional data such as the actual message text.   Tom
    125,585 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