Hi,
Just to add to what Hiral has said,
You need to use the DateSinceFromDate function for both the values i.e Date1 and Date2, get the difference between them and then divide by 30.
Search found 111 matches
- Sat Mar 28, 2009 10:50 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to retrieve months between two dates of different years
- Replies: 7
- Views: 2519
- Sat Mar 28, 2009 9:33 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Splitting the file
- Replies: 3
- Views: 1582
Re: Splitting the file
Hi, The logic to identify two different invoices is not clear. I hope there is a specific naming convention for the output files. Anyway, once you identify records for invoices, you can split them into sub files as follows: In first job, you can process all the records and in the output file, you ca...
- Sat Mar 28, 2009 9:21 am
- Forum: General
- Topic: File validation method
- Replies: 6
- Views: 6221
Re: File validation method
Hi Have you got this issue resolved ? I understood that you have lot of XML input formats to validate and You dont want to create a DS job to validate each. You can think of a parallel routine to validate XML. (you can pass the actual XML, validation schema as inputs to it). based on the return code...
- Thu Mar 26, 2009 1:10 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: XML Format output
- Replies: 7
- Views: 2123
- Thu Mar 26, 2009 12:36 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Aggregator performance
- Replies: 9
- Views: 3730
Hi, You can try the following: 1) remove the aggregator and see if you can fetch the SUM value from the DB itself. 2) remove 2 transformerrs and develop the job using a single transformer. 3) i dont know your lookup logic, but see if there is any possibility of combining the 3 look ups into one stag...
- Wed Mar 25, 2009 11:01 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: job validation not using message handler
- Replies: 1
- Views: 1092
Re: job validation not using message handler
It is not possible
- Wed Mar 25, 2009 10:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Setting column value as Parameter
- Replies: 4
- Views: 2907
Re: Setting column value as Parameter
Hi,
You cannot change the value or assign the job parameter when the job is executing. That is why DSSetParam wont work in the transformer.
You have to fetch the value from the file and then pass it to the DS job as paramter.
You cannot change the value or assign the job parameter when the job is executing. That is why DSSetParam wont work in the transformer.
You have to fetch the value from the file and then pass it to the DS job as paramter.
- Wed Mar 25, 2009 10:07 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to wait for and process multiple and changing name file
- Replies: 7
- Views: 5700
Re: How to wait for and process multiple and changing name f
Hi, I have 2 questions and hope that some of you has already met this kind of problem 1. How can a sequencer job of datastage wait for a file that always change his name. For example I receive sequential files from a system that give me files named with the creation date and an id, like this: filen...
- Wed Mar 25, 2009 7:43 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: batching the records
- Replies: 7
- Views: 2298
Re: batching the records
Hi All, We are in process of building a DataStage job which would call a ALSB web service to update the salesforce instance. Potentially Salesforce.com would accept 200 records in a single request. Is this something that can easily be accomplished using DataStage? For instance, if the process extra...
- Wed Mar 25, 2009 6:24 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Multiple files based on number
- Replies: 9
- Views: 4494
Hi thanks for your response. Yes the input file might have any number of records but i need to produce a file for every 50 records.I have never created custom stages before. Is there a way other than creating custom stages. Thanks Hi, Once you have the unix script for the purpose, implementing is n...
- Wed Mar 25, 2009 6:13 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Multiple files based on number
- Replies: 9
- Views: 4494
Re: Multiple files based on number
Hi,
If predicting the number of branches you might need is tough, you can try this:
Create a Wrapped stage (Custom stage)
You can call a Unix script that will partition the data and write
to multiple files.
This is just an idea.
I will also try this for learning purpose and post the result.
If predicting the number of branches you might need is tough, you can try this:
Create a Wrapped stage (Custom stage)
You can call a Unix script that will partition the data and write
to multiple files.
This is just an idea.
I will also try this for learning purpose and post the result.
- Wed Mar 25, 2009 5:16 am
- Forum: General
- Topic: Combine Records
- Replies: 6
- Views: 2508
Re: Combine Records
Hi, In this case, your target will have 300+ column names. I can see a way using lookup. Lets say your source file has all distinct ids. Your lookup will be the different lookup file sets created for each field value like name etc. But the might jobs look ugly with so many links & stages. :( you...
- Wed Mar 25, 2009 3:21 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sequence get stopped automtically
- Replies: 5
- Views: 2393
Re: Sequence get stopped automtically
Hi,
One more thing you might want to check is if there are any routine activity stages that return value <> 0.
In sequences, you have the option in job properties whether to consider the non zero return values as error.
am guessing if there is a similar issue in your job.
One more thing you might want to check is if there are any routine activity stages that return value <> 0.
In sequences, you have the option in job properties whether to consider the non zero return values as error.
am guessing if there is a similar issue in your job.
- Wed Mar 25, 2009 3:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Handling data truncation errors.
- Replies: 8
- Views: 3187
Re: Handling data truncation errors.
Hi,ag_ram wrote:Hi,
Sources are predominantly DB Stages - Oracle and DB2. Targets could be files and/or DB Stages (Oracle and DB2).
Actually am thinking if we can capture the records with length issue using a reject link for the target stages.
can you try that and let me know.
- Wed Mar 25, 2009 3:00 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extracting the Data from XML File
- Replies: 17
- Views: 10286
Re: Extracting the Data from XML File
Hi,balu536 wrote:I have 0 warnings in my director log
can you give more details about the column derivation method you are using and what are the keys you have specified?