DB2 table access in REXX

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
Kamakshya
Member
Posts: 1
Joined: Tue Dec 16, 2014 11:09 am

DB2 table access in REXX

Post by Kamakshya » Tue Dec 16, 2014 11:17 am

Hi,
I am trying to fetch from a tabl, but getting below error

"COMMAND EXECSQL NOT FOUND"

My simple requirement is to fetch a row from DB2 table.

Below statement givving error
"EXECSQL DECLARE C1 CURSOR FOR S1"
thanks n reg
Kamakshya

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Dec 18, 2014 8:09 pm

since you did not bother to show your REXX code,
have to assume that you did not bother to read this
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others