Submitting WFL Jobs from COBOL

A COBOL85 or COBOL74 program can submit WFL jobs with a statement of the following form:

CALL SYSTEM WFL USING <identifier or literal>

If a literal is used in this statement, it must be a string literal consisting of the complete text of a WFL source program. If an identifier is used in this statement, the identifier must be that of a data item that contains the complete WFL source program.

Note that when a COBOL program submits a WFL job, any messages produced by the WFL job or its descendants are not forwarded to the CANDE or MARC session that originated the COBOL program. However, you can use the CANDE ?MSG command or the MARC SMSG command to display these messages.