My REXX Programs
I have found these REXX routines to be useful, some more than others. Take
whatever appears useful. These were written for Quercus System's Personal
Rexx For Windows. Some are conversions to Rexx of programs by other people.
- Does a least squares fit. Based on a Fortran routine from Oak Ridge National
- Bare-bones quick sort.
- Builds an HTML <DL> list of names of files in a directory to which I
add descriptive information. For example, it was used to create this list.
At this stage, additions must be manually inserted.
- Used with buildhtm.rex and extrahtm.rex
to check the format of the file filelist.htm.
- Counts the number of times each blank-delimited word appears in a file. Faster than wcount.rex.
- Checks tabular text files for consistent column boundaries. This is useful
when imported tabular text files into Excel or Access.
- Performs a sort using the COMBSORT method. I first saw this in Byte
magazine in Pascal. This is a relatively simple, relatively fast sort algorithm.
- Demonstrates how to use combsort.rex with the stem
- For sorting one array, and rearranging another array based on the order
of the first array. Uses the COMBSORT algorithm.
- Given a date, returns the day of the week.
- Calculates date of Easter for a given year. Formula came from a Navy website.
- Checks an HTML list of file names for files that no longer exist.
- Checks for new and missing files on drive C and additional drives.
- Does a fit using the ALSQ routine.
- Takes a date of form mm/dd/yy or mm/dd/yyyy and return a date of format 'S' which is like
yyyymmdd. For the mm/dd/yy format, the user may specify the breakpoint year to determine whether yy
should be added to 1900 or 2000.
- Calculates optimum placement of decimal point for constant field width
and calls the FORMAT function.
- Processes a line of comma-separated values and stores the values into a
stem variable. Excel and Access can export .csv files.
- Returns the blank-delimited word at a specific character position in a
- A REXX implementation of the heapsort technique, a relatively efficient
- Returns the count of the number of times a given character occurs in a
- "Increments" a given string using only characters from a specified string.
- Finds the last word in a set of blank-delimited words.
- Can be used to linearly interpolate or extrapolate.
- A square root routine.
- Removes the boxes from around each cell from a table exported as formatted
text from Access.
- A REXX preprocessor. Allows file inclusion and substitutions to be made.
Is set up for MVS mainframe REXX, Personal REXX, or uni-REXX.
- For generating a random name of a given length from a longer string.
- A natural log routine.
- Rounds a number in the direction of smaller absolute value, using a specified increment size.
- Rounds a number in the direction of larger absolute value, using a specified increment size.
- For a specified integer, returns the integer with 'st','nd', or 'th' appended
to it. For example, 22 is returned as 22nd.
- Counts lines, words, and characters (excluding CRLF) in a file. Also displays
the distribution of words per line.
- Counts occurrences of the blank-delimited words in a file using data structures
- Calculates weird anniversaries -- 10000 hrs, a million minutes, etc.
- REXX version of Oak Ridge National Lab's YLAG -- Lagrangian interpolation.