Nelc
Ray kindly posted a user-defined function that calculates the number of completed months between 2 dates in http://www.tools4datastage.com/forum/to ... C_ID=84773
Stephan
Search found 102 matches
- Mon Aug 11, 2003 12:48 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Calculate number of months between 2 dates
- Replies: 4
- Views: 2099
- Sun Aug 10, 2003 11:21 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Extracting data from String
- Replies: 5
- Views: 2026
Srinivas may the experts correct me, but to me it sounds like a case for a hashed file: - manipulate your string so that each name/value pair appears on a separate line and write the result to a sequential file. In a separate job, read the sequential file and write it to a hashed file with the name ...
- Sun Aug 10, 2003 2:43 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Job Aborting randomly, runs successfully also
- Replies: 6
- Views: 1853
- Fri Aug 08, 2003 11:24 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Abnormal termination of stage (Solved)
- Replies: 14
- Views: 5415
- Thu Aug 07, 2003 12:57 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: common variables
- Replies: 6
- Views: 2019
- Thu Aug 07, 2003 12:49 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Abnormal termination of stage (Solved)
- Replies: 14
- Views: 5415
Ken you assume that the Job / the Server is running out of space 'somewhere'. Are you serious? When you start to learn a programming language, you're usually taught to ensure that you have the resource you want to use, otherwise issue a warning and terminate, if necessary. If a DataStage server can'...
- Thu Aug 07, 2003 3:48 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: To store a value from DB2 table as variable in job
- Replies: 4
- Views: 870
Aphrodite, one possibility is to write the value to a hash file (possibly within a sperate job). The hash then can be read using UtilityHashLookup. Within your controlling job (if you have one) you can read that value and pass it as a parameter to the job that queries the oracle table. I guess, anot...
- Thu Aug 07, 2003 12:23 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Loading Data takes a too long.
- Replies: 2
- Views: 703
Raju I wonder what your query looks like, do you have a subselect to get the max(id) like select contract_no, id from table a where id= (select max(id) from table b where a.contract_id=b.contract_id) which i would expect to be slow, or do you select contract_no, max(id) from table group by contract_...
- Wed Aug 06, 2003 2:04 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Warnings & Rejects
- Replies: 3
- Views: 1569
Hi Laura, I never used sequencers and never heard of the mentioned ?Jobinfo? types. But to me it sounds like you could do what you want if your condition would be: DSJ.LOGWARNING>0 And DSJ.LOGWARNING=DSJ.LOGREJECT which means: there have been warnings and all warnings were rejects Hope this helps! S...
- Wed Aug 06, 2003 10:07 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: common variables
- Replies: 6
- Views: 2019
common variables
Can somebody please enlighten me on common variables, especially their visibilty and lifecycle. What I understand, is that they are something like global variables. Where can they be used, in batch jobs and/or routines? Where are they visible? presumably only in those batch jobs / routines that dire...
- Tue Aug 05, 2003 9:35 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Preload file to memory
- Replies: 6
- Views: 2017
- Tue Aug 05, 2003 8:58 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: lookup on numeric fields
- Replies: 6
- Views: 1785
- Tue Aug 05, 2003 8:40 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: lookup on numeric fields
- Replies: 6
- Views: 1785
Kim I tried something similar formatting the numbers to have two decimal places, which dramatically increased the hit ratio. Till now, I only had integers within key columns, so I never became aware that the comparison doesn't seem to be numerical, but character by character, thus '.5' not matching ...
- Tue Aug 05, 2003 7:06 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: key expression in transformer
- Replies: 7
- Views: 2379
- Tue Aug 05, 2003 6:34 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: lookup on numeric fields
- Replies: 6
- Views: 1785
lookup on numeric fields
How is a lookup performed on fields that are declared to be numeric both in stream and reference input? I would have expected that it would be done numerically, but it seems that a record can't be matched, if the lookup has 1.0 instead of 1.00?
Stephan
Stephan