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: 6966
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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