Questions tagged [rexx]

REXX is a (most of the time) interpreted programming language developed by IBM in the end of 70's and beginning of 80's.

REXX is a weakly typed interpreted language - although there are some compilers for it, both for native code and bytecodes. It is mainly used as a glue, script and macro language. There are implementations for most platforms, including some popular portable free software implementations. Also, REXX is the primary scripting language of some platforms, such as VMS, OS/2 and AmigaOS.

It was developed as a personal project by Mike Cowlishaw between 1979 and 1982. Once presented to the public, it was shipped as a product by IBM in 1982. Since then, it is shipped with almost all IBM operating systems.

The language presents various similitudes with , and . Although there is an ANSI specification for the language, there are some popular variants today, such as NetREXX (which is based in the Java platform) and OOREXX, which provides object-oriented syntax and semantics to the language.

As far as a comparison by efficiency, a pretty in depth study from Universit ̈at Karlsruhe can be found here comparing it to , , , and .

Among the modern implementations, some of the most popular are the open source Regina interpreter, OOREXX and NetREXX.

168 questions
9
votes
5 answers

Resources To Learn REXX

I want to travel in the past and learn REXX, but I don't know where to start, then I want some help from someone that can point me to the right place to start.
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
7
votes
2 answers

Is there a way to do associative arrays in REXX?

I have some Perl code (for performance analysis) first developed under Linux which now needs to be ported to the mainframe. Apparently REXX is the scripting language of choice on that platform but this Perl script relies heavily on associative…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
5
votes
3 answers

Calling particular functions in an external Rexx script

I have a Rexx script which functions standalone, and I wish to use another Rexx script to call particular functions within it. I am aware I can call both an entire external Rexx file and internal Rexx functions with call, but am I able to call a…
Matt Lyons-Wood
  • 931
  • 11
  • 17
5
votes
3 answers

How can I parse REXX code in Java?

I'd like to parse REXX source so that I can analyse the structure of the program from Java. I need to do things like normalise equivalent logic structures in the source that are syntactically different, find duplicate variable declarations, etc. and…
brabster
  • 42,504
  • 27
  • 146
  • 186
4
votes
1 answer

Is there a C function for comparing a string against a character table?

IBM's REXX language has a function called VERIFY that performs what I am looking for: Given two strings: string and reference: returns a number that, by default, indicates whether string is composed only of characters from reference; returns 0 if…
David Mordigal
  • 813
  • 2
  • 9
  • 22
4
votes
2 answers

How to Identify if the rate of an event (moving average) exceeds a threshold

EDIT Added information Originally this was just about a general algorithm and language/platform agnostic. However I'm going to answer this question myself and the answer is in fact specific to the tools in use. This is for event detection on an IBM…
Steve Ives
  • 7,894
  • 3
  • 24
  • 55
4
votes
5 answers

How do I script DB2 commands in z/OS?

After 25 years of using DB2 on midrange systems (AS/400, IBM i, etc), I’m now being tasked with being a database administrator for DB2 on the mainframe (z/OS). I apologize for the “rookie questions” here, but I’m still getting my head around the…
Dave Ford
  • 341
  • 2
  • 14
4
votes
2 answers

Is there a way using REXX to edit a ps dataset and insert a string after a particular line?

I am writing a REXX program which will update a PS dataset. I can edit a particular line using my REXX code. But I would want a code to insert a particular string after a particular line. For Example: My PS dataset has 100 lines. I want to insert…
4
votes
0 answers

Is there a more modern regexp handler for Open Object Rexx?

The regular expression class (rxregexp.dll) that comes with ooRexx (I'm on 4.0.0) is relatively low on functions compared, say, with Python's re module (even at 2.5.2). It appears to have no assertions, no facilities for group extraction, or for…
Brent.Longborough
  • 9,567
  • 10
  • 42
  • 62
4
votes
1 answer

What are the REXX commands to open, close, read, and write files to a TAPE drive?

As stated in my title, I am hoping that some one can throw some basic REXX commands my way. I have user guides but they are very huge and the table of contents do not point to anything TAPE DRIVE related. I just need to know the basic commands for…
SORC_
  • 79
  • 2
  • 7
4
votes
3 answers

What are the relative merits of REXX and CLISTs under z/OS?

What are the advantages and disadvantages of using either REXX or CLISTs in TSO for z/OS? My understanding is that CLISTs are just an older command language but we seem to receive a lot of new software using them, even though REXX is now standard…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
3
votes
2 answers

File tailoring without ISPF

I'm currently attempting to write a simpler external interface to a mainframe ISPF panel, however it makes use of ISPF file tailoring to modify JCL scripts before execution, and ISPF services (including file tailoring) aren't available without a…
Matt Lyons-Wood
  • 931
  • 11
  • 17
3
votes
1 answer

Obtain output in REXX from DB2 Command

I would like to use Rexx capture the output from the following commands: QUEUE "-DIS DATABASE(*) SPACENAM(*) RESTRICT(CHKP,COPY)" QUEUE "END" ADDRESS TSO "DSN SYSTEM(DB2D)" Is there any way to obtain the…
user10289552
3
votes
1 answer

Change directory in REXX exec running in z/OS USS?

I'm in the USS shell under TSO, and I have this exec (named tryit): /* rexx */ "cd /differentdir" "pwd" Here's the result: > pwd /origdir > tryit /origdir In other words, the effects of the cd command appear to last only for the duration of the…
Oh Come On
  • 153
  • 8
3
votes
3 answers

Are ISPEXEC services available in ISPF panel REXX?

Here's an ISPF panel definition: )BODY Hello, world! )PROC *REXX ADDRESS ISPEXEC "CONTROL ERRORS CANCEL" *ENDREXX )END The panel displays fine, but the imbedded REXX immediately fails: *-* ADDRESS ISPEXEC "CONTROL ERRORS CANCEL" +++ RC(-3) +++ A…
Oh Come On
  • 153
  • 8
1
2 3
11 12