Can the ACF2 OMVS SECTRACE records be sent to a file or SMF rather than to the the console?

Document ID : KB000029785
Last Modified Date : 14/02/2018
Show Technical Document Details

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.

For example:


SECTRACE SET,ID=mytrace,TYPE=OMVS,FUNC=ALL,DEST=DATASET,DSN=USER02.TEST.SECTRACE,END


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.

For example:

//INITSECD JOB (77777777)
//ALLOCATE EXEC  PGM=IEBGENER
//SYSUT1   DD  *,DCB=LRECL=133,BLKSIZE=27930
//SYSUT2   DD  DSN=USER002.TEST.SECTRACE,UNIT=SYSDA,
//             SPACE=(CYL,(15,15)),DISP=(NEW,CATLG,DELETE),
//             VOL=SER=SYS28,DCB=(LRECL=133,BLKSIZE=27930,RECFM=FB)
//SYSPRINT DD SYSOUT=*
//SYSIN    DD  DUMMY