Please enable JavaScript to view this site.

Navigation: Technical Information > Cobwebb APIs & Commands

CHGSPLFS - Change Spooled Files Status

Scroll Prev Top Next More

From version 6.2.66 - This command will allow you to change the status of multiple spool files with the same Spool File Name in a specified Output Queue.

This command can be found on the Cobwebb Tools Menu - Option 5. Alternatively, with library CPPD in your Library List, enter CHGSPLFS on a command line and press F4=Prompt.

Command Parameters

Output Queue (OUTQ)

The name of the Output Queue where the spool files you wish to change reside.

Library (OUTQLIB)

The name of the Library where the Output Queue resides.

Spool File Name (FILE)

The Spool File Name used to select the spool files to change.    

User Data (USRDTA)

The User specified data used to select the spool files. If you leave the default of *ALL then the User Data of the selected spool files will not be checked, otherwise you may enter the User Data that you wish to be used for selecting the spool files. Note: This must be an exact match including case.      

User Name (USRNAME)

The User Name used to select the spool files. If you leave the default of *ALL then the User Name of the selected spool files will not be checked, otherwise you may enter the User ID that you wish to be used for selecting the spool files.  

Spooled file status (STATUS)

The spool file status used to select the spool files. If you leave the default of *ALL then the status of the selected spool files will not be checked, otherwise you may enter one of the other valid options *READY, *HELD or *SAVED.

Hold status (ACTION)

This is the spool file status to be applied to all of the selected spool files. If you leave the default of *YES then the status of all the selected spool files will all be set to Held (*HLD), otherwise selecting *NO will release all the selected spool files.

Change after days old (DAYS)

This option will allow you to specify how old a spool file needs to be before being included in the change. Say you want to change all invoices from the previous days output you would enter a 1 here and this would pick up any matching spool file of one day or older. Entering a 0 will not check the age of the spool file. If you leave the default of 999 then nothing will happen unless you have spool files more than 999 days old.