Search found 6797 matches

by DSguru2B
Wed Feb 07, 2007 11:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dynamic FileName
Replies: 4
Views: 1499

I posted a script a while back that will get all the records of the same column value and filter those records into a file with the same name as the column value. You can search for it.
by DSguru2B
Wed Feb 07, 2007 11:16 pm
Forum: General
Topic: Future of Red Brick
Replies: 5
Views: 1763

kumar_s wrote:I guess Ray should be more happy, as this is his favorite database, as I could recall from some of his previous post.

Thats true. I read some of his very earlier posts and he just loves RedBrick.
by DSguru2B
Wed Feb 07, 2007 9:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert sybase timestamp to Oracl timestamp
Replies: 19
Views: 7735

Most certainly. Maybe a generic routine could be created to handle all date and timestamp formats.
by DSguru2B
Wed Feb 07, 2007 9:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: command script
Replies: 16
Views: 3268

Sure you can. For dsjob command, its just another job.
by DSguru2B
Wed Feb 07, 2007 9:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Script for Cleaning the Log Files
Replies: 21
Views: 5667

A monitoring service should already be in place by your SA. Adhere to the purge settings, also make sure you archive temp files and delete them regularly.
by DSguru2B
Wed Feb 07, 2007 9:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: command script
Replies: 16
Views: 3268

Narasimha's design would be from a sequence job. Ray's reply would be for command line. You have both options now. Adapt, learn and shine :wink:
You can put something, probably an Execute Command Stage that just creates one file in the temp directory.
by DSguru2B
Wed Feb 07, 2007 4:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert sybase timestamp to Oracl timestamp
Replies: 19
Views: 7735

No Sam, this is just for the input shown by the OP. Because i am disecting the date and I know that the first part is going to be Month in three character string, the second part is Day and so on. It wont work for any input format.
by DSguru2B
Wed Feb 07, 2007 4:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert sybase timestamp to Oracl timestamp
Replies: 19
Views: 7735

Use the following C function to convert your input into YYYY-MM-DD 24HH:mm:ss.nnn format. THen use StringToTimestamp() to convert the string to timestamp. #include <stdio.h> #include <stdlib.h> #include <string.h> char* SybaseToOracleTp(char* InTp) { //Initialize variables const int SIZ...
by DSguru2B
Wed Feb 07, 2007 3:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert sybase timestamp to Oracl timestamp
Replies: 19
Views: 7735

DategenericToODBCTimestep() is a server function and not present in PX. You need to write a parsing C program to bring your input into a oracle format and then apply StringToTimestamp() function on it.
by DSguru2B
Wed Feb 07, 2007 2:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Carriage return
Replies: 9
Views: 3220

Look into sed. You can apply sed as a filter command.
by DSguru2B
Wed Feb 07, 2007 2:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformer Stage with zero input link
Replies: 14
Views: 3567

Define a stage variable. That should calm down the compiler.
by DSguru2B
Wed Feb 07, 2007 2:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: environment report
Replies: 3
Views: 894

To get the contents, you can go to your project directory and do

Code: Select all

cat DSParams
by DSguru2B
Wed Feb 07, 2007 1:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert sybase timestamp to Oracl timestamp
Replies: 19
Views: 7735

Re: How to convert sybase timestamp to Oracl timestamp

jherr22 wrote:
Feb 10 2007 10:30:30:450AM

Do you have a space before AM?
by DSguru2B
Wed Feb 07, 2007 10:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get out the Null row in a file
Replies: 20
Views: 4886

Thats a good solution narasimha. Shrek7577, put narasimha's command (just the findstr /v /r "^$") in the filter command after enabling "Stage uses filter commands" in the sequential file stage. That will work for getting rid of the blank lines.
by DSguru2B
Wed Feb 07, 2007 10:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get out the Null row in a file
Replies: 20
Views: 4886

That looks fine to me. It has 17 columns which means 16 delimiters(;). Make sure your specifying ; as the delmiter. Also to take care of missing rows, go to the columns tab and for the first column specify YES to "Contains Terminators". This will enable the stage to read the file. In the constraint ...