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] |
NX | Affects 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]
This macro was created to use SAS dictionary and supply INFOLINEs similar to what has been provided by our version of the SPELL macro.
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