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.  zSecure CARLa -- Timestamp Offsets

    Posted Fri December 20, 2019 10:04 AM
    Hello, how can I perform calculations based off of the current system time with CARLa?

    For example if I have the below:

    newlist type=smf nopage dd=ckrcmd
      select exists(racfcmd) ( TIME=0700:0800)
      sortlist racfcmd(hor,wrap,0)​

    I'd like to instead of hard-coding the time do something similar to CURRENT_TIME-0200:CURRENT_TIME (2 hour window) but cannot figure out the CARLa to do so

    Also adding in an example with DATE offsets would be helpful

    Thank you!

    - Adam Klinger

    ------------------------------
    Adam Klinger
    ------------------------------


  • 2.  RE: zSecure CARLa -- Timestamp Offsets

    Posted Fri December 20, 2019 11:23 AM
    Hi Adam
    With dates you can use TODAY as a date value, for example, this finds passwords expiring in the next 7 days.
    SELECT PASSWORD_EXPIRE_DATE>TODAY AND PASSWORD_EXPIRE_DATE<=TODAY+7
    There is no such keyword for TIME.
    Also, calculations (additions, subtractions) are impossible, except for the example given.

    Look at  SCKRCARL for samples how to build reports with date or time ranges:
    CKALFSTA - statistics per hour
    CKALFSTB - statistics per shift
    CKALFSTC - statistics per weekday

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