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
 

 

Use of select statement in dynamic SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
vivbalboa

New User


Joined: 27 Feb 2009
Posts: 2
Location: Bangalore

PostPosted: Tue Mar 03, 2009 7:33 pm    Post subject: Use of select statement in dynamic SQL
Reply with quote

Hi,
I am trying to display a panel retrieving information from a table.i used the select statement with cursor but its not working.Does anyone know the syntax how to use s select ,how to prepare it.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 03, 2009 7:52 pm    Post subject:
Reply with quote

Quote:
It's not working

What an informative statement that was. Obviously it isn't working otherwise you wouldn't be posting here ...... would you ?

How about something that we can work with, like your code and the error messages it produces.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1228
Location: Israel

PostPosted: Tue Mar 03, 2009 7:55 pm    Post subject: Reply to: Use of select statement in dynamic SQL
Reply with quote

Before using DB2 in your rexx program, you must load the DSNREXX environment.
Have you done that ?
Code:
Address TSO "SUBCOM DSNREXX"
If RC <> 0 Then Do
   Signal On Syntax Name RXSubCom_Failed
   RC = RXSUBCOM('ADD','DSNREXX','DSNREXX')
   Signal Off Syntax
End
Address DSNREXX "CONNECT DB2T" /* for example */
.
.
.
RXSubCom_Failed:
   Say 'Problem loading DSNREXX'
Exit
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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