Please enable JavaScript to view this site.

InterFormNG2 Manual

This section shows a way to print the merged result between a spooled file and a tempalte in a workflow via a command call on the IBM i platform.

 

This workflow has been setup:

 

NG2AS400CMD0012

 

NG2AS400CMD0013

 

Overview:

 

NG2AS400CMD0014

 

The workflow above can be called via this CL program on the IBM i platform:

 

PGM                                                          

            DSPJOBLOG  OUTPUT(*PRINT)                        

            IFORMNG2/NG2CMD COMMAND(PRINT) FILE(QPJOBLOG) +  

                         SPLNBR(*LAST) PRINTER('PRT08') +    

                         TEMPLATE('generic.ift')            

ENDPGM                                                        

 

The program converts the joblog of the current job into a spooled file and this spooled file is then used as entry for the command, that merge the spooled file with the InterFormNG2 template, generic.ift and prints the result on the InterFormNG2 printer: PRT08. (A prerequisite is, that PRT08 is a registered printer).