Search found 28 matches

by Ronetlds
Tue Dec 04, 2007 3:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Importing metadata
Replies: 4
Views: 2517

Mismatch between Oracle stage and version of Oracle database? Has Oracle been upgraded with no change to existing job?
by Ronetlds
Wed Oct 31, 2007 11:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: TERADATA...what does it mean by DB option.
Replies: 2
Views: 4929

3153 TWM Workload violation: %VSTR Explanation: This error occurs if a logon request is aborted by Teradata TWM for a Workload Limit violation. Check currently active Teradata TWM rules. Generated By: Dispatcher. For Whom: End User. Remedy: Wait for system activity to subside or contact your TWM Adm...
by Ronetlds
Tue Oct 30, 2007 1:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Running the same job multiple times
Replies: 3
Views: 2200

In Job ->

Edit - Job Properties - check box "Allow Multiple Instance"

You can now execute job "JOBNAME" with a qualified name ie:

run JOBNAME.YELLOW

run JOBNAME.GREEN

without having a datastage contention
by Ronetlds
Fri Oct 26, 2007 4:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Conversion error
Replies: 1
Views: 1335

Teradata timestamp format is

2007-10-26 17:08:48

So try

RECEIPT_DT:Date=date_from_string["%yyyy-%mm-%dd %hh%nn%ss"](RECEIPT_DT).
by Ronetlds
Wed Oct 24, 2007 11:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to convert a single row into multiple rows
Replies: 8
Views: 8504

create 2 output links from transformer. keep two rec counter stage variables, rec ctr, rec ctr + 1 to be used for sorting after transformer. Increment both rec ctrs by 2 for each input rec. for inrec 1 -> out link1 rec ctr, inrec1 data1 out link2 rec ctr + 1, inrec1 data2 sort on rec ctr field after...
by Ronetlds
Wed Oct 24, 2007 10:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: After-job routine calls unix command 'sed'
Replies: 11
Views: 4722

Call DSExecute("UNIX", sed 's/a/b/g' < /tmp/input.txt > /tmp/output.txt , output, systemreturncode)
by Ronetlds
Thu Oct 18, 2007 9:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal value reading issue
Replies: 4
Views: 2677

Floor() function works well for truncating.

In general, if needed, you could multiply/divide by desired power of 10, apply Floor() (or Ceiling() if rounding up), then multiply/divide by desired power of 10 to get the exact precision you want.
by Ronetlds
Thu Oct 18, 2007 9:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal value reading issue
Replies: 4
Views: 2677

Floor() function works well for truncating.

In general, if needed, you could multiply/divide by desired power of 10, apply Floor() (or Ceiling() if rounding up), then multiply/divide by desired power of 10 to get the exact precision you want.
by Ronetlds
Thu Oct 18, 2007 8:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Append Header and Trailer Record for each group
Replies: 5
Views: 3052

You need to build two addl record types (header and trailer) with layouts matching your detail rec so you can merge them to one file. You can play around with the existing columns or append new columns to do that. So you need three output links. Two of the output links (header and trailer) will need...
by Ronetlds
Wed Oct 17, 2007 3:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Custom Parallel Routine
Replies: 9
Views: 3673

email me - got info for AIX, not windows though. your compiler options would be different, as well as paths to object files. - elder700@yahoo.com
by Ronetlds
Wed Oct 17, 2007 3:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Append Header and Trailer Record for each group
Replies: 5
Views: 3052

To get you started: 3 fields in - Grp field, sum field, 3rd field. Sort stage: key change on field Grp field. Transformer: 3 out links, addl column rec type - 1 for hdr, 2 for detail, 3 for tlr make all rec layouts match for merge key change = 1 constraint for hdr, tlr, refresh rec ctr & sum sta...
by Ronetlds
Wed Oct 17, 2007 10:33 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: difference of dates
Replies: 14
Views: 6501

Iconv(Field(DateandTS," ",1),"D-YMD[4,2,2]")
by Ronetlds
Tue Oct 16, 2007 4:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: difference of dates
Replies: 14
Views: 6501

Sorry for the multiples. If your date format is mm/dd/yyyy 00:00:00 then yes, the timestamp will kill the Iconv. To fix, pass the date as a char, then remove timestamp (Field function - keeps first field before space in this example - look at Help) and apply Iconv: Iconv(Field(DateandTS," "...
by Ronetlds
Tue Oct 16, 2007 3:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: difference of dates
Replies: 14
Views: 6501

Sorry,
convert dates as

Iconv(daten,"D/MDY[2,2,4]")