ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Cpysplf To Database File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cpysplf To Database File

    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?

  • #2
    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
    Jamie
    All 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

    Working...
    X