Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISPEXEC RC -3????

Status
Not open for further replies.

4liy4

Programmer
May 1, 2011
2
CH
Hi @ all!

I hope you can help me, i am stuck since 2 days on this problem.

DO I=1 TO DSNAME.0
QOUTE = DSNAME.I
PARSE VAR QOUTE NEWVAR BLANKIE

so far i could assure (trace) that everything went ok.

but then i try this line

ADDRESS ISPEXEC "DSINFO DATASET('"NEWVAR"')"

and i get with trace
"DSINFO DATASET('C0.I000.000.S9.TS.xxxx.xxxx.xxxx')"

so filling in newvar works...
but then he can't get the information and gives me rc(-3).. Why?

I've tried also

"ISPEXEC DSINFO DATASET('"NEWVAR"')

but same result code

Can you please help me?

 
Not exactly a REXX problem, but anyway ...

Whenever I see a RC(-3) for an ISPF Service call, I immediately get suspicious that ISPF is not available. Is it? You can use a PARSE SOURCE SRC command at the top, and see if within the SRC variable is the keyword ISPF. If should look something like this:

TSO COMMAND execname ddname library ? TSO ISPF ?

If, instead of ISPF you see TSO or TSO/E then you know that ISPF is not active in that address space.
 
Actually, the RC (-3) usualy means that the Address environment is not available. If, in your, case, you find I'm right and ISPF isn't active, then you need to address these issues:

1. Before, you can use ISPF, you must have TSO/E available.
2. Once TSO/E is available, you have to start ISPF.
3. ISPF requires all of its required libraries to be available, such as:

ISPPROF, ISPPLIB, ISPMLIB, ISPTLIB, etc.

so all of these have to be defined.
 
Thank you for your answers! The ISPF wasn't available, I solved the problem with using of DSLIST.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top