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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

edit macro in batch?

Status
Not open for further replies.

dav1mo

Technical User
Mar 27, 2007
3
US
I have a rexx exec (actually, a QMF proc) that runs an edit macro against a dataset. When I run this exec online it works perfectly fine every time. When I run it in batch, I get an rc=-3. Any ideas would be greatly appreciated.
The macro is pretty simple, the dsn is a report and the header lines are repeated over and over throughout the report. The macro does X ALL on the header lines, then finds first occurance of the header, deletes all X, and, finally, ends, to save the dsn.
 
Two thoughts:

1. This process sounds better suited to a SORT routine.

2. When you say "edit macro", I have to presume that you mean an ISPF Edit Macro (i.e. uses the ISREDIT services). In order to use ISPF services in batch, you have to add ISPF to batch. You have to start ISPF with the ISPSTART command and you ned to include all of the required ISPF libraries:

 

Kevinpink has it. RC=-3 always means "you've got an 'address' problem".

Did I mention that this is always true?

Frank Clarke
--America's source for adverse opinions since 1943.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top