Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

want to convert TOTAL_COST fromDSN_STATEMNT_TABLE in Dollars

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: want to convert TOTAL_COST fromDSN_STATEMNT_TABLE in Dollars
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

Senior Member


Joined: 21 Sep 2010
Posts: 1624
Location: NY,USA

PostPosted: Mon Feb 27, 2012 3:41 pm    Post subject:
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    Post subject:
Reply with quote

From - http://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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Feb 27, 2012 4:00 pm    Post subject: Reply to: want to convert TOTAL_COST fromDSN_STATEMNT_TABLE
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

Site Director


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

PostPosted: Wed Feb 29, 2012 7:35 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am
No new posts help: convert C'00AB' to X'00AB' alan_gu DFSORT/ICETOOL 1 Thu Sep 29, 2016 12:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us