Submitting WFL Jobs from CANDE

You can submit WFL programs from CANDE sessions using the START or WFL command. The START command submits a WFL program that is stored in a disk file. The WFL command enables you to enter WFL statements directly at the terminal.

The START command can pass any number or type of parameters that are expected by the WFL program. In addition, you can use the FOR SYNTAX clause for syntax checking. This clause causes the program to be compiled, but not executed, and displays information about any syntax errors in the WFL program. You can also assign the STARTTIME task attribute to delay initiation of the program. However, you cannot assign any other task attributes to the program.

While the WFL program is compiling, only CANDE control commands are available. If you enter any other CANDE commands during this period, CANDE queues the commands and executes them when the compilation is finished. However, after the WFL program is compiled and entered in a job queue, all CANDE commands are available again. The WFL program executes as a job and can have a job summary or printer backup files associated with it. By default, these files are queued for printing when the WFL program terminates.

You can use the WFL command to submit one or more WFL statements. Simply enter WFL, followed by the WFL statements. You can omit the ?BEGIN JOB and ?END JOB statements. The WFL statements can include all the constructs defined in WFL with the exception of data specifications and STARTTIME specifications.

When you submit WFL input by way of the WFL command, only CANDE control commands are available while the WFL input compiles and executes. Any other CANDE commands that you enter during this period are queued for later execution. By default, any backup files created by the WFL process are saved with the CANDE session. The files are queued for printing when you end the CANDE session.

The CANDE ADD, COPY, and PRINT commands correspond to the WFL commands of the same names. When you enter any of these commands, CANDE passes it to WFL for execution.