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

Difference bw dynamic sql and static sql


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sridevi_taurus

New User


Joined: 25 Jun 2006
Posts: 5
Location: hyderabad

PostPosted: Mon Jun 26, 2006 10:37 pm
Reply with quote

Hi,
Can any one tell me whats the difference between dynamic sql and static sql. If any body could help me out that would be gr8.
Thanks in advance.
Regards,
Sridevi
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Jun 28, 2006 8:04 am
Reply with quote

We are listening from our childhood that static means compile time and dynamic means Run time. Same is applied here too.
STATIC SQL statements are known at compile time, other hand DYNAMIC at Runtime.

STATIC SQL is hardcoded into the program, where you know what attributes are going to be used every time.
but in case of Dynamic SQL query may get mofified at the run time based on the values.
Back to top
View user's profile Send private message
sridevi_taurus

New User


Joined: 25 Jun 2006
Posts: 5
Location: hyderabad

PostPosted: Wed Jun 28, 2006 8:43 pm
Reply with quote

hi,
So is it that SPUFI and QMF are dynamic and EXEC SQL- END EXEC statements embedded in the program are static? If so thanks for your response.
Regards
Sridevi.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Jun 29, 2006 2:43 am
Reply with quote

Now you've got it.

Yeah, SPUFI and QMF are a kind of dynamic SQL statements.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Jun 29, 2006 3:21 am
Reply with quote

Hi Sridevi...

You may like to go thru this link for a complete reference on this...
Back to top
View user's profile Send private message
sridevi_taurus

New User


Joined: 25 Jun 2006
Posts: 5
Location: hyderabad

PostPosted: Sun Jul 16, 2006 1:45 pm
Reply with quote

Hi Priyesh,
icon_smile.gif Thanks! I have gone through the stuff.Its really good. Actually I was busy with my MCA sem exams, so could not respond immediately.
Neways, thanks.
Regards,
Sridevi
Back to top
View user's profile Send private message
ajeet799
Warnings : 1

New User


Joined: 16 Jul 2006
Posts: 1
Location: India

PostPosted: Sun Jul 16, 2006 5:22 pm
Reply with quote

statics is fast than dyanmic.

dyanmic is more flexible than static.

in statics after execution of program cursor never comes to initial postion.

but in dynamic cursor comes to the initial positon.

static is embedded .dynamic is non-embedded



i hope this is sufficient information 4 u..

ok by by.......................... icon_smile.gif
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Timestamp difference and its average ... DB2 11
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top