MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

REOPT(ONCE) for a DYNAMIC SQL program, effect on performance

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Rama_Prayaga
Beginner


Joined: 20 May 2003
Posts: 45
Topics: 15

PostPosted: Mon Jul 11, 2005 9:42 am    Post subject: REOPT(ONCE) for a DYNAMIC SQL program, effect on performance Reply with quote

Hello,

I need to improve the peroformance of a DYNAMIC sql application prgram.I have checked the Bind options the program which are below.


DSNT255I -DAF2 DSNTBCM2 BIND OPTIONS FOR
PACKAGE = CHSKA000DBAF.TN.YTNW140.(OTXO00001455A27BF5)
SQLERROR NOPACKAGE
CURRENTDATA NO
DEGREE 1
DYNAMICRULES BIND
DEFER
NOREOPT VARS
KEEPDYNAMIC NO
IMMEDWRITE NO
DBPROTOCOL DRDA
OPTHINT
ENCODING EBCDIC(00500)
PATH


I went thru the follwing link.

http://publib.boulder.ibm.com/infocenter/dzichelp/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqmstr407.htm

I have couple questions after going thru the link.

After reading the above link I had a feeling the REOPT(ONCE) would improve the performance of the SQL.Since, I have normally same set of columns which I update.Am I right in thinking so?

2) Though I have normally same set of columns , But i have different data to these fields for update.Then will the REOPT(ONCE) works fine as static sql.

3)Do I have to make any special changes in the program after giving this above option.

4)If I have to change my bind otpion then do I have change the option "NOREPT VARS" with once option,In the above statement.

Kindly,Please let me know

Reagdrs,
Rama Krishna Prayaga
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Jul 12, 2005 6:06 am    Post subject: Reply with quote

Rama_Prayaga,

Did you get a chance to look into this topic

http://mvsforums.com/helpboards/viewtopic.php?t=3078&highlight=reopt

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rama_Prayaga
Beginner


Joined: 20 May 2003
Posts: 45
Topics: 15

PostPosted: Wed Jul 20, 2005 4:11 am    Post subject: Reply with quote

Hi Koulusu,

Thank you,

Regards,
Rama Krishna
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group