View previous topic :: View next topic
|
Author |
Message |
sathish1760
New User
Joined: 02 May 2008 Posts: 42 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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 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: 459 Location: Belgium
|
|
|
|
is DSNZ a valid SSID ??? maybe not |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Hi PeD,
DSNZ is a valid SSID. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 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 |
|
|
|