Appending Multiple column names

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
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

Appending Multiple column names

Post by MOHAMMAD.ISSAQ »

I'm using DS server 7.1 version on Unix environment.
I want to append multiple coulmn names into a single.
Say for e.g:
Input Col Output Col
a e
b
c
d
where the value of e=a:b:c:d
Since in Input have nearly 2000 columns it's a daunting task to append the column names.
Can anybody suggest me a simple way of doing this?

Thanks in advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Daunting, tedious, but not difficult. Suggestion, build a few at a time in stage variables: there is an upper limit on the length of an expression.

And beware of nulls.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

Post by MOHAMMAD.ISSAQ »

Thanks ray for suggestion.
I found one solution for copying column names.
If we create one sequential file job and "include column name as header" we'll get all the columns names.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

I absolutely thought you were doing an ETL exercise just like Ray. You were looking to get the list of columns in metadata for some reason. You've got yourself a reasonable solution.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply