Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

SYNCSORT :: Overlaying one set of charater values with another

$
0
0
Author: Kevin Lindsley
Subject: Overlaying one set of charater values with another
Posted: Sat Nov 05, 2016 3:21 am (GMT 5.5)

I am using basic OUTREC FIELDS=( to accomplish various data manipulations within a file. I now need to add another manipulation where I would be overlaying the SSN field with X's for their values. Input data below:
Code:

10415728001010111223333 2015042820140101201401010
10415728001010444556666 2015042820140101201401010

I need the output as:
Code:

10415728001010XXXXXXXXX 2015042820140101201401010
10415728001010XXXXXXXXX 2015042820140101201401010

The input data could also have the typical dashes I would need to maintain. Input data below:
Code:

10415728001010111-22-3333 2015042820140101201401010
10415728001010444-55-6666 2015042820140101201401010

I need the output as:
Code:

10415728001010XXX-XX-XXXX 2015042820140101201401010
10415728001010XXX-XX-XXXX 2015042820140101201401010

It seems so basic but I'm not finding how to incorporate it in with my existing OUTREC processing. Thanks.


Viewing all articles
Browse latest Browse all 8500

Trending Articles