Search found 144 matches

by sam334
Thu May 22, 2014 9:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IF THEN ELSE Function
Replies: 6
Views: 1688

IF THEN ELSE Function

All, Need a help on IF function. This is with my old post earlier I have data looks like, 03:12:11Available 00:10:11Busy 12:13:09Unavaialble 09:08:11On Call Issue is that, I have output column in Ascending order, Available,Busy,On Call,Unavailable In transformer, I am trying to use a function, by wh...
by sam334
Mon May 19, 2014 2:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows to column split in Datastage.
Replies: 6
Views: 3137

Okay,I tried this way. So, I changed the sql query and it is pulling data like, userid,time_spent,status,date sam,0:15:12,Free to talk,2013-04-20 sam,1:15:22,Busy,2013-04-20 sam,00:47:15,available,2013-04-20 sam,04:15:11,out of desk,2013-04-20 jim,02:10:15,busy.2013-04-20 jim,00:15:10,free to talk,2...
by sam334
Mon May 19, 2014 8:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows to column split in Datastage.
Replies: 6
Views: 3137

Thanks Guys. So far I divided the column in SQL query in source data grouped by status and userid.
So, it looks like, userid,hour,minute,seconds,status and date. Now i can try pivoting the data.

Will also try your suggestions for sure.

Thanks,
by sam334
Fri May 16, 2014 12:22 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows to column split in Datastage.
Replies: 6
Views: 3137

Thanks Ray. It is quite tough for sure. In Pivot stage, if use array of 3 for on call,busy,free to talk. its repeating the same for next other rows which does not make sense. )pivoting on status. Its coming like, userid,beginningdatetime,endingdatettime,status1,status2,status3 sam,2014-04-12 7.00am,...
by sam334
Thu May 15, 2014 11:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows to column split in Datastage.
Replies: 6
Views: 3137

Rows to column split in Datastage.

All, Need one help on rows to column spilling in datastage. It is a parallel environment where source is db2 database. Basically we have four columns, userid,begiinigdatettime,status.endingdatetime,duration. Sam,2014-04-12 7.00am, on call,2014-04-12,7.30am, 1800 Sam,2014-04-12 7.30 am,busy,2014-04-1...
by sam334
Thu May 08, 2014 9:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parse data
Replies: 13
Views: 9153

Have a question on the code. It was compiling fine but in the code it says sequential file right. But we have the column in database which will be parsed in multiple rows. Initial stages look like, ODBC--TRANSFORMER--SEQUENTIAL FILE. So, if the code is used in transformer it is not about sequential ...
by sam334
Fri May 02, 2014 9:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parse data
Replies: 13
Views: 9153

Ray,
Thanks for your reply. I tried the code, it was not giving the expected result. I will let you know what was the error.

Column 2 is the call id (which we added in beginning of each parsed row) and column 4 is the column which has the data to be parsed.

Thanks again.
by sam334
Fri May 02, 2014 7:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parse data
Replies: 13
Views: 9153

Ray, there in one previous job, we have pipe delimiters and two stage variables. The data looked like, 9999,0,0,20150925125011,201409251259940,,,,, |9915,0,0,201509254857441,20140925151088,,,,, and so on. To parse it we used-- StgVar= Change(DSLink1.Column4, "|", "|": DSLink1.Col...
by sam334
Wed Apr 30, 2014 8:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parse data
Replies: 13
Views: 9153

Yes, Ray is correct, it is a call log. So, will have calls from 6AM to 11.59 PM.
by sam334
Tue Apr 29, 2014 2:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parse data
Replies: 13
Views: 9153

Parse data

Hi All, Need a help on parsing data I have a sql database column with 3000 bytes. Sample data looks like for that single row, 23:05:05: Aaaaaaaaaaaa23:05:05: Bbbbbbbbbbbb23:05:05: BBB: 983001587423:05:05: AAHH: 111123:05:05: XXXXXXXXX23:05:06: YYYYYYYY23:05:06: ZZZZZZZZZZZZ23:05:07: CCCCCCCCCCC23:05...
by sam334
Mon Apr 21, 2014 1:15 pm
Forum: General
Topic: Server to Parallel
Replies: 9
Views: 3194

Thanks everybody. I will start reading the materials very soon. Craig, Thanks for your suggestion to post it in general blog..Worked great..:) Also, if somebody can open the non visible part for a while that will be great. As said before, my premium membership is not activated yet though I paid almo...
by sam334
Sat Apr 19, 2014 12:57 am
Forum: General
Topic: Server to Parallel
Replies: 9
Views: 3194

Server to Parallel

All, Hope you are doing well. Need an advice from you. I am actually working in Datastage for almost 3 years now, currently 9.1. But my current project only uses server jobs not parallel. Basically I started with Server job datastage career. It seems like, all the companies in the market are using p...
by sam334
Fri Apr 11, 2014 10:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Abort job if 0 record from input file.
Replies: 11
Views: 10585

Thanks. Yes, that is the reason..I renewed the premium membership which expired last month but not yet activated for two weeks. B and C are child tables and all of A,B,C have a process control table which updates while records load and reports run based on the update . If JobA has 0 records then I c...
by sam334
Fri Apr 11, 2014 8:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Abort job if 0 record from input file.
Replies: 11
Views: 10585

Craig,
I tried to include the @INROWNUM before seeing your post. You are correct, it is loading 0 records even though the constraints is there. I meant changes, by including the suggestion posted above.

And can't see your comment as it is blocked.

Thanks.
by sam334
Fri Apr 11, 2014 6:48 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Abort job if 0 record from input file.
Replies: 11
Views: 10585

Thanks everyone. Will try to implement the changes and will keep you posted.

There is an @INROWNUM system variable, could we use that. Like, @INROWNUM >0 in constraint. Lets try all of these.

Thanks again.