FUNCTION UNLOAD SELECT statement syntax

The FUNCTION UNLOAD SELECT statement must follow certain syntactic specifications.

In the JCL, the SELECT control statement is written on a separate line after the FUNCTION UNLOAD control statement.

JCL example 1

FUNCTION UNLOAD QUEUETYPE=(ALL)
SELECT NOCONVMSG
END

JCL example 2

FUNCTION UNLOAD AREA=(ALL),QUEUETYPE=(ALL)   
SELECT NOCONVMSG,
NOSYSMSG
END 

The syntax of the FUNCTION UNLOAD SELECT statement is:

Syntax diagram

Read syntax diagramSkip visual syntax diagram FUNCTIONUNLOAD , choose one or moreAREA=(, choose one or moreALLGLOBALLOCALOVERFLOWQSN)QUEUETYPE=(, choose one or moreCOLDALLAPPCLONGLTERMOTMAREMOTESHORTSERIALSUSPENDTRANSACTION) SELECT ACTION=(READREPORTONLY),, choose one or moreENDTIME= endtimeNOCONVMSGNOSYSMSGSTARTTIME= starttimeTYPE=IIOODIDODIO