Edit macro @PRINTNX Edit macro @PRINTNX Author: David McRitchie formatted on 1995/04/01 06:54 for assistance contact: D. McRitchie DMcRitchie@hotmail.com -------------------------------------------------------------------------------- MACRO NAME. @PRINTNX users. PDF EDIT users particularly SCRIPT users type. Edit Macro resides in SYS1.TSOCLIST -------------------------------------------------------------------------------- @PRINTNX Print the NX (displayed) lines -------------------------------------------------------------------------------- related clists -- @VP @PRINT @DIRSTAT related commands -- PRINTOFF, VPSPRINT, PRINTDS related clists that modify display --- NXNX related commands that modify display --- EXCLUDE(X), FIND(F) related information -- TSO HELP OUTDES -------------------------------------------------------------------------------- If you've ever used edit by undisplaying all of the lines (X ALL), and then done lots of finds until you have a neat display and wanted to to print it, well now you can. ===> @PRINTNX SYSTECH same as DEST(P100E) ===> @PRINTNX class(a) print at AHCENTER computer room ===> @PRINTNX dest(DEST) print a remote destination The parameters are the parameters of OUTDES. /* created by F.David McRitchie, 1992/10/09, */ /* */ /* SYSTECH as the only parameter will equate to DEST(P100E) */ /* DOWN8 as the only parameter will equate to ... */ /* CHARS(GT15) PAGEDEF(DOWN8) LINECT(77) CLASS(A) */ /* no parameters -- defaults to CLASS(V) */ /* ECHO -- prints to screen, useful for debugging */ /* */ /* Otherwise all parameters are OUTDES parameters */ /* refer to help information for OUTDES */ /* ===> TSO HELP OUTDES */ /* ===> TSO CLIST OUTDES HELP */ /**************************************************************/ -------------------------------------------------------------------------------- ISREDIT @PRINTNX outdes parameters required -------------------------------------------------------------------------------- Examples @PRINTNX class(a) @PRINTNX dest(pu00l) Notice: AUTOSAVE OFF is invoked Internal Aspects Internal aspects describes how the MACRO functions. This information is particularly useful to someone who may need to design a similarly functional MACRO. It may also provide additional insight to the user. 1. Much of the material has been extracted from @DIRSTAT for the di- rectory statistics. @DIRSTAT was converted to REXX so that this would be possible. (The old @DIRSTAT edit macro is @DIRSTAC). 2. OUTDES parameters from the PARM are added to the allocated SYSUT2 ddname. 3. The lines are read using ISREDIT (line) = line nnn, and placed into a compound variable (Q.). 4. An EXECIO is issued so that output goes out to a printer when pa- rameters have been included, or back to the terminal if @PRINTNX was invoked without any parameters (useful for debugging and to show what could be printed).