Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1244
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 WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us