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 edit with rc = -3

Status
Not open for further replies.

ivviva

Technical User
Aug 20, 2003
12
0
0
IT
I nedd a rexx that for every member of a pds execute a macro, but when it's executed this step

address ISPEXEC "EDIT DATASET('"dsn"("mem")')" "MACRO("exec")"


the return code is -3. Why?
the dsn is fb 80, the macro saved in the same library of rexx.
thanks ivana
 
A return code of -3 almost always means that ADDRESS is set incorrectly. For instance:
Code:
address TSO
"DISPLAY PANEL(....)"
or
Code:
address ISPEXEC
"ALLOC FI(...."

Each of these will trip with a RC=-3.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Look here:
|
V
ISPEXEC "EDIT DATASET('"dsn"("mem")')" "MACRO("exec")"

I don;t think that break should be there, as MACRO is a parameter of the EDIT command.

Might want to try:

ISPEXEC "EDIT DATASET('"dsn"("mem")') MACRO("exec")"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top