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.  (UN)ALLOC TYPE

    Posted 10/01/21 08:32 AM
    Hello,
    Is there a equivalent for the alloc statement.
    When I do a carla query

    ALLOC TYPE=UNLOAD DSN='dataset1'
    ALLOC TYPE=UNLOAD DSN='dataset2'
    /*first query*/
    newlist type=racf
    display xxxx
    /*second query*/
    newlist type=racf
    display

    But in the second query, I want only dataset 1 allocated.  Is there a statement to unalloc that one.
    Thanks in advance
    Stan

    ------------------------------
    Stan van OERS
    ------------------------------


  • 2.  RE: (UN)ALLOC TYPE

    Posted 10/04/21 03:59 AM
    Edited by Rob van Hoboken 10/05/21 03:44 AM
    Hoi Stan.

    No, there is no UNALLOC or FREE command in CARLa.  However, the ALLOC COMPLEX=label parameter associates a text value to each record (profile) from the input data set.  You can use this in SELECT/EXCLUDE command(s) to exclude input from a data set, like so

    ALLOC TYPE=UNLOAD DSN='dataset1' complex=first
    ALLOC TYPE=UNLOAD DSN='dataset2' complex=second
    /*first query*/
    newlist type=racf
    display xxxx
    /*second query*/
    newlist type=racf
    exclude complex=second
    display

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


  • 3.  RE: (UN)ALLOC TYPE

    Posted 10/05/21 02:22 AM
    Hoi Rob,

    Thanks for your answer. By the way, you describe, I can make the CARLA to get the needed output

    Stan

    ------------------------------
    Stan van OERS
    ------------------------------