Rex Swain's PARSET Utility

Last updated 19 July 1999

The REXX program PARSET.REX parses an XEDIT target from the beginning of its argument and returns the length of the target.

This is very helpful when you want to write an XEDIT macro which allows additional arguments after a line target (like the PUT command does). Detecting the point in the argument where the target ends and the other arguments begin can be very tricky.

Example: Let's say you're writing FOO.REX and it's syntax is:

You would code the beginning of FOO.REX like so:

If you execute:

The following output will be produced:

You are visitor [Odometer] since 19 July 1999

Copyright © 1999 Rex Swain
E-mail, Web
Permission granted to distribute unmodified copies