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


1  FUNCTION UNLOAD
1+ , choose one or more
1 AREA=(
2.1+ , choose one or more
2.1 ALL
2.1 GLOBAL
2.1 LOCAL
2.1 OVERFLOW
2.1 QSN
1)
1 QUEUETYPE=(
2.1+ , choose one or more
2.1! COLD
2.1 ALL
2.1 APPC
2.1 LONG
2.1 LTERM
2.1 OTMA
2.1 REMOTE
2.1 SHORT
2.1 SERIAL
2.1 SUSPEND
2.1 TRANSACTION
1)
2  SELECT
2? ACTION=(
3.1 READ
3.1 REPORTONLY
2),
1+ , choose one or more
1 ENDTIME=endtime
1 NOCONVMSG
1 NOSYSMSG
1 STARTTIME=starttime
1 TYPE=
2.1 I
2.1 IO
2.1 O
2.1 DI
2.1 DO
2.1 DIO