Adding Customerid to each parsed row.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sam334
Premium Member
Premium Member
Posts: 145
Joined: Mon Aug 26, 2013 7:42 pm

Adding Customerid to each parsed row.

Post by sam334 »

All, I have posted this before and successfully parsed the data as shown below.
Customer_id, Interaction_data
Adam, 12:10:07: Dialing12:10:07: Connecting12:10:07: ABC: abc:9433769781$100.88.77.0:878712:10:07: ABCD: 000012:10:07: Agent Initializing12:10:18: On Call12:10:18: Assigned to operator12:10:18: Waiting for Supervisor12:10:18: Waiting for Manager12:11:13: Call Ended12:11:13: Call Not connected


The issue is that, each row has a customer id (Adam in this case) key for which this particular record is inserted. Now, If I want to add same customer_id to each parsed row, what method should I follow.

I want like,
Adam,12:10:07: Dialing
Adam,12:10:07: Connecting
Adam,12:10:07: ABC: abc:9433769782$100.88.77.0:8787
Adam,12:10:07: ABCD: 0000 and so one.
Thanks.
Last edited by sam334 on Thu Aug 21, 2014 7:59 am, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That just sounds like a stage variable to me. Stash it and add it to each row as you parse it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply