masking a ss# on a smart note

Sort:
You are not authorized to post a reply.
Author
Messages
SueS
Basic Member
Posts: 20
Basic Member
    I have a smart note that HR wants to see the "before" and "after" of various fields that may get changed on a dependent's record. One of thee fields is the ss#. Is there a way to mask the ss# so it shows as ***-**-6789?

    Any advice would be greatly appreciated.
    Matthew Nye
    Veteran Member
    Posts: 514
    Veteran Member
      Easiest place to do this is in the InfoSet. What is your data source type, DME, RDBMS, etc?
      If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
      SueS
      Basic Member
      Posts: 20
      Basic Member
        It is a jdbc connection to a relational db.
        Matthew Nye
        Veteran Member
        Posts: 514
        Veteran Member
          So the easiest method would be to mask the SS# field in your SQL statement. Not sure what your database platform is but for SQL Server it would be something like"

          SELECT '****-**-'+RIGHT(SSN_FIELD,4)
          FROM Table

          If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
          SueS
          Basic Member
          Posts: 20
          Basic Member
            We use Oracle SQL so it is the same general type of syntax but by doing it like that if one of the first 5 numbers of the ss# were changed, it would not recognize the change. It only recognizes the change if it is to the last four digits.
            Matthew Nye
            Veteran Member
            Posts: 514
            Veteran Member
              You could create a display column using the above syntax and then include the actual ssn field but hide the latter on step 4 of the notification.
              If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
              SueS
              Basic Member
              Posts: 20
              Basic Member
                Thank you so much that did it.

                I did not realize that you could hide a column.
                You are not authorized to post a reply.