Search found 6797 matches

by DSguru2B
Mon Jul 24, 2006 9:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sequence number
Replies: 6
Views: 2573

Thanks loveojha2. For some reason i thought it was to be incremented for the same group , but if it needs to remain the same then yes, you fixed my code. Just a small change is required in this one. The first row needs to be handled as it has nothing to be compared against and the stage variable 'co...
by DSguru2B
Mon Jul 24, 2006 2:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sequence number
Replies: 6
Views: 2573

Thats true. The OP can just check for change in the col Z. It should be ok as long as its sorted properly. I just translated the OP's code in which he is checking for all the three columns.
by DSguru2B
Mon Jul 24, 2006 2:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: MS SQL Sever Connectivity for Parallel extender
Replies: 8
Views: 1378

Welcome Aboard,
You can use either the ODBC stage or the DRS stage. I am not exactly sure if PX is equipped with DRS or not, if it is, go for that.
Regards,
by DSguru2B
Mon Jul 24, 2006 12:59 pm
Forum: Site/Forum
Topic: Three hurrays for Ray and ArndW
Replies: 2
Views: 3513

Three hurrays for Ray and ArndW

You guys are just awesome. Ray's name speaks for itself and ArndW, cant find words to describe your importance to this forum. Congratulations once again, on behalf of dsxchange and me , on blazing to the post numbers you guys are at today. Honestly, we all lookup to you guys. Thanks for teaching us ...
by DSguru2B
Mon Jul 24, 2006 12:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get first 2 lines of a file
Replies: 5
Views: 1357

Re: How to get first 2 lines of a file

One problem of doing this with a transformer is that the file's name has a date and changes and looks like you can't use wildcards on sequential files Thats a problem, yes, but whats stopping you from creating a second file with a constant name with just the first two records (constraint of that li...
by DSguru2B
Mon Jul 24, 2006 12:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to count records in unix
Replies: 8
Views: 3854

grep -c will only return 1 if there are no line terminators. The OP has still not confirmed whether is a single huge line or multiple lines. For that he needs to perform a sed operation to replace the martian delimiter with a LF and then simply do a wc -l. That should do it. Something like sed 's/@@...
by DSguru2B
Mon Jul 24, 2006 12:34 pm
Forum: IBM<sup>®</sup> DataStage TX
Topic: Reading Mutliple Files in a Card
Replies: 6
Views: 2850

We have some TX gurus here as well. Keep up the good work janhess :)
by DSguru2B
Mon Jul 24, 2006 12:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Help req for setting proper ENV variable
Replies: 9
Views: 2472

Probably create a small script that sources the dsenv file and then executes your job.
by DSguru2B
Mon Jul 24, 2006 12:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sequence number
Replies: 6
Views: 2573

Try this, counter: if (TRIM(X):TRIM(Y):TRIM(Z)) = prevVal then counter + 1 else 1 prevVal: TRIM(X):TRIM(Y):TRIM(Z) Use the counter as the derivation of nO. Also make sure the incoming data is sorted on X, Y and Z, in that order, ascending.
by DSguru2B
Sun Jul 23, 2006 10:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to count records in unix
Replies: 8
Views: 3854

A piece of advice. These questions are more appropriate for a Unix forum rather than DataStage. I am not saying we wont help you, dont get me wrong, what i am trying to imply here is that you will get answers more quickly or even find them by googling it much faster.
Regards,
by DSguru2B
Sun Jul 23, 2006 9:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sending mails by pickuping from Teradata Database
Replies: 4
Views: 987

You can build a simple DS job to create a sequential file with space delimited email addresses. Use that file in your unix script. Basically a small script that fires of the DS job, reads the file and sends email.
by DSguru2B
Sat Jul 22, 2006 10:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading 0's
Replies: 34
Views: 15859

Ok, try this,

Code: Select all


(PAR_AMOUNT*100)/100


That arithmatic manipulation should get the issue resolved, then again i do not understand why you/data modeler, has set an amont field as varchar in the database.
by DSguru2B
Sat Jul 22, 2006 3:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Contractual Date Spans for an Employee
Replies: 2
Views: 728

What database are you using?
If its in oracle then you can use the Lag() and Lead() functions to get the previous and next values respectively. Look at the following website on more details on these functions
http://www.adp-gmbh.ch/ora/sql/analytical/lag.html
by DSguru2B
Sat Jul 22, 2006 2:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sum , Sort and Get Results
Replies: 7
Views: 2784

In such cases, i would love to build a hashed file and run sql's on it via the universe stage. For small amounts of data, its pretty smooth. :wink:
by DSguru2B
Sat Jul 22, 2006 2:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: UserDefined SQL for inserting Timestamp in DB2
Replies: 3
Views: 1595

I do believe you'll find that DB2 wants any date fields in internal format... I wonder if the same is true for timestamps? For timestamps it takes in regular format (not internal). Internal is specific to date types. As Ken suggests, try loading it with sql type varchar. Also note, if you are tryin...