IBM Security Z Security

 View Only
  • 1.  (UN)ALLOC TYPE

    Posted Fri October 01, 2021 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 Mon October 04, 2021 03:59 AM
    Edited by Rob van Hoboken Tue October 05, 2021 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 Tue October 05, 2021 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
    ------------------------------