Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
cobol accessing db2 without SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: cobol accessing db2 without SQL
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: 6968
Location: porcelain throne

PostPosted: Fri Mar 30, 2012 7:36 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us