REXX macro WORDS REXX macro WORDS Author: David McRitchie formatted on 1995/04/01 06:54 for assistance contact: D. McRitchie DMcRitchie@hotmail.com -------------------------------------------------------------------------------- Macro name. WORDS users. PDF EDIT users particularly SCRIPT users type. Edit Macro resides in SYS1.TSOCLIST -------------------------------------------------------------------------------- WORDS Count number of words in text -------------------------------------------------------------------------------- related (@SCRIPT Q usage) -------------------------------------------------------------------------------- The WORDS macro will count the number of words in your text. Useful for printed articles in magazines, newspapers, and essays. Recommended implementation for SCRIPT/VS (DCF) users would be to for- mat output to a temporary file so that only the words you want to count remain. This will prevent interference by SCRIPT tags and con- trol words. You may also need to eliminate headings and footings. -------------------------------------------------------------------------------- ISREDIT WORDS (there are no options) -------------------------------------------------------------------------------- Examples (steps for @SCRIPT users) 1. Since we are only interested in the number of words it might be useful to temporarily add the following line at the beginning of your SCRIPT text to turn hyphenation off. .if SYSOUT = PRINT .HY OFF 2. Format the output. The @SCRIPT Q will create a dataset named userid.S9999.LIST. You may delete all unwanted lines from it, before you count the number of words. COMMAND ===> @SCRIPT Q 3. Delete unwanted words from "temporary" dataset. 4. Issue WORDS macro to count the number of words in final text. COMMAND ===> WORDS