MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What is DSNREXX?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
pradeepg
Beginner


Joined: 06 Jan 2003
Posts: 25
Topics: 12
Location: Columbus, OH

PostPosted: Thu Dec 09, 2004 9:24 am    Post subject: What is DSNREXX? Reply with quote

Hello List,

What is DSNREXX and before I code ADDRESS DSNERXX do I need to allocate any datasets which has the DSNREXX loadlib. And in which library I can find the DSNREXX load.

Basically I am trying to execute a REXX which I got from somebody it connects to DB2 and displays catalog information for a given table space.
It is failing when it encounters the DSNREXX command.

Please help me. Thanks in advance.

- Pradeep
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Dec 09, 2004 10:40 am    Post subject: Reply with quote

pradeepg,

DSNREXX is the REXX DB2 interface which allows of execueting sql queries via Rexx. It is available since DB2 Version 5. If you are getting an error running the procedure then you need to check if your shop has installed the interface. Check HLQ.SDSNLOAD library in your system where it normally resides.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pradeepg
Beginner


Joined: 06 Jan 2003
Posts: 25
Topics: 12
Location: Columbus, OH

PostPosted: Thu Dec 09, 2004 11:28 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for the info. I found the loadlib. But still I couldn't connect to DB2.
When it comes to following code it is failing with RC(-3).

ADDRESS DSNREXX "CONNECT SDB20A'.

I couldn't figure out what is the issue here. Any help. Thank you.

- Pradeep
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
pradeepg
Beginner


Joined: 06 Jan 2003
Posts: 25
Topics: 12
Location: Columbus, OH

PostPosted: Thu Dec 09, 2004 4:05 pm    Post subject: Reply with quote

There was typo in my earlier posting.

ADDRESS DSNREXX "CONNECT SDB20A".

SDB20A is our DB2 Sub system name.

Thanks,
Pradeep
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Dec 09, 2004 4:19 pm    Post subject: Reply with quote

pradeepg,

The code should be as follows.

[code:1:47a7fff7dd]
Address TSO "SUBCOM DSNREXX" /* HOST CMD ENV AVAILABLE? */
IF RC THEN /* NO, LET
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group