IBM Security Z Security

Security for Z

Join this online user group to communicate across Z Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Have RACF output from command go to a dataset

    Posted Wed January 25, 2023 09:25 AM
    I would like to know if you can direct the output of a RACF command to a disk dataset from the command prompt instead of having the output displayed on the terminal.

    With DFHSM you can enter a command and have the output written to a disk dataset.  ex:   hsend list dsn ods(output dataset).

    It would be nice if you could do the same with RACF.  The only way I know how to do this is by running a batch job with the RACF command in it and have the output go to a dataset.

    Thaks
    Pat Buchanan

    buchanan2708@sbcglobal.net

    ------------------------------
    Patrick Buchanan
    ------------------------------


  • 2.  RE: Have RACF output from command go to a dataset

    Posted Wed January 25, 2023 10:49 AM
    Edited by Rob van Hoboken Wed January 25, 2023 10:50 AM

    With zSecure you can enter commands into the CKRCMD data set (enter the RESULTS command in the command line, type an E in front of the CKRCMD file), after entering the RACF commands into the data set, type RUN in the command line.  The results are displayed in browse.

    Alternatively, you could write a simple Rexx that buffers the output in a stem variable, and writes this to a data set.  OUTTRAP

    Here is an approach that saves the output in an ISPF Edit session.

    ------------------------------
    Rob van Hoboken
    ------------------------------


  • 3.  RE: Have RACF output from command go to a dataset

    Posted Wed January 25, 2023 11:21 AM
    Hi,

    Actually you're browsing the RACF output from a file called userid.C2Rxxxx.CKRTSPRT

    Ronald
    Unless otherwise stated above:

    IBM Nederland B.V.
    Gevestigd te Amsterdam
    Inschrijving Handelsregister Amsterdam Nr. 33054214