How to put an id column to a group of data extracted

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
Sergiomho
Participant
Posts: 7
Joined: Wed Nov 09, 2011 12:45 pm

How to put an id column to a group of data extracted

Post by Sergiomho »

I extract data from a sequencial file that has 4 columns and then I insert it in a table but it doesn't have an id column,

What doesn't come to my mind is how to extract the information of the sequencial file and add one row which needs to be an id column and then insert the data in a table.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry, I'm a little lost.

Are you saying your target table has an "ID" column but your source flat file doesn't so you need to assign one during the load? So, when you said "add one row" you actually meant "add one column"?

Before we start talking the specifics of a solution, can you clarify something please? First I want to make sure we are talking about a Server job and second tell us what database you are using and what datatype this ID column is. Thanks.
-craig

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