Search found 6797 matches

by DSguru2B
Thu Jan 04, 2007 3:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Format
Replies: 11
Views: 2549

Darn, next time maybe :wink:
by DSguru2B
Thu Jan 04, 2007 2:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: load sequential file with varying number of columns
Replies: 7
Views: 2733

It can but it wont be pretty. What i can think of is read the record as a single column, count the number of tabs using count() or dcount() and depending upon that concatenate the remaining tabs. Write it out as a single column again.
by DSguru2B
Thu Jan 04, 2007 2:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: load sequential file with varying number of columns
Replies: 7
Views: 2733

Run a shell on the file. Which checks for the number of tabs, if less than 10, then it will fill in the missing ones. It would be simple if the missing columns are towards the end. If they are in between then more manipulation is required.
by DSguru2B
Thu Jan 04, 2007 2:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: ExecCommand output value
Replies: 44
Views: 10563

Is that all that your doing, or is that the final step of your shell. If yes then instead of Print 1, do return 1.
by DSguru2B
Thu Jan 04, 2007 2:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: "Telnet Before Command" sporadically not running c
Replies: 12
Views: 4187

Not everything will be outlined. In DataStage there are more ways than one to achieve a task. Are they all good ? No, Are they all supported? maybe not. Telnet execution might not be able to react to the return code, but before/after job subroutine does. So can a routine. Some functions have some ca...
by DSguru2B
Thu Jan 04, 2007 1:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Help: Abnormal termination of stage
Replies: 13
Views: 4639

When the error happens again, reset the job, some more log entries will be producted. They will be 'from the previous run' entries that Craig was referring to.
by DSguru2B
Thu Jan 04, 2007 12:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to create multiple rows from a row
Replies: 10
Views: 3766

Granted. This will take more work than just a simple use of multiple pivot stages as the number of fields that are comma delimited are unknown. Pivot stage would have worked if the comma delimited columns (3, 4 and 5) were static. You need something like awk. Here is what i came up with. This script...
by DSguru2B
Thu Jan 04, 2007 12:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get source file's name into a transformer?
Replies: 12
Views: 4328

Do it at the OS level. Do a

Code: Select all

ls <dir path>| grep "FILENAME" | awk -F"\_" '{print $2}' > result.txt


Now you have that name in a file. Read it in your job and load it in the table. You can run this command in the before job subroutine 'ExecSH'
by DSguru2B
Thu Jan 04, 2007 11:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Deriving different Levels
Replies: 17
Views: 4705

The sample input, is that your source. If it is then the output that you have shown is do-able as Ken suggested. It has been done time and again here. Search for it.
by DSguru2B
Thu Jan 04, 2007 11:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Deriving different Levels
Replies: 17
Views: 4705

You will be able to find implented code here if you search, of exactly what Ken is saying.
by DSguru2B
Thu Jan 04, 2007 11:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: "Telnet Before Command" sporadically not running c
Replies: 12
Views: 4187

Well, if DataStage is used properly then it wouldnt frustrate you. I have been using DS for doing different things, from awk scripts to calling ftp scripts, from file size checking on windoze box to using c routines. Its been good to me. You could create a routine and execute the shell via DSExecute...
by DSguru2B
Thu Jan 04, 2007 10:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Specifying first line is column name
Replies: 3
Views: 1078

I highly doubt you can do that, but will be happy to be proven wrong. A schema file just stores the schema and not the file properties.
by DSguru2B
Thu Jan 04, 2007 10:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: "Telnet Before Command" sporadically not running c
Replies: 12
Views: 4187

I have no clue buddy. There is no return code either. Change the design, get it to execute in the before job subroutine. Atleast you can get a return code there inside the log to look at next time the script fails.
by DSguru2B
Thu Jan 04, 2007 10:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Specifying first line is column name
Replies: 3
Views: 1078

Seqential file stage's properties, go to options, you will see an option "First Line Is Column Name". Set that to True or False accordingly.
by DSguru2B
Thu Jan 04, 2007 10:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Help: Abnormal termination of stage
Replies: 13
Views: 4639

That message doesnt tell much. What is this stage "XFR_BRAND_LKP "? Reset the job, it will show up some more messages, post them here, they might tell us more.