Rob, what I meant by custom_data missing entirely was profiles with no csdata segment.
I have tried not(cskey=$FIELD1) and missing($FIELD1) and I always receive 0 records.
I have also tried these statements with the same results (0 records): (field=$FIELD1 fieldvalue=' '), S c=dataset segment=CSDATA (custom_data(cstype=char cskey=$FIELD1, csvalue=` `) or custom_data(cstype^=char cskey=$FIELD1)).
The only way I am able to locate records where $FIELD1 is blank is by listing all dsn profiles from the base segment and doing a lookup on $FIELD1, like below:n type=racf pl=0,
tt='Total DSN Profiles without a $FIELD1 value = '
s c=dataset segment=base
sortlist key :$field1 sum (count,tt)
Note: When searching the csdata segement for UserIDs I have found using missing($field1) will not identify $field1 values with blanks