LEFT@ edit macro

Macro name. LEFT@ Edit macro LEFT@
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
LEFT@ LEFT JUSTIFY al lines within C or CC range
Related (REFORMAT, REMBLANK, REMDUPS, SHIFT, SHIFTNX)

LEFT@ provides the ability to LEFT justify all lines (or CC-range) to any character (P'¬') or to a quote.  The use of BOUNDS is not permitted because such use would be ambiguous.  (PLI not character or ^ x'5E' in ASCII, or ¬ xx??xx in EBCDIC.


ISREDIT  EDITOL  [ NB | Q | QQ | string [ col ] ]

CC-range A process range between CC line commands is an acceptable line-range for this macro.  The default is to process all lines.
NBAlign on the first non-blank character (p'¬'  This is the default.
QAlign lines to the first single quote(').
QQAlign lines to the first double quote(").
colAlign lines so that the designated character lines up on column col. to the

Documentation incorporates revisions made to macro 1997/05/31
Examples

           LEFT@
           LEFT@ Q
           LEFT@ QQ 8
Return to The REXX Macros Toolbox 
    TSO Code, alternate TSO Code, SPF/PC Code, alternate SPF/PC Code
Internal Aspects

     1.  Determine if PROCESS C is applicable, use if it is.
     2.  Check for NB, Q or QQ  as the parameter.
     3.  Boundaries must not be used.
     4.  Place NOTELINES above lines which will be realigned
     5.  Realign applicable lines.

Additional Examples

Currently a bit of a problem pasting from NT into SPF/PC, with each most lines being offset by one character until failure at 133 lines. The following interesting looking and meaningless data will serve as an example.  Meaningless because it has nothing to do with me.
SPF/PC(1) EDIT D:\WWW\SUFFIX.TXT------------------------------- COLUMNS ... ...
COMMAND ===>                                                  SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
------ ---------------------- 2 LINE(s) NOT DISPLAYED ----------------------
000003  #reqs: %bytes: domain
000004  -------  ------  ------
000005  1962900: 28.74%: .com (Commercial (mainly USA))
000006  1838770: 26.29%: .net (Network)
000007   955003: 15.22%: [unresolved numerical addresses]
000008    358270:  6.10%: .edu (USA Educational)
000009     185386:  2.91%: .ca (Canada)
000010      142286:  2.72%: .de (Germany)
000011       141129:  2.65%: .jp (Japan)
000012        84017:  1.56%: .au (Australia)
000013          78025:  1.38%: .se (Sweden)
000014            88707:  1.34%: .uk (United Kingdom)
000015              62598:  1.04%: .org (Non-Profit Making Organisations)
000016               69250:  0.95%: .us (United States)
000017                44106:  0.83%: .no (Norway)
000018                 31692:  0.67%: .fr (France)
000019                   34146:  0.59%: .it (Italy)
000020                    30345:  0.50%: .nl (Netherlands)
000021                      31540:  0.46%: .gov (USA Government)
000022                       26559:  0.45%: .br (Brazil)
------ ---------------------- 479 LINE(s) NOT DISPLAYED ----------------------
****** ******************************** BOTTOM OF DATA ************************
First we will enter the standard ===> left@ resulting in realignment of data to column 1.
SPF/PC(1) EDIT D:\WWW\SUFFIX.TXT------------------------------- COLUMNS ... ...
COMMAND ===>                                                  SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
------ ---------------------- 2 LINE(s) NOT DISPLAYED ----------------------
000003 #reqs: %bytes: domain
000004 -------  ------  ------
000005 1962900: 28.74%: .com (Commercial (mainly USA))
000006 1838770: 26.29%: .net (Network)
000007 955003: 15.22%: [unresolved numerical addresses]
000008 358270:  6.10%: .edu (USA Educational)
000009 185386:  2.91%: .ca (Canada)
000010 142286:  2.72%: .de (Germany)
000011 141129:  2.65%: .jp (Japan)
000012 84017:  1.56%: .au (Australia)
000013 78025:  1.38%: .se (Sweden)
------ ---------------------- 42 LINE(s) NOT DISPLAYED ----------------------
000056 1387:  0.03%: .cy (Cyprus)
000057 1085:  0.03%: .lu (Luxembourg)
000058 982:  0.03%: .su (Former USSR)
000059 1702:  0.03%: .cr (Costa Rica)
000060 983:  0.02%: .tw (Taiwan)
000061 1155:  0.02%: .ve (Venezuela)
000062 1321:  0.02%: .hk (Hong Kong)
000063 789:  0.02%: .ee (Estonia)
000064 808:  0.02%: .cn (China)
000065 818:  0.02%: .lv (Latvia)
000066 882:  0.01%: .do (Dominican Republic)
------ ---------------------- 435 LINE(s) NOT DISPLAYED ----------------------
****** ******************************** BOTTOM OF DATA ************************
Taking the same original data we can realign data which has ":" in a line. Lines not having ":" will be unaffected. Since all lines have ":" we could also use previously reformatted data with the same results since no lines would be untouched. If we realigned to a lower column such as 5 data would be lost rather simply realigned.
COMMAND ===> LEFT@ :  8

SPF/PC(1) EDIT D:\WWW\SUFFIX.TXT------------------------------- COLUMNS ... ...
COMMAND ===>                                                  SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
------ ---------------------- 2 LINE(s) NOT DISPLAYED ----------------------
000003   #reqs: %bytes: domain
000004 -------  ------  ------
000005 1962900: 28.74%: .com (Commercial (mainly USA))
000006 1838770: 26.29%: .net (Network)
000007  955003: 15.22%: [unresolved numerical addresses]
000008  358270:  6.10%: .edu (USA Educational)
000009  185386:  2.91%: .ca (Canada)
000010  142286:  2.72%: .de (Germany)
000011  141129:  2.65%: .jp (Japan)
000012   84017:  1.56%: .au (Australia)
000013   78025:  1.38%: .se (Sweden)
------ ---------------------- 42 LINE(s) NOT DISPLAYED ----------------------
000056    1387:  0.03%: .cy (Cyprus)
000057    1085:  0.03%: .lu (Luxembourg)
000058     982:  0.03%: .su (Former USSR)
000059    1702:  0.03%: .cr (Costa Rica)
000060     983:  0.02%: .tw (Taiwan)
000061    1155:  0.02%: .ve (Venezuela)
000062    1321:  0.02%: .hk (Hong Kong)
000063     789:  0.02%: .ee (Estonia)
000064     808:  0.02%: .cn (China)
000065     818:  0.02%: .lv (Latvia)
000066     882:  0.01%: .do (Dominican Republic)
------ ---------------------- 435 LINE(s) NOT DISPLAYED ----------------------
****** ******************************** BOTTOM OF DATA ************************
If you are wondering how I obtained data and surrounded it by edit panels, here is how I did it:
  1. Copied data from someone's web page (Ctrl+C)
  2. Created an empty member in SPF/PC with 500 blank lines, and placed the cursor at line 1 col 1.
  3. Since the clipboard for NT and DOS are not the same extra steps are necessary which also result in alignmen problems.
  4. Right click on DOS SPF/PC colored task bar.
  5. Select EDIT --> Paste
  6. Data is now contained as in first box.
  7. For illustrative purposes want to surround with edit panel
  8. @PRINT EDIT NX which will not print but create a temporay cut dataset.  This feature only exists within the SPF/PC version of @PRINT that is going to a PostScript printer -- the EDIT option here prevents it from printing.  The E option also prevents printing.
  9. Edit the result and use CUTR 1 to cut to a new dataset.
  10. Return to the original data (PFK3)
  11. Continue with the next LEFT@ reformat or realignment and redo some of previous steps. Then pasting in previous work with
  12. PASTER 1 with B on first line number.
  13. CUT 1 to recreate paste dataset 1 with more data
  14. etc.

If the kind of data above looks interesting

If the kind of data above looks interesting, then the following web sites may be of interest
  1. Web Interface to Whois [ http://rs.internic.net/cgi-bin/whois ].  Registered site information like name, address of site and contacts.
  2. Internet Country Codes.
  3. Domain names registries from around the world.
  4. Found the following which may be useful in stopping junk mail, it's a very big file. Anyway someday it may be useful to me ComplainToWhom.html (last edited 1997.Mar.16 02:50 PST).  Title: To whom to complain about net abuse. [//nctuccca.edu.tw/ftp/documents/Internet/MaasInfo/Other/ComplainToWhom.html] 1997-06-07
  5. Yahoo! Top:Computers and Internet:Internet:Domain Registration:Top Level Internet Domains.

You are visitor  ctr since count started May 29, 1997.

Comments

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