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
Software/Hardware used:
ASKED:
June 2, 2012 7:17 AM
UPDATED:
June 6, 2012 2:42 PM
…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
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 .
Thanks.
Even If I get Empty Spool File , will this error CPF3309 occurs? giving the error ” No File named &1 are active”?
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
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
Thanks for all your suggestions and solutions.It helped me a lot .
“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”?
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.