Search found 2886 matches

by qt_ky
Mon Apr 02, 2012 8:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3148

Before-job ExecSH command:

Code: Select all

cat #$DATA_DIR#am.txt #$DATA_DIR#eu.txt #$DATA_DIR#ap.txt #$DATA_DIR#thirdparty.txt >#$DATA_DIR#newfile.txt
Then in the job only read the one new file, #$DATA_DIR#newfile.txt.
by qt_ky
Mon Apr 02, 2012 6:02 pm
Forum: General
Topic: import error from 8 version to 7.5
Replies: 10
Views: 3164

Importing objects from newer version into older versions is not going to be supported and should generate errors. Do it the other way around.
by qt_ky
Mon Apr 02, 2012 6:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3148

#$DATA_DIR#file?.txt

Wildcards:

? should match 0 or 1 characters.

* should match 0 or more characters.
by qt_ky
Mon Apr 02, 2012 5:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: capture the rejected data
Replies: 3
Views: 1054

Use the Merge stage instead.
by qt_ky
Mon Apr 02, 2012 5:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Group Determination
Replies: 2
Views: 1024

I would think you can by using the Sort stage key change column plus Transformer stage.
by qt_ky
Mon Apr 02, 2012 5:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error while reading data from ODBC
Replies: 3
Views: 1189

What data type is it?

Try ODBC --> Peek stage.
by qt_ky
Mon Apr 02, 2012 5:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: append four files
Replies: 12
Views: 3148

Use the file pattern option in Sequential File stage to read all 4 files into the same job that inserts using DB2 Connector stage.
by qt_ky
Mon Apr 02, 2012 8:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: XML Input Stage
Replies: 1
Views: 1177

Have you read the online help / product documentation?

Please ask a specific question.
by qt_ky
Mon Apr 02, 2012 8:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Key change column
Replies: 4
Views: 2347

Add a final Sort stage with the key change column based on sort key = ID. If your key change column is based on sort key = st_DATE then you'll get a lot of 1's and not a lot of 0's, for every time st_DATE changes values.
by qt_ky
Mon Apr 02, 2012 8:13 am
Forum: General
Topic: How to derive last sunday's date based on Current date
Replies: 7
Views: 2023

That's an excellent idea.
by qt_ky
Sun Apr 01, 2012 8:50 pm
Forum: General
Topic: How to derive last sunday's date based on Current date
Replies: 7
Views: 2023

In Linux/UNIX, date arithmetic is not going to be as easy as using functions already built into DataStage. You can use the date command with format options, but subtracting days from a current date will pretty much force you to build your own calendar logic for going backwards across months and year...
by qt_ky
Sun Apr 01, 2012 6:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: transfer data
Replies: 1
Views: 848

Try a command line ftp connection directly from one server to the other. Get or put files. That would give you a direct way to transfer data. Indirectly, you could ftp data from dev server1 to your PC using some free ftp client like FileZilla. Then ftp from your PC to dev server2. If you're asking h...
by qt_ky
Sun Apr 01, 2012 12:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: partition clarification
Replies: 1
Views: 849

Suppose your data set is already partitioned by EMPLOYEE_ID and you need to sort by EMPLOYEE_ID and DATE_HOURS_CLAIMED. The data set does not also need to be partitioned by DATE_HOURS_CLAIMED.
by qt_ky
Sun Apr 01, 2012 7:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function Logic
Replies: 5
Views: 1706

The way I read it, there's normally two commas, except when there's only one comma. :)
by qt_ky
Sat Mar 31, 2012 2:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field Function Logic
Replies: 5
Views: 1706

Use If Then Else based on the result of counting comma delimited fields using the DCount() function.