View previous topic :: View next topic |
Author |
Message |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Fri Jul 31, 2009 8:32 am Post subject: dynamic select sql in a cobol application program |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Jul 31, 2009 11:38 am Post subject: |
|
|
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 |
|
 |
enge Beginner
Joined: 12 Oct 2004 Posts: 78 Topics: 39
|
Posted: Mon Aug 03, 2009 2:15 am Post subject: |
|
|
thank you very much.(i feel a little lazy) |
|
Back to top |
|
 |
|
|