Search found 219 matches

by parag.s.27
Tue Feb 21, 2006 11:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: When not to use compare(x,y)
Replies: 12
Views: 2746

Re: When not to use compare(x,y)

I am coming to the conclusion that using =, <>, < or > is mostly harmful. There are occasions when it is OK, such as when one side of the comparison is a literal string containing non-numeric values (e.g. flag="Y"), or other circumstances when you know for certain that the values will nev...
by parag.s.27
Tue Feb 21, 2006 11:01 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing Parameter to start loop activity in the sequence
Replies: 14
Views: 4621

Re: Passing Parameter to start loop activity in the sequence

hi, I need to pass a set of email address as a start loop activity in the Job sequence.when i tried giving as paramter by giving the file name as parameter i didn't work.any suggesstion on that. thanks, RK you can simply add a user variable stage in the starting of your sequence. In that user varia...
by parag.s.27
Mon Feb 20, 2006 6:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date check for business validation
Replies: 14
Views: 7680

Date check

Holidays - of necessity - must be table (or hashed file) driven. Some holidays change year to year, such as Ramadan or Easter. Left(Oconv(TheDate, "DWB"),1) = "S" is a convenient test for a weekend day in English. Hi, Actually i have to take care of weekends only. For rest all h...
by parag.s.27
Mon Feb 20, 2006 4:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reg. XML Input
Replies: 21
Views: 5720

Re: Reg. XML Input

Hi,

Actually folder stage is not meant for defining the columns or fields of database. It is for defining 2 fixed columns, 1st is the input file name with entire path, and 2nd is the name given to the contents.
by parag.s.27
Fri Feb 17, 2006 10:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date check for business validation
Replies: 14
Views: 7680

Re: Date Check

[quote="parag.s.27"][quote="ArndW"]kcs,

Hey Thanks to all of you. It finally worked. I just made a Routine for it.

Thanks
by parag.s.27
Fri Feb 17, 2006 9:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date check for business validation
Replies: 14
Views: 7680

Date Check

kcs, I like your suggestion, but if you stick with DW conversion and an integer you can make your logic simpler, this assumes you will make your order go to the Friday before a weekend, see: StageVar "DW" = OCONV(Date()+30,'DW') StageVar "DWCorrection" = IF DW >5 THEN DW-5 ELSE ...
by parag.s.27
Fri Feb 17, 2006 4:44 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date check for business validation
Replies: 14
Views: 7680

Date Check

You would use the OCONV function and the 'DW' conversion to get the DOW with 1 being Monday. IF OCONV(DATE()+30,'DW') >5 THEN "Weekend" ELSE "Weekday" Hey thanx Arndw, Just one more trouble i wanted to give you. 1st is what value should be for "Weekend" and "Weekd...
by parag.s.27
Fri Feb 17, 2006 4:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date check for business validation
Replies: 14
Views: 7680

Date Validation

There are many ways of doing this and the optimal one depends upon the type and format of your source and where you are doing this comparison. How do you want to add a month? Add 30 days or take the current date and change the month part. If it does fall on a weekend, do you want to take the Friday...
by parag.s.27
Fri Feb 17, 2006 3:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date check for business validation
Replies: 14
Views: 7680

Date check for business validation

Hello, i am migrating data from SUN ERP to SAP for Purchase Orders . The condition is delivery date should be, Current system date + 1 month . But the problem is after adding 1 month, the resulting date should not have a day falling on Saturday or Sunday. Is there any function or routine for this