DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
jpockets
Participant



Joined: 14 Mar 2006
Posts: 12

Points: 116

Post Posted: Mon Nov 05, 2007 9:17 am Reply with quote    Back to top    

DataStage® Release: 7x
Job Type: Server
OS: Windows
I'm was looking at the help file for a way to find out the quarter from a date, and this is what i found.

[quote]Q outputs the quarter of the year as a number from 1 through 4.[/quote]

So in the transformer i used this logic to get the quarter:

[code]Oconv(Iconv(LP_POLICY_SALES.LedgerDate,"D2-")," DQ")[/code]

Ledger Date is coming in as : "31-AUG-07" that is why i used the iconv.

When using that logic that value i'm getting is: LEDGER_QUARTER = 14488

How can i correct this?
jpockets
Participant



Joined: 14 Mar 2006
Posts: 12

Points: 116

Post Posted: Mon Nov 05, 2007 9:38 am Reply with quote    Back to top    

It was an stuipd mistake, there was a space in the logic it's working now. thanks for anyone who looked at this...
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 51341
Location: Canberra, Australia
Points: 278774

Post Posted: Mon Nov 05, 2007 10:12 pm Reply with quote    Back to top    

Well done for finding it. Now perhaps you could mark the thread as resolved?

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong
currently hiring: Sydney and Melbourne
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours