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: 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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
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


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