Previous Topic: MASKREC Keyword—MASK Record NameNext Topic: MASKREC Keyword—Overlay FCT Values


Example: MASKREC keyword

This example creates a MASK record called CRYPT1 in the SDT:

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

This example permits a user ALL access to the FCT file called PAY with the MASK record CRYPT1 and selects all departments 100 and above from the input record, and all the employees named Mike from the output record:

TSS PERMIT(USR01) FCT(PAY) 
                  ACCESS(ALL)
                  MASKREC(CRYPT1)
                  SELECT('IF DEPT GE "100" AND NAME EQ "MIKE" ')

This example revoke access:

TSS REVOKE(USR01) FCT(PAY)