I use cpysplf to copy a spooled file to add to a database file. I put the spooled file on hold, run cpysplf, then rlssplf to release to print. Every once in a while I get a CPF3309 during the cpysplf process. The spool file is still on hold but the program ends before it copies to the database file. Is it possible there is a delay before the system officially recognizes the spooled file and when the cpysplf command is called it doesn't find it? Should I monitor for the message to try the cpysplf again or put a delay before the cpysplf is run?
Announcement
Collapse
No announcement yet.
Cpysplf To Database File
Collapse
X
-
I havent run into that problem
There may be a delay??? But I havent had that issue come up.
Not sure where you have your ovrsplfa command located?
CL or in the RPG itself.
I like to define the spooled file as user open then do the overrides in the RPG with QCMDEXC.
Then open the spooled file.
Not sure what you are doing with the spooled file but you could also place a dataq on the outq you are printing to then from there you could have your dataqueue call a program to process the report(s).
Let me know if you need anything else
JamieAll my answers were extracted from the "Big Dummy's Guide to the As400"
and I take no responsibility for any of them.
www.code400.com
Comment