Search found 64 matches

by datastagenewbie
Sat Jul 24, 2010 7:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Split a column into multiple rows
Replies: 8
Views: 2795

Yes, we could do that if ColB wasn't of lenght 800
by datastagenewbie
Fri Jul 23, 2010 9:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Split a column into multiple rows
Replies: 8
Views: 2795

Split a column into multiple rows

Hi!
I have two columns in a table
ColA ColB
43459 30495
43463 28000300010800110001

I need the output to be
ColA ColB
43459 30495
43463 28000
43463 30001
43463 08001
43463 10001

In other words i have to split colA into multiple rows of size 5
Any help is appreciated
Thanks in advance.
by datastagenewbie
Wed Jun 23, 2010 9:25 am
Forum: General
Topic: Log getting filled and job is aborting
Replies: 1
Views: 998

Log getting filled and job is aborting

Hi My DataStage job is creating huge logs and the job is aborting. Is there anyway I can reduce the job log? I don't know what kind of warning messages it is showing, because when I try to open the log in director , it tried to open the log but never actually does. I have to clear the log from the a...
by datastagenewbie
Wed Jun 02, 2010 8:14 am
Forum: General
Topic: Sorting not working
Replies: 8
Views: 3691

[quote="ArndW"]Perhaps you have RCP enabled on the transform stage output, thus implicitly passing the column on. ...[/quote]

I used the Copy Stage and unchecked RCP. ANd it's working. Thanks for all ur help!
by datastagenewbie
Tue Jun 01, 2010 4:34 pm
Forum: General
Topic: Sorting not working
Replies: 8
Views: 3691

[quote="ray.wurlod"]A correctly-programmed Transformer stage (after the Sort stage) WILL work to drop a column. ...[/quote]
hmm. I used the transformer to just drop the column. It didnot have anything else in it. Do u think something needs to be added in the transformer?
by datastagenewbie
Tue Jun 01, 2010 3:35 pm
Forum: General
Topic: Sorting not working
Replies: 8
Views: 3691

I am going to try it. I tried, transformer, but that did not work.
by datastagenewbie
Tue Jun 01, 2010 1:10 pm
Forum: General
Topic: Sorting not working
Replies: 8
Views: 3691

Sorting not working

I have a job that transforms data and assigns a serial number to it. At the end I want all the data to be sorted based on the serial number, but I dont want the see the serial number. DAtaStage works well if the serial number is pulled from the Sorter stage to the Output SF stage, but the data is no...
by datastagenewbie
Thu May 27, 2010 7:31 am
Forum: General
Topic: Zero count
Replies: 6
Views: 2345

Yes, that seems like a reasonable requirement. What do you get out of DataStage when there ARE records in the file? How are you calculating this? Think about how any calculation could be performed ... I am not a premium member, so I don't know if you already provided the solution or not...sometimes...
by datastagenewbie
Thu May 27, 2010 7:29 am
Forum: General
Topic: Zero count
Replies: 6
Views: 2345

To get the count, I am creating a dummy key column and counting it in the aggregator.
As a workaround I am having a row generator generate a zero value, and add it to the count from the aggregator(above).
So, even if nothing is in the file the value will be zero.
by datastagenewbie
Wed May 26, 2010 7:48 pm
Forum: General
Topic: Zero count
Replies: 6
Views: 2345

Zero count

:?: I have a situation where i count the records in a file and when the file is empty I need the count to be zero. But In DataStage it is not outputting anything. :cry:
Please advise.
by datastagenewbie
Tue May 18, 2010 7:06 pm
Forum: General
Topic: trouble with pivot
Replies: 6
Views: 1986

I used Sorter , and then in the transformer I used this expression.
If keyChange=1 then Col1 : char(10): Col2 Else Col2

Got me the desired results. :-)
by datastagenewbie
Tue May 18, 2010 4:00 pm
Forum: General
Topic: trouble with pivot
Replies: 6
Views: 1986

trouble with pivot

Hi I am trying to use pivot and am not getting the desired output, i searched the forum but none helped :cry: Here is my input Col1, Col2 -------------- a,1 a,2 a,3 a,4 b,1 b,5 b,6 And the output I want is Col ----- a 1 2 3 4 b 1 5 6 By using pivot I am getting a 1 a 2 a 3 a 4 b 1 b 5 b 6 Please hel...
by datastagenewbie
Tue May 11, 2010 3:11 pm
Forum: General
Topic: DataStage Date Validation
Replies: 1
Views: 2396

DataStage Date Validation

My date is in YYYYMMDD format and when I use the function IsValid
for dates like 20100100 , an invalid date, the function says it is valid. Please advise.
by datastagenewbie
Sat May 01, 2010 7:16 pm
Forum: General
Topic: can more than one job read a dataset at the sametime?
Replies: 2
Views: 1154

Thanks!
by datastagenewbie
Sat May 01, 2010 6:49 pm
Forum: General
Topic: can more than one job read a dataset at the sametime?
Replies: 2
Views: 1154

can more than one job read a dataset at the sametime?

Hi!
I was wondering if more than one job read a dataset at the same time? or will it be locked bcoz another job is reading it?

Thanks in advance.
A.