- Rexx - Web Programming
- Rexx - Reginald
- Rexx - Graphical User Interface
- Rexx - Best Programming Practices
- Rexx - Performance
- Handheld & Embedded
- Rexx - Databases
- Rexx - Brexx
- Rexx - Netrexx
- Rexx - Implementations
- Rexx - Instructions
- Rexx - Extended Functions
- Rexx - Portability
- Rexx - Object Oriented
- Rexx - Error Handling
- Rexx - Debugging
- Rexx - Signals
- Rexx - Parsing
- Rexx - Regina
- Rexx - XML
- Rexx - System Commands
- Rexx - Built-In Functions
- Rexx - Subroutines
- Rexx - Functions For Files
- Rexx - File I/O
- Rexx - Stacks
- Rexx - Functions
- Rexx - Strings
- Rexx - Numbers
- Rexx - Decision Making
- Rexx - Loops
- Rexx - Arrays
- Rexx - Operators
- Rexx - Variables
- Rexx - Datatypes
- Rexx - Basic Syntax
- Rexx - Installation of Plugin-Ins
- Rexx - Installation
- Rexx - Environment
- Rexx - Overview
- Rexx - Home
Rexx Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Rexx - Netrexx
NetRexx is the java implementation of Rexx. In NetRexx, the implementer is used to convert the Rexx program to a java program which can then be run on any Java virtual machine.
Setting up NetRexx
The first step in NetRexx is to set it up on the local machine. To do this, one needs to perform the following steps −
Step 1 − Go to the NetRexx download site −
Download the NetRexx.3.04.GA file.
Step 2 − Ensure that java is installed and running on your system. You can verify that java is running by using the java–version command.
An example of the output is shown below.
H:>java -version java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) Cpent VM (build 24.79-b02, mixed mode, sharing)
Step 3 − Unzip the contents of the Netrexx zipped file. Copy the files from the NetRexx3.04GApb folder to your java installation/pb/etc folder.
Step 4 − Add the NetRexx-3.04GAin path to the path variable on the system.
Running the First NetRexx Program
Create a file called main.nrx and place the following code in the file.
/* Main program */ say ‘hello’
To compile the code run the following command.
NetRexxC main.nrx
You will then get the following output. NetRexxC is the compiler which converts the rexx program to its java equivalent.
java -cp ";;G:NetRexx-3.04GApbNetRexxF.jar;." -Dnrx.compiler = ecj org.netrexx.process.NetRexxC main.nrx NetRexx portable processor 3.04 GA build 4-20150630-1657 Copyright (c) RexxLA, 2011,2015. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program main.nrx Compilation of main.nrx successful
You can now run your java program using the following java command.
java main
When you run the above command, you will get the following output.
Hello
Let us now discuss some of the special aspects of the Netrexx pbrary.
Indexed Strings
In NetRexx, strings can become the indexes to arrays. An example is shown below.
Example
/* Main program */ value = unknown value[ a ] = b c = a say value[c]
When we run the above program, we will get the following result.
Output
b
Multiple Indexes
In NetRexx, you can have multiple indexes for arrays. An example is shown below.
Example
/* Main program */ value = null value[ a , b ] = 1 say value[ a , b ]
When we run the above program we will get the following result.
Output
1
Sr.No. | Command & Description |
---|---|
1 | This command is used to read a pne from the default input stream. |
2 | This command is used to display the current value of the digits’ value. |
3 | This command is used to display the current value of the form value. |
4 | This command is used to display the length of a string value. |
5 | This command is used to return the current version of NetRexx being used. |
6 | This command is used to return the current trace setting being used by NetRexx. |