Masking in the source field for an ACF2 logonid for multiple formats of source
search cancel

Masking in the source field for an ACF2 logonid for multiple formats of source

book

Article ID: 252462

calendar_today

Updated On:

Products

ACF2 - z/OS

Issue/Introduction

Need a mask for the source field of a logonid record to match both L4.JR2 and L34.JR24 

Will L-.JR* work?  How about L-4.JR*

 

 

Environment

Release : 16.0

Resolution

Rather than using the masked source field of the logonid, the best way would be to use an X(SGP) source record.
You can include all the values you want in the record.
You can use masking if you want but it isn't required.
Here is a link to the writeup in techdocs of the x(SGP) records.  
An example of an x(sgp) record for the entries you want could be something like this.

ACF
SET XREF(SGP)
INSERT L4 INCLUDE(L4.JR1,L34.JR1,L4.JR2,L34.JR2,L*.JR*,L**.JR*)
F ACF2,NEWXREF,TYPE(SGP)
END  

Then add the x(SGP) record key to the logonid records.
ACF
SET LID
CHANGE user01 SOURCE(L4)
END

Using a mask in the logonid record is more complicated.
Here is a link to the masking process within the include and also the source field of the logonid record/ 
If you use a dash (-) in the middle of a source entry, it will be seen as a dash (-) not a masking 
character. A dash at the end of the entry will map any other characters.
A star (*) within the entry must match one character for each star.
Stars at the end of the entry do not require a character to match.
See the link above for more details on masking.
Examples with L-.JR*  and L-4.JR* would not work because dash will be seen as a literal character and not a masking character.