CA ACF2

Tues Tip: How to send ACF2 OMVS trace records to a dataset rather than console.

  • 1.  Tues Tip: How to send ACF2 OMVS trace records to a dataset rather than console.

    Posted 01-30-2015 03:20 PM

    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       

     

    Details can be found in the CA ACF2™ for z/OS Systems Programmer Guidein Chapter 6: Special Usage Considerations section 'Tracing UNIX System

    Services (OMVS)'.