Schema Files usage in Import stage - Help

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
swerajan
Participant
Posts: 42
Joined: Tue Aug 05, 2008 4:34 am

Schema Files usage in Import stage - Help

Post by swerajan »

Hi
I am using a column import stage to convert a single column to multiple columns. I am using a schema file to create the metadata for the output. Are there any ways in which i can define the order in which the columns needs to appear in the output

Eg I have a member number column and balance column(needs to be imported).
Output from import stage is something
like this
Bal1,Bal2,Bal3,Member_number

I need to get the ouput in this way
Member_Number,Bal1,Bal2,Bal3

Any suggestions?
ShaneMuir
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Re: Schema Files usage in Import stage - Help

Post by ShaneMuir »

swerajan wrote:
I need to get the ouput in this way
Member_Number,Bal1,Bal2,Bal3
Why do you need them in that order out of the import stage? It shouldn't really matter what order the columns appear.

Or are you outputting the values into a file of some description?
swerajan
Participant
Posts: 42
Joined: Tue Aug 05, 2008 4:34 am

Post by swerajan »

I am loading the data into the table so if the order is maintained it would be good.
ShaneMuir
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Post by ShaneMuir »

swerajan wrote:I am loading the data into the table so if the order is maintained it would be good.
What is the target? And how are you loading?
swerajan
Participant
Posts: 42
Joined: Tue Aug 05, 2008 4:34 am

Post by swerajan »

The target is a DB2 table which will contain the structure something like this
MemberNo~Bal1~Bal2~Bal3~Bal4

The load is a daily load with updates and inserts happening regularly.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not really an answer, per se, but do you not realize that the order you mention those columns in your DML will make absolutely no difference to the result?
-craig

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