IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

can anybody help me to resolve this REXX RC(-3) error?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sukumar.pm

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Thu Oct 09, 2008 7:08 pm
Reply with quote

Hi Ped,
here is the output with TRACE I:

Code:
     3 *-* SSID = 'DBT1'                                                       
       >L>   "DBT1"                                                           
     4 *-* ADDRESS  ISPEXEC "LIBDEF ISPLLIB DATASET ID('DSN.DBT1.DSNLOAD')"   
       >L>   "LIBDEF ISPLLIB DATASET ID('DSN.DBT1.DSNLOAD')"                   
      5 *-* SAY 'RC_0'RC                                                       
        >L>   "RC_0"                                                           
        >V>   "0"                                                               
        >O>   "RC_00"                                                           
 RC_00                                                                         
      6 *-* ADDRESS  ISPEXEC "LIBDEF ISPLLIB DATASET ID('DSN.DBT1.DSNEXIT')"   
        >L>   "LIBDEF ISPLLIB DATASET ID('DSN.DBT1.DSNEXIT')"                   
      7 *-* SAY 'RC_0'RC                                                       
        >L>   "RC_0"                                                           
        >V>   "0"                                                               
        >O>   "RC_00"                                                           
 RC_00                                                                         
      8 *-* 'SUBCOM DSNREXX'                                                   
        >L>   "SUBCOM DSNREXX"                                                 
      9 *-* IF RC:=0                                                           
        >V>   "0"                                                               
        >L>   "0"                                                               
        >O>   "0"                                                               
     14 *-* SAY 'RC_1'RC                                                       
        >L>   "RC_1"                                                           
        >V>   "0"                                                               
        >O>   "RC_10"                                                           
 RC_10                                                                         
    15 *-* ADDRESS DSNREXX                               
    16 *-* SAY 'DSNREXX' RC                             
       >L>   "DSNREXX"                                   
       >V>   "0"                                         
       >O>   "DSNREXX 0"                                 
DSNREXX 0                                               
    17 *-* SAY                                           
                                                         
    18 *-* ADDRESS DSNREXX 'CONNECT' SSID               
       >L>   "CONNECT"                                   
       >V>   "DBT1"                                     
       >O>   "CONNECT DBT1"                             
       +++ RC(-3) +++                                   
    19 *-* SAY 'CONNECT' RC                             
       >L>   "CONNECT"                                   
       >V>   "-3"                                       
       >O>   "CONNECT -3"                               
CONNECT -3                                               
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Thu Oct 09, 2008 8:03 pm
Reply with quote

From your latest post it appears that you have not acted upon the sound advice given by Pedro.

Because you are doing TWO LIBDEF's the second LIBDEF will replace the first LIBDEF, i.e. REMOVE it from the library definitions order.

OK, so we have a couple of options here - use the STKADD parameter or maybe something else like this .......................

Code:

CCAT = "'DSN.DBT1.DSNLOAD' 'DSN.DBT1.DSNEXIT'"
"ISPEXEC LIBDEF ISPLLIB DATASET ID("CCAT") STACK"


Please pay attention to the help that others give you, even if it does involve reading a manual yourself.
Back to top
View user's profile Send private message
sukumar.pm

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Thu Oct 09, 2008 9:29 pm
Reply with quote

Hi expat,

FYI: i just wanted show the TRACE I output to PeD.that y i did not removed the second ispllib statement.
i studied the ISPF Services Guide manual. i have not got better idea yet.
Code:

 /*REXX*/                                                           
 TRACE I                                                             
    SSID = 'DBT1'                                                   
 CCAT = "'DSN.DBT1.DSNLOAD' 'DSN.DBT1.DSNEXIT'"                     
 "ISPEXEC LIBDEF ISPLLIB DATASET ID("CCAT") STACK"                   
  SAY 'RC= ' RC                                                     
 ADDRESS TSO 'SUBCOM DSNREXX'                                       
          IF RC\=0 THEN DO                                           
            SAY 'RC_00'RC                                           
    S_RC = RXSUBCOM('ADD','DSNREXX','DSNREXX')                       
 /* S_RC = RXSUBCOM('ADD','DSNREXX','DSNREXX','DSN.DBT1.DSNLOAD')*/ 
          END                                                       
            SAY 'RC_1'RC                                             
            ADDRESS DSNREXX 'CONNECT' SSID                           
            SAY 'CONNECT' RC                                         


i got RC=-3 for the last RC statement.

i have already tried with concatination in different way..that is also successful.
but my connect statement got RC=-3.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Thu Oct 09, 2008 9:49 pm
Reply with quote

Quote:
i have already tried with concatination in different way..that is also successful.

