Rexx - Regina
Regina is another Rexx interpreter available to compile and run Rexx programs. The official site for Regina is − www.regina-rexx.sourceforge.net/
Some of the advantages of using Regina are as follows −
Regina can run on any platform whether it be Windows, Linux or the Mac OS.
Regina works as per all available standards.
Regina has a big community following and hence there are a lot of forums and learning material available for Regina.
Regina has a lot of tools available for writing and testing Rexx programs.
In Regina, you can run commands which are not possible in the default Rexx Interpreter. For example, if you include certain configuration settings, you can actually run basic system level commands, which is not possible in Rexx.
When you install Rexx via the installation documented in Chapter 2 – Rexx Environment, the Regina interpreter gets installed along with it.
Now let’s see some of the common methods available when using Regina. These functions are the extended functions which are not available via normal use.
To make use of the extended functions, you need to include the following line of code. This enables the use of Regina extended functions.
Secondly while running all Rexx programs, use the following command.
regina − This is the interpreter used for Rexx programs.
main.rexx − Your Rexx program
We will now discuss in detail the various functions of Regina Rexx Interpreter.
|S.No.||Functions of Regina Rexx Interpreter|
This method is used to convert a binary value to a string value.
The method is used to compare 2 bit strings, bit by bit.
This method is used to indicate the state of the specified bit in the bit string.
This method is used to search for the first occurrence of a string in another string.
This method returns the value of an environment variable on the system.
This method is used to get the value of the current running process id.
This method returns the hash attribute of a string as a decimal number. It also updates the internal hash value of the string.
This method is used to add justify or trim the value of a string based on the length value.
This method is used to set the value of an environment variable.
This method gets the value of the current directory on the system.
This method changes the value of the current working directory on the system.
This method returns a pseudo-random number between 0 and 1.