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.  how to set variable to constant value inside CARLA code

    Posted Tue July 20, 2021 02:16 PM

    Hi All

    i have to add a field in the sortlist ouput sortlist DATE TIME SYSTEM 'logon'

    i want to define a variable to have the fixed value 'logon' or add column header to value 'logon' in the sortlist

    can anyone help me in this?

    thanks


    #Support
    #ZSecurity
    #SupportMigration


  • 2.  RE: how to set variable to constant value inside CARLA code

    Posted Wed July 21, 2021 09:18 AM

    Hello,

    Hopefully these examples will help (the first one is based on an example from the CARLa manual):

    DEFINE type=smf element(HB ,"logon",7) TRUE

    define type=smf a_fixed_value("logon", str$blank("logon "),6) true

    Regards, Mike


    #SupportMigration
    #Support
    #ZSecurity


  • 3.  RE: how to set variable to constant value inside CARLA code

    Posted Wed July 21, 2021 09:30 AM

    Thanks Mike for your support

    actually my problem is i have field contains 0 or 2 or 3

    if 0 i should display logon

    if 2 should display logoff

    if 2 should should display termination


    is there any code to handle this case in one variable in sortlist?



    #Support
    #SupportMigration
    #ZSecurity


  • 4.  RE: how to set variable to constant value inside CARLA code

    Posted Wed July 21, 2021 11:01 AM

    This cannot be handled in one variable, but you can append multiple variables as follows to show the relevant values as per the define definitions, something like this:

    define type=smf also_a_logon("lo",str$blank("logon "),6) boolean where ,

    user='.......0'b

    define type=smf also_a_logoff("go",str$blank("logoff"),6) boolean where ,

    user='.......1'b

    define type=smf also_a_term("n",str$blank("term "),6) boolean where ,

    user='......1.'b

    newlist type=smf outlim=1

    select exists(user)

    sortlist also_a_logon(0) | also_a_logoff(0) | also_a_term(0)


    #Support
    #ZSecurity
    #SupportMigration