NXNX -- Display lines BEFORE and/or AFTER currently displayed lines and/or show labels

Macro name. NXNX Edit macro NXNX
users. All EDIT users Author: David McRitchie
type. Edit Macro resides in SYS1.TSOCLIST for use on TSO
Edit Macro resides in d:\spfmacro  for use with SPF/PC
NXNX Display lines BEFORE and/or AFTER and/or labels
Related LABNX

Sometimes a rather large text list has particular points of interest, perhaps around page changes as will be shown in the example.  The NXNX edit macro can list a specified number of lines BEFORE and/or AFTER currently displayed lines.  The NXNX edit macro also has the ability to display/undisplay labelled lines.  The NXNX edit macro also has the ability to FLIP what is X and what is NX.

--------------------------------------------------------------------------------

ISREDIT  NXNX    [lptr-range] [BEFORE|AFTER] [LABEL|XLABEL]

--------------------------------------------------------------------------------

     lptr-range   A pair of line pointers can be used to restrict the lines
                  under consideration.  The line pointers must be a labels. 
                  Specifying one line pointer is invalid.

     AFTER,       Will display the line immediately after NX lines within range.
     AFTER(1),    is the default if NXNX has no parameters.
     AFTER(nn),     Will  display  nn  lines  immediately  after NX lines within
                  range.
     BEFORE,      Will display the  line  immediately  before  NX  lines  within
                  range.
     BEFORE(nn),  Will  display  nn  lines  immediately  before  NX lines within
                  range.
     LABEL,       Will display all labelled lines within range.
     CHG,         Will make CHANGE lines visible within range.
     ERR,         Will make ERR lines visible within range.
     SPECIAL,     Will make SPECIAL lines visible within range.
     FLIP,        Will change the X/NX status of all lines within  range.    TSO
                  users can now  make use of the FLIP primary editor command
                  instead of using NXNX.  FLIP is available for SPF/PC users as  a
                  separate macro in IS03.SPF2.MACROS.
     XLABEL,      Will undisplay all labelled lines within range.
                  The  LABNX edit macro can be used to label all NX lines within
                  a range. The NXNX edit macro has the ability to redisplay
                  label using the LABEL option.

Examples:

    NXNX  .FIRST .ZLAST AFTER(1)     /*DEFAULTS*/
    NXNX  .A .B BEFORE(N)
    NXNX  .A .B AFTER(N)
    NXNX  .A .B BEFORE(N) AFTER(X)
    NXNX  .A .B LABEL             /* NEITHER BEFORE/AFTER WILL DEFAULT
    NXNX  .A .B CHG               /* NEITHER BEFORE/AFTER WILL DEFAULT
    NXNX  .A .B ERR               /* NEITHER BEFORE/AFTER WILL DEFAULT
    NXNX  .A .B SPECIAL           /* NEITHER BEFORE/AFTER WILL DEFAULT
    NXNX  .A .B XLABEL            /* NEITHER BEFORE/AFTER WILL DEFAULT

+---------------------------------------------------------------------+
| EDIT --- IS03.SHARE.TEXT(EDITXXXX) - 01.00 ------- COLUMNS 001 120  |
| COMMAND ===> BEFORE(2) AFTER LABEL           SCROLL ===> CSR  |
| ****** ********************** TOP OF DATA ************************* |
| -  -  -  -  -  -  -  -  -  -  -  -     LINE(S) NOT DISPLAYED   -  - |
| 00005 .PA                                                           |
| -  -  -  -  -  -  -  -  -  -  -  -   8 LINE(S) NOT DISPLAYED   -  - |
| 00013 .HR                                                           |
| -  -    -  -  -  -  -  -  -  -  -      LINE(S) NOT DISPLAYED   -  - |
| ****** ****************** BOTTOM OF DATA ************************** |
+---------------------------------------------------------------------+
After issuing  BEFORE(2)  AFTER  LABEL  the panel will then look like:
+---------------------------------------------------------------------+
| EDIT --- IS03.SHARE.TEXT(EDITXXXX) - 01.00 ------- COLUMNS 001 120  |
| COMMAND ===>                                 SCROLL ===> CSR  |
| ****** ********************** TOP OF DATA ************************* |
| -  -  -  -  -  -  -  -  -  -  -  -     LINE(S) NOT DISPLAYED   -  - |
| 00003 2 lines before .PA                                            |
| 00004 1 line  before .PA                                            |
| 00005 .PA                                                           |
| 00006 1 line  after  .PA                                            |
| -  -  -  -  -  -  -  -  -  -  -  -   2 LINE(S) NOT DISPLAYED   -  - |
| .B    (This line now displayed because it is labelled)              |
| -  -  -  -  -  -  -  -  -  -  -  -   5 LINE(S) NOT DISPLAYED   -  - |
| 00015 2 lines before .HR                                            |
| 00016 1 line  before .HR                                            |
| 00017 .HR                                                           |
| 00018 1 line  after  .HR                                            |
| -  -    -  -  -  -  -  -  -  -  -      LINE(S) NOT DISPLAYED   -  - |
| ****** ****************** BOTTOM OF DATA ************************** |
+---------------------------------------------------------------------+


Comments and Related Information

You are visitor  ctr since count started June 2, 1997.

Please send your comments concerning my pages or materials to:  David using send email comments

Disclaimer and site usage:  Material at The REXX Macros Toolbox is available without warranty of any kind.  Redistribution of source, coding and documentation other than from this site is prohibited.

Copyright © 1995 - 2006, F. David McRitchie, All Rights Reserved