MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

dynamic select sql in a cobol application program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Fri Jul 31, 2009 8:32 am    Post subject: dynamic select sql in a cobol application program Reply with quote

goodmorning everyone,

is that a way to launch a command ,in a cobol cics application program , which contains a string (that is a select sql code) to query a db2 table?
the top is , retrieve the entirely row of the table.

for example:
working storage.
01 myqry pic x(80) value 'select * from mytable where mycol = 1)
.
.
EXEC SQL INCLUDE SQLCA END-EXEC.
EXEC SQL INCLUDE myrecord END-EXEC.
.
.
.
call ??????? using myqry giving myrecord

thanks in advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jul 31, 2009 11:38 am    Post subject: Reply with quote

enge,

1. Click on "Quick Manuals " on top of this page
2. Scroll down to DB2 section
3. click on "DB2 V8 Application Programming and SQL Guide"
4. Read chapter 6.1

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Mon Aug 03, 2009 2:15 am    Post subject: Reply with quote

thank you very much.(i feel a little lazy)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group