Submitted by Kim Egekjaer on Fri, 12/21/2012 - 00:00
Forums

For Auto Forms Control (abbreviated as AFC) it is possible to specify which of the AFC jobs, that you want to auto start with the subsystem, but if needed it is also possible to start and stop the jobs manually. You can do that manually via the InterForm400 menu, but it is also possible with these commands:
 
Start an AFC job:

APF3812/STRAFCJOB JOBNVN(<job-name>)   

 

End an AFC job:

APF3812/ENDAFCJOB JOBNVN(<job-name>) OPTION(<option>)  

 

Output Schedule Control (abbreviated as OSC) makes it possible to merge multiple spooled files into one and sort the pages by e.g. the customer number to collect different letters for the same customer into one envelope.
 
Start an OSC job:

APF3812/STROSCJOB OUTQ(<library>/<output queue>) 

 

Where:
<job-name> is the name of the AFC job, that you want to start or stop. This can also be *ALL, to denote all AFC jobs.
<option> can be either *CNTRLD or *IMMED. *CNTRLD sets a controlled end, which is default and recommended.
<library> and <output queue> identifies for which OSC output queue you want to start the OSC job.
 
Refer to the InterForm400 manual for detailed descriptions of these commands.