ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Cpysplf crtdate(*last)

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

  • Cpysplf crtdate(*last)

    We have a home grown command to duplicate spool files (DUPSPLF). In one of our other programs that executes DUPSPLF, it has the SPLF hardcoded, e.g. DUPSPLF QSYSPRT JOB(*) SPLNBR(2). This works fine for jobs that are submitted to batch but we have one program that executes interactively several time a day. So, there may be several QSYSPRT spool files that are not always the 2nd spool file. The CPP uses the CPYSPLF command. I am wondering if modifying the CPP to use the CRTDATE(*LAST) option of CPYSPLF instead of specifying the SPLNBR keyword would work for this.

  • #2
    Would using SPLNBR(*LAST) work better or are you duplicating multiple spool files at once?

    Comment


    • #3
      This seems to have done the trick

      Comment

      Working...
      X