IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

want to convert TOTAL_COST fromDSN_STATEMNT_TABLE in Dollars


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ramki Balakrishnan

New User


Joined: 22 Aug 2011
Posts: 5
Location: India

PostPosted: Mon Feb 27, 2012 3:30 pm
Reply with quote

Hi All,

I am tuning a join query.

I am comparing the efficiency of old query and new query(after performance tuning). While searching regarding this, I came to know about TOTAL_COST from DSN_STATEMNT_TABLE.

Is there anyway to convert TOTAL_COST in terms of Dollars. Because I need to show the difference in Dollars.

Thanks,
Ramki B
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Mon Feb 27, 2012 3:41 pm
Reply with quote

Ramki,

difficult to get into the question, could you please provide with in/out sample data.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon Feb 27, 2012 3:55 pm
Reply with quote

From - publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z9.doc.perf%2Fsrc%2Ftpc%2Fdb2z_dsnstatemnttable.htm

The overall estimated cost of the statement. If an accelerator is used the benefit is reflected in this value. This cost should be used only for reference purposes.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Feb 27, 2012 4:00 pm
Reply with quote

the TOTAL COST of a query is usually expressed in darseks
You will need to find a currency converter with the proper up to date exchange rates icon_cool.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 29, 2012 7:35 am
Reply with quote

Hello,

There is no generic "convert to $" that i am aware of. Largely due to the fact the so many organizations have different "costng" rules (which IMHO are mostly worthless).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Convert HEX to Numeric DB2 3
Search our Forums:

Back to Top