I am issuing a TSO ACF CHANGE IF(SECURITY ACCOUNT) command and getting error message 'ACF5D003 OPERATOR EXPECTED NEAR 'SECURITY ACCOUNT', what causes this error?

Document ID : KB000013040
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

I am issuing a TSO ACF CHANGE IF(SECURITY ACCOUNT) command and getting error message 'ACF5D003 OPERATOR EXPECTED NEAR 'SECURITY ACCOUNT', what causes this error?

Answer:

The LIST IF and CHANGE IF commands that specify multiple fields in the IF statement must have the fields be delimited by ",", "AND" or "OR". Blanks are not acceptable as a delimiter and will cause the ACF5D003 error.

For example:

list if(non-cncl nomusass norestrict nosuspend)                       fails with ACF5D003

list if(non-cncl or nomusass or norestrict or nosuspend)           works

list if(non-cncl, nomusass, norestrict, nosuspend)                    works("," equivalent to "AND")

list if(non-cncl and nomusass and norestrict and nosuspend)    works