Tip

Write scripts fast with Rexx

This tip was submitted to the SearchWinSystems.com tip exchange by Howard Fosdick. Please let us know how useful you find this tip by rating it below!

If you have a useful Windows tip, timesaver or workaround to share, submit it to our tip contest and you could win a prize!


Need to write scripts in a hurry? You could use VBScript or Visual Basic, but these are proprietary and run only on Windows. Perl is a powerful alternative, but it has complex syntax. You can't script Perl without reference materials unless you do it every day. And maintaining someone else's script can be tough.

I like Rexx. It's free, standardized and cross-platform. It's powerful, but has almost no syntax. You can script it from memory. And it's as easy as Basic or PHP, but is powerful enough to have dominated mainframe scripting for years.

You have a choice of several free Rexx interpreters for Windows. Regina is the interpreter you may be familiar with from the Windows Resource Kits. It's the most widely-used open source Rexx and has a ton of tools and interfaces. r4 and Reginald are both Windows-only products. They include the hooks for DLLs, Registry access and add-on tools many Windows developers like. BRexx is yet another option. It's the fastest of the breed and requires very little disk space. BRexx has extensions for native Windows CE programming. So you can program your handheld with Rexx just the same as Windows servers and clients.

Open Object Rexx and roo! are free object-oriented Rexx interpreters. They run standard, procedural Rexx scripts, but then add all the features required for OOP – classes, methods, messaging, inheritance, polymorphism, etc. Both have large Windows class libraries.

For more information on Rexx, visit the Rexx Language Association Web site. Pick up the comprehensive book Rexx Programmer's Reference. Or check out the Rexx forum or the one specifically for Windows users.


ABOUT THE AUTHOR: Howard Fosdick is an independent consultant who has worked with most major scripting languages and wrote the Rexx Programmer's Reference.

This was first published in February 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.