Not very useful diagnostic information.

Please read the ISPF Services Guide manual. And read how to specify a list of datasets. I do not believe your example follows the syntax guidelines described in the manual.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Thu Oct 09, 2008 9:54 pm
Reply with quote

Code:

    18 *-* ADDRESS DSNREXX 'CONNECT' SSID               
       >L>   "CONNECT"                                   
       >V>   "DBT1"                                     
       >O>   "CONNECT DBT1"                     


I do no think this is related to your problem, but earlier posts asked about the value of SSID. From the trace, we can see that the value of SSID is still DBT1.

So, continue using trace as needed to debug your program.
Back to top
View user's profile Send private message
sukumar.pm

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Fri Oct 10, 2008 12:24 am
Reply with quote

Hi,
Quote:
i have already tried with concatination in different way..that is also successful.

what i tried to say is
i used
Code:
ADDRESS ISPEXEC "LIBDEF ISPLLIB EXCLDATA ID",
                             "('DSN.DBT1.DSNLOAD' 'DSN.DBT1.DSNEXIT')",
                             "UNCOND"

I got RC=0 for this statement,but i got RC=-3 in the connect statement.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Fri Oct 10, 2008 12:40 am
Reply with quote

As we successfully performed that sequence of DSNREXX cards, it becomes difficult to solve the problem form here (I do not know the distance between Chennai and Lonzee ).

Could it be possible to pass this problem to your DB2 support team?

If another user processes exactly the same code, does it work? Is it an authority problem?

More, I can't do. Sorry Sukumar.

Regards
Pierre
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Fri Oct 10, 2008 2:20 am
Reply with quote

Code:
ADDRESS ISPEXEC "LIBDEF ISPLLIB EXCLDATA ID",
                             "('DSN.DBT1.DSNLOAD' 'DSN.DBT1.DSNEXIT')",
                             "UNCOND"

Did you try using DATASET instead of EXCLDATA?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Fri Oct 10, 2008 2:26 am
Reply with quote

Something different...

Try issuing these commands BEFORE you get into ISPF.

Code:
ALLOC F(mydb2) DSN('DSN.DBT1.DSNLOAD','DSN.DBT1.DSNEXIT') SHR  REU
 
TSOLIB ACT DD(mydb2)


Then try rexx program (with libdef removed).
Back to top
View user's profile Send private message
sukumar.pm

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Fri Oct 10, 2008 11:14 am
Reply with quote

Thanks all.

i am able to run same rexx code(with LIBDEF removed) using this following JCL.

Code:
//Q02493RX JOB 9Z-868-4000-PRO-A0,' REXX TEST',   
//          CLASS=X,MSGCLASS=2,NOTIFY=Q02493     
//* $ACFJ219 ACF2 ACTIVE TCN0                     
//STEP1    EXEC PGM=IKJEFT01,PARM='CDB2'         
//STEPLIB  DD DISP=SHR,DSN=DSN.DBT1.DSNLOAD       
//         DD DISP=SHR,DSN=DSN.DBT1.DSNEXIT       
//SYSPRINT DD SYSOUT=*                           
//SYSTSIN  DD DUMMY                               
//SYSTSPRT DD SYSOUT=*                           
//SYSEXEC  DD DSN=Q02493.REXX.EXEC,DISP=SHR       


but i am not able add the PDS in the above steplib in run time i.e using LIBDEF.

ok PeD.i will speak with our DB2 support team,after trying your last two suggestions.
Back to top
View user's profile Send private message
sukumar.pm

New User


Joined: 20 Dec 2007
Posts: 27
Location: chennai

PostPosted: Fri Oct 24, 2008 11:03 am
Reply with quote

Hi all,

Atlast,i am able to run my program.i included my library in Q02493.PROLOGUE.CLIST dataset permanently.

Thanks all for the useful suggestions.



Sukumar.
Back to top
View user's profile Send private message
muralithirumalaisamy
Warnings : 1

New User


Joined: 13 Jun 2005
Posts: 12
Location: chennai

PostPosted: Fri Oct 31, 2008 8:54 pm
Reply with quote

Hi,

If u didnt solve this problem yet try as below, it will work

ADDRESS DSNREXX 'CONNECT' ssid
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Sat Nov 01, 2008 3:54 pm
Reply with quote

muralithirumalaisamy wrote:
Hi,
If u didnt solve this problem yet try as below, it will work
ADDRESS DSNREXX 'CONNECT' ssid

Please read the thread properly before responding.

It is 7 days since the OP has said that the problem has been resolved and you then suggest something that was shown in the very first post in this thread.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
Search our Forums:

Back to Top