How to do a TSO, ACF, CHANGE or LIST IF for a logonid field with quotes.
search cancel

How to do a TSO, ACF, CHANGE or LIST IF for a logonid field with quotes.

book

Article ID: 196714

calendar_today

Updated On:

Products

ACF2

Issue/Introduction

There are several logonid with a NAME 'TSO USER' where the beginning quote and ending quote are part of the NAME. From TSO, ACF, how can a CHANGE LIKE(-) IF(NAME = 'xxxxxxx') or a LIST LIKE(-) IF(NAME 'xxxxxxx') be done if the NAME field contains quotes?

Environment

ACF2: 16.0

Resolution

For character logonid fields that contain quotes the IF statement should be specified as a HEX field rather than a Character field.

In this case if the logonid NAME field specifies 'TSO USER'  the IF statement would specify the HEX equivalent of 'TSO USER' which would be x'7DE3E2D640E4E2C5D97D'.

   '    T  S  O     U   S  E  R   '        <= Character
x'7DE3E2D640E4E2C5D97D'     <= HEX

For example:

ACF
LIST LIKE like(-) IF(NAME = x'7DE3E2D640E4E2C5D97D')

or for a CHANGE command:

ACF
CHANGE LIKE(-) IF(NAME = x'7DE3E2D640E4E2C5D97D') NOACCOUNT