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
1
vote
3 answers

encryption/decryption by REXX

I study z/OS and REXX and now have code, which takes public and private keys from MY.DATA.SET (PUBLIC, PRIVATE) and encrypts the message (MSG): "ALLOC FI(pubkey) DA('MY.DATA.SET(PUBLIC)') SHR REUSE" "ALLOC FI(prikey) DA('MY.DATA.SET(PRIVATE)')…
iceloki
  • 13
  • 2
1
vote
1 answer

Limited sdsf info via rexx

I wrote this code, which write info from SDSF into file (like option S). So, my question, may I write not all information (JESMSGLG, JESJCL, JESYSMSG.._ from SDSF? I need only DVGLOG DDNAME parse upper arg prefix owner…
1
vote
5 answers

What is the processing overhead of length() in REXX?

How does the processing overhead of the length() function in REXX change with the length of the string? Update: I'm using: uni-REXX (R) Version 297t Open-REXX (TM) Copyright (C) iX Corporation 1989-2002. All rights reserved.
brabster
  • 42,504
  • 27
  • 146
  • 186
1
vote
2 answers

how to run REXX file on mac?

I am studying on how to use REXX programming language, but I face some difficulties while doing so. First of all, I am using macbook pro. Secondly, i have downloaded the interpreter from sourceforge and somehow i cant manage it to work, there's no…
user5349891
1
vote
2 answers

REXX: writing long string to pds member

i'm writing a rexx script on a z/OS (ADCD version) at my university. I want to write a very long string to a pds member with diskw. Sadly rexx doesn't automaticly break the line so only about half the string is written to the member. My string is a…
Jonas Kreusch
  • 316
  • 1
  • 15
1
vote
1 answer

How to issue RACF Commands from REXX on z/OS

I want to do some user management on the mainframe using rexx. I allready managed to create a user with the following /*REXX*/ adduser username exit I figured out this works because the rexx interpreter passes on every command that is not a rexx…
Jonas Kreusch
  • 316
  • 1
  • 15
1
vote
3 answers

Looking for 'HOLD' CLIST/REXX logic that can be executed from a TSO mainframe command line

On IBM mainframes, I've been able to type 'hold' on the command line, press enter, and have a new TSO screen appear without losing my original screen. To go back to my previous screen, I'd press F3. Does anyone know where I can find the CLIST/REXX…
DJSGeog
  • 11
  • 1
1
vote
2 answers

Dataset (Sysout) read error after COBOL program execution

In a rexx program, a COBOL program is invoked and it's SYSOUT is captured using a temporary dataset allocation (TSO alloc) and then using an EXECIO read. It works usually without any issues. One of our users (using a different machine) reported an…
cobp
  • 772
  • 1
  • 5
  • 19
1
vote
1 answer

How do I include a JCL PDS Library in a REXX Program

I am writing a Rexx program to automate sequential submission of jobs. The Code is like : /*REXX*/ Address ISPEXEC "LIBDEF ISPPLIB DATASET ID('XXX.YYY.PANELS') Address ISPEXEC "LIBDEF ISPMLIB DATASET ID('XXX.YYYY.JCLLIB') …
1
vote
1 answer

How to transfer a cobol file with .cbl filetype from a desktop to the mainframe using REXX?

I have a COBOL file on my desktop, with .cbl as its filetype. I want to transfer this .cbl file to a sequential file on a mainframe (file format=PS), by using some REXX code. Can anybody suggest me how to do so? Any sample code would be greatly…
1
vote
1 answer

Can we pull REXX SQL output values into ISPF panel?

I Have created a REXX program to fetch 3 columns from a table. I have kept temporary variables to hold SQL values (takes automatic datatype as per input) Its like: ADDRESS DSNREXX "EXECSQL FETCH C1 INTO :IN, :CR, :TN" Now i have created A Panel,…
Agent Mahone
  • 307
  • 3
  • 15
  • 26
1
vote
4 answers

Rexx - Square brackets usage

I am quite new to Rexx, really basic stuff here, I want to get the last element of an array quickly. Open Object Rexx 4.2.0 for Windows: test.0=2 test.1="foo" test.2="bar" say test.[test.0] ==> Output as wanted: bar My easy guess is that the Open…
MaesterZ
  • 72
  • 1
  • 9
1
vote
3 answers

Can I read the allocation parameters of a dataset in zos using Rexx?

I want to create some Rexx code that allows me to allocate new data sets, in any format, such as PDS, Sequential etc.. by reading the data set information of an existing data set then applying those parameters to the new allocation. For example,…
deucalion0
  • 2,422
  • 9
  • 55
  • 99
1
vote
1 answer

Rexx error - ISPT024 Error on input/output

can anyone please explain to me what does this error mean? ISPSTART PGM(DSQQMFE) NEWAPPL PARM(F=999999,M=B,S=DSND, I=KMSDBA.PROMQMF (&&TYPE=QUERY &&DB2SRC=U123730 &&DB2OWNER=BCD75DBA &&INFO=D EF-677946)) ISPT024 Error on input/output …
reignreign
  • 11
  • 2
1
vote
1 answer

Find JOBID with REXX on z/os

Can anybody give me a hint on how I can get the JOBID of my REXX-Script submitted via a JCL? JOBNAME, for example, is no problem but I haven't found a reference to the JOBID in any ControlBlock so far. Thank you very much in advance!
Klaus Schulz
  • 527
  • 1
  • 5
  • 20