Page 1 of 1

Multiple filter using PGM=SDSF in JCL

PostPosted: Thu Mar 23, 2017 11:45 pm
by csbl81
Goof afternoon,
I'm assembling a job to generate an alert whenever I get processes in spool executing with CLASS different of 9 and 0 but I can't seem to get the syntax in JCL correct. I made several attempts:


//SDSF01 EXEC PGM=SDSF,COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//ISFOUT DD DSN=XXX.YYYY.ZZZZ,
// DISP=(NEW,CATLG),UNIT=SYSDA,
// SPACE=(CYL,(5,5)),
// DCB=(RECFM=FB,LRECL=133,BLKSIZE=0)
//ISFIN DD *
S
ST
OWNER *
PRE *
FILTER C NE '9' AND
FILTER C NE '0'
PRT
PRT CLOSE
END



//ISFIN DD *
S
ST
OWNER *
PRE *
FILTER C NE '9'
FILTER C NE '0'
PRT
PRT CLOSE
END



And none of these work....
Can anyone help me?

Re: Multiple filter using PGM=SDSF in JCL

PostPosted: Fri Mar 24, 2017 12:26 am
by Robert Sample
Well, what kind of error did you get in the output with what you posted?

Re: Multiple filter using PGM=SDSF in JCL

PostPosted: Fri Mar 24, 2017 2:13 pm
by willy jensen
I strongly recommend looking at the SDSF REXX API.