The ACF2 OMVS SECTRACE trace records can be sent to the console or to a dataset or PDS. The default is CONSOLE.
To send the trace records to a file or PDS the DEST=DATASET operand of the OMVS SECTRACE command can be used.
DEST=DATASET Specifies that trace output is sent to a data set. The data set can be a sequential data set or a member of a partitioned data set (PDS).
Note: DEST=DATASET also requires the DSName= operand to specify the data set that is to receive the trace output. If a member of a partitioned data set is to be used, the MEMBER= operand is also required in addition to the DSName= operand. This dataset should be pre-allocated. See the INITSECD job, located in the CAX1JCL0 library, for information on creating a dataset and member to use in a SECTRACE.
//INITSECD JOB (77777777)
//ALLOCATE EXEC PGM=IEBGENER
//SYSUT1 DD *,DCB=LRECL=133,BLKSIZE=27930
//SYSUT2 DD DSN=USER002.TEST.SECTRACE,UNIT=SYSDA,
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY