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
0
votes
1 answer

Is there a way to execute free Package statements using REXX?

I am able to write a REXX code that generates FREE PACKAGE statements. After generation I use that file in a JCL to execute the FREE PACKAGE statements. Is there a way to execute the FREE PACKAGE statements directly via rexx? I tried executing it…
0
votes
1 answer

Have a problem summing numbers in Rexx (Creating Luhn Algorithm)

Hello I am new to Rexx and working on creating the luhn algorithm in a subroutine get an the error when trying to add the digit to the variable to hold the sum in each iteration of my loop. The code runs with no error when I remove 'sumOfNum =…
0
votes
1 answer

Use Reginald interpreter in ooRexx

I've fallen into ooRexx for some office improvement stuff and I need to move some files around in windows, and in my research I found the Reginald interpreter which is exactly what I need. Is it possible to call to it from, or load that…
0
votes
1 answer

Incrementing numbers in REXX

I have a requirement where I take a SUBSTR (e.g st_detail = "%BOM0007992739871P", st_digit = SUBSTR(st_detail, 8, 10) ). I have to do some validations on the st_digit and if it is valid change "%BOM0002562186P" to "%BOM0002562186C". My code works…
0
votes
1 answer

Stop Rexx Do Loop from Exiting

For some reason my Rexx loop breaks and I don't know why. I'm trying to search a phone number database by ICCID (The identification number for sim cards) and pull the phone number. Here's the loop I have, a little simplified: (t) is the tab hex…
0
votes
2 answers

Trying to write a REXX to read input and build job to execute

I am trying to build a REXX program to create a job with a passed element name within it. I originally had the program set up to receive the element name as a passed parameter, however, because I am running the REXX within an Endevor processor, I…
0
votes
1 answer

How to get an array as output using rexx

I'm testing some functions of Db2 for z/OS, and right now I'm having troubles when I try to call a Stored Procedure through REXX. Below is the code to create the Data Type that I need to return in my Stored Procedure CREATE TYPE *******.ARRAY_TESTE…
Ricardo Pinto
  • 333
  • 1
  • 2
  • 11
0
votes
3 answers

Using OGET-command from within JCL

I have been trying to run the OGET-command from within a JCL. Normally I would use the ishell-command line using ISPF;6 and then run the command from there, however, this job is so big that I need to automate the task. What I have tried so far is to…
sCuper
  • 91
  • 2
  • 8
0
votes
1 answer

JCL Printing Job spool into a dataset for a specific LPAR

I wanted to print my job spool automatically(using a job scheduler) using a JCL. I was able to do that by executing the SDSF program and passing my SDSF commands in ISFIN. I was able to pass the Jobname and print into a specific file, but how do I…
0
votes
1 answer

using REXX to access vm370 disks

REXX is completely new to me, I like it so far. I am using SixPack running on Hercules. VM/370 is a nice environment, but I am trying to make it user friendly; filling in scripts for everything that works-so as to not need to repeat my steps. The…
0
votes
0 answers

Issue while passing RC from MACRO to caller REXX program

I am executing a MACRO to find string (using regular expression), and want to handle the return code of that regular expression execution in my caller REXX in mainframe. I tried using PARM and, VGET and VPUT, but no positive result for me. /* REXX…
S. Agrawal
  • 79
  • 1
  • 8
0
votes
3 answers

IBM Z/os Rexx script returns 255 exit code

I have simple Rexx script hello_world.rexx: /* rexx */ SAY 'Hello World' EXIT Then I run it: >./hello_world.rexx Hello World It executes well, but somehow I always get 255 exit code. >echo $? 255 Does somebody know how to fix script to get 0 as…
Hlib
  • 2,944
  • 6
  • 29
  • 33
0
votes
2 answers

How to fix DB2 sqlcode=-805 in a REXX mainframe script with execsql prepare

When I run the REXX script : /* REXX */ CALL CONNIN /* CONNECTION */ ADDRESS DSNREXX "EXECSQL DECLARE C1 CURSOR FOR S1" IF SQLCODE \= 0 THEN DO …
0
votes
2 answers

How to order control m job using REXX? like Control m utility CTMAPI

I have to order few jobs in control m from different scheduling tables. this is manual task so i want to automate it using rexx. I found below in 'Order or Force under Batch, REXX or CLIST' section of 'CONTROL M USERGUIDE' EXEC CTMAPI PARM=‘ORDER…
Rahul
  • 1
  • 2
0
votes
2 answers

Executing a DFSORT using REXX

I would like to know,is it possible to invoke DFSORT through REXX? I have used the below code,but the result is not as expected. /*REXX*/ QUEUE "//ISDNNNN JOB XXX,XX" QUEUE"//STEP003 EXEC PGM=SORT" "FREE FI(SYSOUT SORTIN SORTOUT)" "ALLOC FI(SYSOUT)…
MCN
  • 83
  • 1
  • 7