@SPELLS edit macro

Macro name. @SPELLS Edit macro @SPELLS
users. Anyone wanting to check the spelling in a document.  Requires SAS. Author: David McRitchie
type. Edit Macro resides in SYS1.TSOCLIST for use with TSO
@SPELLS The @SPELLS macro uses SAS to check the spelling of a document in edit.
Related @SCRIPT DUADD @SCRPTDU @SCRPTD3
Related MSPELL (invokes @SPELLS NOCTL)
Related MSDSDICT (undocumented for use by MSDS writer on TSO)
      probably same as ===> spell noctl
Related @SPELLS (similar to SPELL but uses SAS instead of SCRIPT/VS)

The @SPELLS macro will check for spelling errors and will flag them using INFOLINE.  This edit macro does not require your input to have been saved, no changes will be made to your input.

Lines with spelling errors will be displayed.  All other lines will be excluded.

The best use of this macro in on text documentation information.  However running any material through it such as JCL, clists, etc.  can prove useful in correcting spelling errors in comment text.

The INFOLINE, NOTELINE and MSGLINE containing misspelled word information can be removed by simply typing in RESET on the command line.

The macro @SPELLS will display suggest word fixes, unlike SPELL which does not.  These suggestions are limited to the first line of suggestions.

@SPELLS uses the SAS master dictionary and also an auxiliary dictionary SYS6.SAS607.AUXDICT.  Spelling rules differ somewhat in SAS.  The letters @,#, and $ are not letters and cannot be included in dictionary words.  Although SAS permits numbers within the spelling of words, we will eliminate such words for simplicity when displaying misspelled words.


ISREDIT  @SPELLS  [EDIT]  [NX]  [NOWORDS]  [NOTES]

NXAffects only lines that are NOT EXCLUDED from the display.

Examples:


           COMMAND ===> @SPELLS

options (none yet, possibly future some of the following:)

  EDIT         Edit  temporary  files  --  debugging  usage mainly, normally not
               seen.

  NX           Spell check only NX lines, other lines as comments.

  Normal usage without any parameters

Sample results after invoking @SPELLS

    COMMAND ===> @SPELLS

Get into edit on your document, and enter the command as above.

 EDIT ---- IS03.SHARE.TEXT(MISSPELL) - 01.00 -----------------------------------
 COMMAND ===>
 ****** ******************************************************* TOP OF DATA ****
 000001 accessable
 ====== Word Not Found:  accessable  Suggestions: accessible, access able
 000002 amphersand
 ====== Word Not Found:  amphersand  Suggestions: ampersand
 000003 delimitor
 ====== Word Not Found:  delimitor   Suggestions: delimiter, delimit or
 000004 neccessary
 ====== Word Not Found:  neccessary  Suggestions: necessary
 000005 ocasionaly
 ====== Word Not Found:  ocasionaly
 000006 specifyng
 ====== Word Not Found:  specifyng   Suggestions: specifying
 000007 useage
 ====== Word Not Found:  useage      Suggestions: usage, use age
 000008 umbrageousnesx
 ====== Word Not Found:  umbrageousnesx  Suggestions: umbrageousness
 ****** ****************************************************** BOTTOM OF DATA **

EDIT ---- TSOMODEL.PUBLIC.TEXT(ZZ) - 01.00 ------------------------
COMMAND ===>
****** ********************** TOP OF DATA *************************
000001 Synonyms, supersede, receivable, spelling, thanks
000002 SYnonyms, supercede, recievable, spellling, thanx
====== Word Not Found:  spellling   Suggestions: spelling
====== Word Not Found:  recievable  Suggestions: receivable
====== Word Not Found:  supercede   Suggestions: supersede, super cede
****** ********************** BOTTOM OF DATA **********************
Internal Aspects:    [TSO code] 
  1. An intermediate file is created which contains your current work space.
  2. SCRIPT is run against the intermediate file. Another dataset is created which contains misspelled words, the locations of the words and suggested spellings.
  3. The misspelled words dataset is processed to add NOTELINE text to your original file in edit.
  4. No changes have actually been made to your data. You may remove the NOTELINE and MSGLINE text by typing RESET on your command line.
If you want to see the actual files generated for processing then invoke @SPELLS with the EDIT option.

This macro was created to use SAS dictionary and supply INFOLINEs similar to what has been provided by our version of the SPELL macro.


Comments and Related Information

You are visitor  ctr since count started Jan 15, 1998.

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