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
 
DRL1SQLX - DRL1005E - REXX variable cannot be set

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

New User


Joined: 09 Jan 2007
Posts: 26
Location: Chennai

PostPosted: Tue Jun 03, 2008 2:21 pm    Post subject: DRL1SQLX - DRL1005E - REXX variable cannot be set
Reply with quote

Hi guys,

I am current facing problems in executing an SQL using DRL1SQLX.

Here is my code:

Code:

DB2SUBS  = "DSND"                               
Drop  Owner1.                                   
   
Owner1. = ' '                                   
                                                 
SQLSTMT = "SELECT DISTINCT(OWNER)             ",
          "FROM SYSIBM.SYSTABSTATS            ",
          "WHERE OWNER LIKE 'DATAB%'           ",
          "FETCH FIRST 10 ROWS ONLY           " 
                                                 
SQLSTMT = Space(SQLSTMT,1)                       
say "SQLSTMT" SQLSTMT                           
SQLSTEM = "Owner1"                               
SQLMAX  = 10             
                     
Call DRL1SQLX "INIT"                                                 

Call DRL1SQLX SQLSTMT                           

Call DRL1SQLX  "TERM"


The error that displays from SQLMSG stem variable is
Code:

DRL1005E The REXX variable Owner1.NAME.0 could not be
set.                                                                         


SQL code returned after DRL1SQLX statement is 0 and the variable "Result" is set by DRL1SQLX to 16.

The above SQL query is working fine when executing normally using Fileaid/DB2.

I have executed a query on a different table in the same REXX code. That is perfectly working fine. I am wondering why this particular query is not working fine. Could anybody help out please?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Jun 03, 2008 2:47 pm    Post subject:
Reply with quote

try:
Code:

Drop  Owner1.                                   
Owner1. = ' '   
Owner1.0 = 0       <<<<<<<<<add this line
Back to top
View user's profile Send private message
satheeshkamal

New User


Joined: 09 Jan 2007
Posts: 26
Location: Chennai

PostPosted: Tue Jun 03, 2008 3:36 pm    Post subject:
Reply with quote

Hi Dick,

Tried your suggestion...But, encountered the same error... icon_sad.gif
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
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
This topic is locked: you cannot edit posts or make replies. how to get Job information from IOF u... rsshanmugam CLIST & REXX 13 Mon Feb 05, 2018 4:22 pm
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am

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