Previous Topic: Calculate a Value for ColumnNext Topic: Define REALM Records to the SDT


Define MASK Records to the SDT

The MASKREC keyword is required when adding a MASK record to the SDT Record.

To define a new MASK record to the SDT, enter the command:

TSS ADDTO(SDT) MASKREC(maskname) 
               DESCRIPT(descriptname)
               MASKDATA(fielddefinition)
MASKREC

Specifies a user‑defined record ID that must be unique for each MASK record. Valid names can contain alphabetic, numeric, national characters and Scandinavian vowels (hex codes, CO, DO, and 6A).

Size: 8 characters

DESCRIPT

Designates an optional user‑description field that is used as a logical name for this record. If the description field contains blanks, enclose it in single quotes.

Size: 32 character

MASKDATA

Contains the layout of the field to be masked. You can specify up to five fields on each MASKDATA keyword. Each field‑definition operand consists of five sub‑fields:

Example: define a DST MASK record

This example adds a MASKDATA field to the MASK record CRYPT1 that contains a salary field in character format called ADDR, masked with an asterisk (*), having an offset value of 50 and a length of 20 characters:

TSS ADDTO(SDT) MASKREC(CRYPT1) 
               MASKDATA(ADDR,CHAR,50,20,**)