|
|
| Author |
Message |
sathish1760
New User
Joined: 02 May 2008 Posts: 13 Location: chennai
|
|
|
|
Hi,
I want to use a DB2 table in a rexx program. For DB2-REXX connection I am using the below code.
/* Rexx */
'SUBCOM DSNREXX'
S_RC = RXSUBCOM('ADD','DSNREXX','DSNREXX')
ADDRESS DSNREXX "CONNECT" DSNZ
EXIT
For this I am getting RC(-1) in the fourth line..help me regarding this error.
Thanks in advance. |
|
| Back to top |
|
 |
References
|
Posted: Tue Jul 08, 2008 5:32 pm Post subject: Re: about DB2-REXX error |
 |
|
|
 |
Moved: Tue Jul 08, 2008 5:35 pm by superk From CLIST & REXX to DB2 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1867 Location: Israel
|
|
|
|
Are you sure your REXX modules for DB2 were installed (hint: Ask your DBA)?
O. |
|
| Back to top |
|
 |
PeD
Active User
Joined: 26 Nov 2005 Posts: 268 Location: Belgium
|
|
|
|
| is DSNZ a valid SSID ??? maybe not |
|
| Back to top |
|
 |
sathish1760
New User
Joined: 02 May 2008 Posts: 13 Location: chennai
|
|
|
|
Hi PeD,
DSNZ is a valid SSID. |
|
| Back to top |
|
 |
PeD
Active User
Joined: 26 Nov 2005 Posts: 268 Location: Belgium
|
|
|
|
Are the lines you show the whole code?
I explain : if you code somewhere before DSNZ = 'DDDD'
then you pass the command CONNECT, the result will be wrong. |
|
| Back to top |
|
 |
|
|