Field name with spaces

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
senthil_tcs
Premium Member
Premium Member
Posts: 40
Joined: Tue Oct 14, 2008 3:30 pm
Location: London

Field name with spaces

Post by senthil_tcs »

Hi,

Just want to know is there a way to create column name with spaces where the output file is in tab delimited format i.e. Instead of EMP_NO they want EMP No as the column name in the output file. As we know in datastage it will not allow us to define the metadata like this..is there an alternate way to doing this?

Appreciate any inputs on this
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Never tried, but it seems to me you'd need to either create the file without a header row and include those header values as the first record you write. That or create a file with just that header record as a template, stash it somewhere, copy it 'before job' to your target destination and then set the job to 'append' the data to that starter file.

Come to think of if, I do believe I have done the latter in the past. Worked just fine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

Yes, you can do it in Datastage
create the first record with column name.
Post Reply