Are your column names static or variable? IF static then you just need to hard code some values and then (as cdp suggests) pivot the data.
If your column names and the number of columns is variable then you need to get creative and read the metadata for the table first to get the column name values.
Search found 504 matches
- Fri Feb 19, 2016 3:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Getting the columns names and corresponding values in rows
- Replies: 3
- Views: 4438
- Tue Feb 16, 2016 6:59 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: lookup with LIKE and not with EQUAL
- Replies: 9
- Views: 6348
You are using version 11 so this is actually a lot easier than some earlier versions. Join your Full String to every word in your list (ie add a column which contains the offending word). You can then just sort and group your data into a transformer, set a stage variable to hold the updated output v...
- Mon Feb 08, 2016 10:55 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Varchar to timestamp
- Replies: 10
- Views: 6401
- Mon Feb 08, 2016 10:30 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Split a source file into multiple files dynamically
- Replies: 6
- Views: 7201
You could also try using a combination of a peek stage and a lookup then outputting the values to an external target stage. Eg: Set a peek to return all records, all columns, all partitions, and the output mode to Output (Rather than log), Show column names should be true. This will output the data ...
- Mon Feb 08, 2016 10:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Generate schema files in datastage
- Replies: 11
- Views: 10876
- Tue Nov 24, 2015 10:28 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How load Sequential File with data that had multiline values
- Replies: 3
- Views: 2615
What are you using to open you csv file? I don't think the issue with with you writing your output, but rather with the program reading the file. If you want to combine the data over multiple lines into a single column, then you need to find a way to do that prior to your output. If you require thos...
- Tue Nov 17, 2015 10:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Tringger n instances of a job parallely
- Replies: 6
- Views: 3934
- Tue Nov 17, 2015 8:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: efficient string manipulation question
- Replies: 3
- Views: 3210
Not sure about most efficient, but I can only think of 2 ways: 1. Using some sort of regular expression at the unix command line (eg sed) 2. If using DS, the some combination of stage and loop variables that would determine the number of commas (DCount), hold the current, previous and/or next delimi...
- Mon Oct 19, 2015 6:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Load Zero Byte File
- Replies: 2
- Views: 2171
You could have a file which is the same structure as your input file that has your default message in it. You could then use the same input stage with multiple file names. Make sure you sort the data ensuring that your default data comes last. You can then filter the line out if the number of input ...
- Mon Oct 19, 2015 2:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: process big data
- Replies: 2
- Views: 2561
- Wed Oct 14, 2015 9:28 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Need Help in RCP jobs
- Replies: 5
- Views: 3693
- Tue Oct 13, 2015 2:54 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Need Help in RCP jobs
- Replies: 5
- Views: 3693
- Thu Oct 08, 2015 7:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Looping Date values in Transformers
- Replies: 9
- Views: 5158
- Thu Oct 08, 2015 5:40 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: job stop processing!
- Replies: 5
- Views: 2459
- Thu Oct 08, 2015 4:15 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: job stop processing!
- Replies: 5
- Views: 2459