Search found 147 matches
- Thu Apr 06, 2006 8:00 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Max of a column from Oracle table
- Replies: 3
- Views: 1080
Max of a column from Oracle table
Hi, My requirement is to get the Max(col1) and use this value to increment by one for each input row and create a load file, subsequently this load file used to load the table. when i use the sql using MAX on a column in ODBC stage it is giving error "Fatal error not a valid Identifier MAx(col1...
- Fri Mar 10, 2006 10:30 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Calculation to get the next quarter based on Input Date
- Replies: 17
- Views: 5970
- Thu Mar 09, 2006 3:22 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Calculation to get the next quarter based on Input Date
- Replies: 17
- Views: 5970
Re: Date Calculation to get the next quarter based on Input
Hello. You should define 4 stage variables as 1stQrt: If (month(indate)+3)>12 then (month(indate)+3)-12 else (month(indate)+3) 2ndQrt: If (1stQrt+3)>12 then (1stQrt+3)-12 else (1stQrt+3) 3rdQrt: If (2ndQrt+3)>12 then (2nd+3)-12 else (2nd+3) 4thQrt: If (3rdQrt+3)>12 then (3rdQrt+3)-12 else (3rdQrt+3)...
- Thu Mar 09, 2006 9:40 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Calculation to get the next quarter based on Input Date
- Replies: 17
- Views: 5970
- Thu Mar 09, 2006 9:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Calculation to get the next quarter based on Input Date
- Replies: 17
- Views: 5970
Date Calculation to get the next quarter based on Input Date
Hi, I have a requirement to calculate next quater month based on the provided month and using the derived quarter month value need to calcuate the next earliest quarter month. For example I have a date 2005-05-20 next 4 quarters based on this dates are 08, 11,02,05 months respectively, Then i need t...
- Wed Feb 22, 2006 3:41 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: 24 months back date from Current date
- Replies: 2
- Views: 1169
24 months back date from Current date
Hi,
Need some information to get the 24 months back date from the current date. I need to use this date for filtering out the records which are older then 24 months.
any help is appreciated!
Thanks
Need some information to get the 24 months back date from the current date. I need to use this date for filtering out the records which are older then 24 months.
any help is appreciated!
Thanks
- Fri Feb 03, 2006 10:50 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DB2 Date to SQL Server Date or TimeStamp
- Replies: 7
- Views: 6080
- Thu Feb 02, 2006 4:21 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DB2 Date to SQL Server Date or TimeStamp
- Replies: 7
- Views: 6080
- Thu Feb 02, 2006 9:36 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DB2 Date to SQL Server Date or TimeStamp
- Replies: 7
- Views: 6080
DB2 Date to SQL Server Date or TimeStamp
I am loading data from DB2 to SQL Server, I defined the SQL Server column as Date type as DATE, but then i move data DB2 Date field to Sql Server Date fields it is aborting. I tried SQL Server column defining TimeStamp it worked with Current TimeStamp. So, my question is what is best SQL server data...
- Fri Jan 20, 2006 3:23 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Getting Row count for all hash files in a category
- Replies: 16
- Views: 5772
Can you post the code please The query given by kim will return all the Hash file names.Loop it and then use SELECT Count(*), '#HashName#' FROM #HashName#; and write it to a Sequential file. My approach at that time was different. any how if you want the code, tell me ur mail id. I will send u the ...
- Thu Jan 19, 2006 5:15 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Getting Row count for all hash files in a category
- Replies: 16
- Views: 5772
- Thu Jan 12, 2006 2:48 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subtract the value from Previous row value
- Replies: 11
- Views: 5416
- Thu Jan 12, 2006 2:28 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subtract the value from Previous row value
- Replies: 11
- Views: 5416
Could you please guide little bit more
I created 2 stage variables and using the below logic, i am missing something !!!
I created 2 stage variables and using the below logic, i am missing something !!!
Code: Select all
StageVariable1 = StgAmt
StageVariable2 = StgMTHID
If If Read.MTH_ID = StgMTHID Then (Read.AMT - StgAMT) Else Read.AMT
- Thu Jan 12, 2006 1:58 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Job status for running
- Replies: 15
- Views: 10042
Indrani, for the first one Try this routine $INCLUDE DSINCLUDE JOBCONTROL.H * ----------------------------------------------------------------------- JobStatus = '' * ----------------------------------------------------------------------- OldJobName = JobName RunHandle = DSAttachJob(OldJobName, DSJ....
- Thu Jan 12, 2006 12:37 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subtract the value from Previous row value
- Replies: 11
- Views: 5416
Subtract the value from Previous row value
Hi, I need some thoughts and logic on the follwoing requirement. I have a set of data by date , week, period and amount each weeks amount is added to next week till the end of the week of a particular month. My requirement is to write the amounts per each week by subtracting the amount from previous...