Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Changing Data Format

$
0
0

I am trying to find a quick workaround to some manual scrubbing thats being done with the below data.

 

Below are the 2 input files

Input    
STATEID NUMBERID NUMBER 2RateCompany Name
AB322736512-3456781.00%ABC
CD322736659-24523222.50%EFG
EF322736784-11856823.00%HIJ
GH322736865-09457944.00%KLM
IJ322736984-12181584.50%NOP
KL322737084-11856821.00%XYZ
MN322737165-01610932.00%OOO
OP322737284-11856821.00%PPP

 

Input 2 
STATESTATE CODE
AB01
CD02
EF03
GH04
IJ05
KL06
MN07
OP08

 

I am looking at generating the below output. The rate in the input file needs to be formatted to 999v9999 example: 1.00% would show as 0010000.

 

All  data in the ID-NUMBER 2 column will be replaced by 99999999

 

The ID NUMBER field will contain the same data.

 

The 2 columns after RATE needs to be 30 characters long

 

ID NUMBERID- NUMBER 2RATE  STATE CODE
 99999999010000  01
 99999999025000  02
 99999999030000  03
 99999999040000  04
 99999999045000  05
 99999999010000  06
 99999999020000  07
 99999999010000  08

 

Thank you


Viewing all articles
Browse latest Browse all 4999