Search found 6797 matches

by DSguru2B
Wed May 09, 2007 9:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: field function
Replies: 8
Views: 2517

See if the following custom routine helps you. FUNCTION SplitRecord(Arg1) FieldToSplit = TRIM(Arg1) Type = "" Year = "" tmpType = "" tmpYear = "" FLAG = @TRUE FieldLength = Len(FieldToSplit) FOR n = FieldLength To 1 STEP -1 asciiCode = ...
by DSguru2B
Wed May 09, 2007 8:54 am
Forum: Site/Forum
Topic: 20,000 just around the corner?
Replies: 6
Views: 3361

Congratulations Ray. Thats one
humongous
post count. Way to go.
by DSguru2B
Wed May 09, 2007 8:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: field function
Replies: 8
Views: 2517

In the field "CAR 3", is 3 the year? Or is it supposed to be 03 and you did not include the 0. Where I am getting to is that if the last two places are always going to be the year then you can use Right(in.Link, 2) for the year part and LEFT(in.Link, LEN(in.Link)-2) for the Type.
by DSguru2B
Wed May 09, 2007 8:10 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sort function in server jobs
Replies: 7
Views: 1770

sort -u will eliminate duplicates and will retain only one per key. Read about sort in google to get its complete usage.
by DSguru2B
Wed May 09, 2007 7:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sort function in server jobs
Replies: 7
Views: 1770

Externally, i.e; Sort it via the unix sort command
by DSguru2B
Wed May 09, 2007 7:37 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Link Collector Problem
Replies: 2
Views: 1132

Are they both set as keys in all the links coming in and out of the link collector?
by DSguru2B
Wed May 09, 2007 7:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Carriage Returns...
Replies: 3
Views: 1561

If you are indeed ftp'ing in Ascii format then the files get converted to Unix format. That means you need to specify 'Unix Format' in the sequential file stage.
by DSguru2B
Wed May 09, 2007 7:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Count number of fields in ~~ delimited string
Replies: 7
Views: 1579

Well, it can be done using EREPLACE() and count together. Use EREPELACE() to change '~~' to something that is most likely not going to show up in the data. Something like ! or & and do a count on that. In px, pxEreplace() can be used to replace the double tilda. NOTE: pxEreplace() is not an IBM ...
by DSguru2B
Wed May 09, 2007 7:23 am
Forum: General
Topic: Optimization and Performance (Wasteful Processing War)
Replies: 3
Views: 1216

Whats there to discuss, you have the strategy right there as your second point. Use the process date to extract only the changed records. Pass it through to your datawarehouse. Now if these daily changes are going to be huge ( in millions) then you can bulk load the changes to a work table. Pass a s...
by DSguru2B
Wed May 09, 2007 7:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage Job 2611 Phantom 16948
Replies: 4
Views: 2009

:idea: Knowledge of your job design should help.
Make sure your metadata is correct and no varchar field goes to any kind of numeric field.
by DSguru2B
Wed May 09, 2007 7:14 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ds_ipcopen() - Error in lockf
Replies: 1
Views: 759

Go to the temp folder, and keep checking for any file created while this job is running. Then see what happens to that file once the job aborts. A workaround would be to put either an IPC stage between the two transformers or a passive stage like a flat file.
by DSguru2B
Wed May 09, 2007 7:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: BuildOp not working for large volume of Input DB Table
Replies: 3
Views: 1125

What was the problem in the first place? Memory mismanagement?
by DSguru2B
Wed May 09, 2007 6:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Count number of fields in ~~ delimited string
Replies: 7
Views: 1579

In the filter command put in the following awk command.

Code: Select all

awk -F"\~~" '{print NF}'


This should take care of it.
by DSguru2B
Mon May 07, 2007 1:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Adding 1 day to date < 1970-01-01
Replies: 1
Views: 1022

How are you connection to DB2 mainframe? Or you are getting a flat file from the mainframe? If you are going directly to mainframe, try specifying a TO_CHAR for the date in the sql select and read it as varchar instead of date.
by DSguru2B
Mon May 07, 2007 11:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Errors on a Lookup Stage
Replies: 4
Views: 1309

As for your first error. Look at your config file and see what paths have you specified their. As for your second error, it seems like there is NULL encountered in a non-nullable column. Please check the metadata and the records. If the column is infact not nullable, then handle nulls appropriately....