Hi Jim, I'm trying to use DSNREXX interface for DB2 version 7 and my code looks like this:
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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 email@example.com.
Jim Keohane, Software Developer/Consultant, Multi-Platforms, Inc.
Dig Deeper on IBM system z and mainframe systems
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.