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

cobol accessing db2 without SQL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DST

New User


Joined: 31 May 2007
Posts: 38
Location: America

PostPosted: Fri Mar 30, 2012 5:52 am
Reply with quote

hi,

I think embedded sql is the only way to access db2 from cobol, but I just want to confirm with you guys.

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Mar 30, 2012 7:36 am
Reply with quote

by imbedded, you mean Static SQL (explained here)
as apposed to ?
dynamic SQL (explained here)
both of which refer to DB2 Application Programming and SQL Guide (here)
and look at Chapter 24. Coding dynamic SQL in application programs.

by the way, the answer without the 'but/or actually',
is no, you are misinformed.

as an answer to your topic title,
even with dynamic, you have imbedded SQL
in order to ship the 'dynamic stuff' to db2.

if would be a shame to code in all the CALLs to DSNHA/H/S/L/RLI
just to avoid a pre-comp and a bind
because of nothing else,
your dba's could track the 'dynamic sql programs' via the sysibm tables
and not thru the program source code.
but, i have a hunch your question is not that technical.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top