Tim Joyce wrote about using: >Queue "ALL /INVALID" >Queue "SET SHADOW OFF" >Queue "PUT * = INVALID A1" >Queue "QQ"
Notwithstanding the other excellent suggestions (PIPE, using a macro, etc.), I'd note a couple of things: 1) A closing slash on the ALL would avoid possible issues from file format 2) I'd be happier, given programmed execution, to see COMMAND in front of most of those commands and MACRO in front of ALL 3) In macros (which this isn't, yet), I suggest using: 'COMMAND SAVE' 'COMMAND PQUIT' rc whenever it's important to know whether something worked. That lets you produce an error if the SAVE fails for some reason. Also note that QUIT is synonymed to PQUIT, and QQUIT to QUIT, by default; understanding this avoids some confusion once you get rigorous and start using COMMAND. A final note: if you *do* things like this using an XEDIT macro, I advise having the macro named slightly differently from the EXEC. For example, if the example above was called from SENDINV EXEC, the macro might be called $SENDINV, or SENDINV$. This avoids problems if you try to invoke the EXEC from XEDIT ... ...phsiii (pedantic this morning) (yeah, yeah... "THIS morning??!")
