Q
Problem solve Get help with specific problems with your technologies, process and projects.

DSNREXX interface gives 'not connected' message

A 'not connected' message while using the DSNREXX interface may indicate a problem with one of these IBM commands and jobs.

Hi Jim, I'm trying to use DSNREXX interface for DB2 version 7 and my code looks like this:

Address ISPEXEC
sdsnexit = "'DB2.DRH1.DSNEXIT'"
sdsnload = "'DB2.DRH1.DSNLOAD'"
  "LIBDEF ISPLLIB DATASET ID("sdsnexit", "sdsnload")"
   ADDRESS TSO "SUBCOM DSNREXX"
IF RC THEN
  S_RC = RXSUBCOM('ADD','DSNREXX','DSNREXX')
ADDRESS DSNREXX "CONNECT" ssid
IF SQLCODE ?= 0 THEN say 'not connected '
 

With above code, I am getting a "not connected" message. What could be the reason? Is there any other way to use DSNREXX for DB2? Regards, Srinivas

To answer this, we need more information.

What were values in SQLCODE, S_RC and RC? Are you running under TSO? Batch TSO? Other? To answer these follow-up questions, please send an email to editor@techtarget.com.

Jim Keohane, Software Developer/Consultant, Multi-Platforms, Inc.

This was last published in November 2008

Dig Deeper on IBM system z and mainframe systems

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

SearchServerVirtualization

SearchCloudComputing

Close