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
 

 

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: 6967
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Accessing first bit of PD value rajatbagga DFSORT/ICETOOL 11 Wed May 03, 2017 6:03 am
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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