Post-process spooled file

Post-process spooled file

As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to delete, hold or move the input spooled file to let the end user know, that the specific spooled file has been successfully processed.

 

You can also change a spooled file attribute, that is used in a condition in the workflow to prevent the same spooled file to be processed again, if someone should hold and release the input spooled file.

 

A similar workflow component is the change attributes of spooled file workflow component. For the output spooled file components you can use the AS00 Print Attribute Options component.

 

The Post-process spooled file workflow component is found under the advanced other workflow components.

 

The component has these parameters:

 

NG2PostProcessSplf0001

 

Operation to perform

The action, that you want to perform on the spooled file. The possible actions are:

Move file. Use this to move the spooled file to another output queue. If selected you need to also specify the new output queue and library below.

Hold file. Use this to hold the input spooled file.

Release file. This value will release the spooled file. Normally the input spooled file is already released, so this is rarely used.

Delete file. This option will delete the input spooled file.

 

Destination output queue

This is only used, if you have chosen to move the spooled file above. This is the output queue to move to.

 

Output queue library

This is only used, if you have chosen to move the spooled file above. This is the library of the output queue to move to.

 

Ignore already held/released/deleted errors

If you insert the Post-process spooled file component e.g. inside the sub workflow of a split spooled file, then the same component might be executed many times. Apart from taking unnecessary resources it may result in an error. That is e.g. the case if you try to hold or delete the same spooled file more than once. If you want to ensure, that such potential errors does not result in an processing error, then you can choose to ignore such errors with this parameter.

 

 

Example of how to move dynamically

An example of how you can use a database to select the target output queue and library is found in example 1 of the section, Use a database to move a spooled file.

    • Related Articles

    • Change spooled file attributes

      As a part of the processing of an input spooled file in the workflow, you might want to change one or more spooled file attributes e.g. to inform the end users, that the input spooled file has been processed successfully in InterFormNG2. To change ...
    • Spooled file actions

      As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to delete, hold or move the input spooled file to let the end user know, that the specific spooled file has been successfully processed. You can also change a ...
    • Spooled file split

      You might want to split up spooled files during InterFormNG2 processing. The reason might be, that the input spooled file may contain multiple documents (e.g. invoices), and that you want to create one PDF file (or email) for each invoice. There are ...
    • Change attributes of spooled file

      As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to change one or more spooled file attributes of the input spooled file to let the end user know, that the specific spooled file has been successfully ...
    • Spooled file support

      InterFormNG2 is able to process spooled files, if you install InterFormNG2 on the IBM i platform. Please notice, that spooled file support, as well as Spool2XML, are modules for InterFormNG2, that are purchased separately. You can also use the ...