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

What does it mean when I get a RC (-2) from LINKPGM in a REXX exec?

I "borrowed" the LPINFOX REXX program from this url: [http://www.longpelaexpertise.com/toolsLPinfoX.php] When I run it "directly" (EX 'hlq.EXEC(LPINFOX)') it runs fine: ------------------------------------------------------ LPInfo: Information…
1
vote
1 answer

REXX - length of output files in PDS

Can you, please help me with an idea: I am writing a REXX program in TSO that reads all the files in PDS1 and let's say writes line by line all the files into PDS2. My problem is: I read a file1 of 1500 lines ; I write a file1 of 1500 lines in…
lili -
  • 11
  • 2
1
vote
1 answer

how to read a file if EOL char is LF

I receive a file from internet, and the lines are separated by 0x0D char I display it using this tool https://www.fileformat.info/tool/hexdump.htm When I read that file into Rexx using "linein()", all the file comes into one sigle line. Obviously…
Sebastia.Net
  • 129
  • 2
  • 14
1
vote
1 answer

DISPLAY and CANCEL multiple stcs with ASID on specific LPAR

We have two started tasks that run multiple instances of OMVS. Automating the shutdown is proving to be problematic. We have IBM System Automation (SA v4.1) at our disposable and Netview (v6.2.1) I've come up with a REXX exec to achieve what I was…
paulywill
  • 629
  • 10
  • 29
1
vote
1 answer

Facing error while executing a regular expression to find a pattern in PS file or PDS member via REXX in mainframe

In a REXX tool, I want to check if the PS file contains a specific pattern (like continuous 16 digits) in mainframe, for which I want to execute a Regular expression and then check the RC for further processing. I tried below code, but not able to…
S. Agrawal
  • 79
  • 1
  • 8
1
vote
3 answers

Would a Python dictionary be the equivalent data structure to a Rexx compound variable?

I'm working on rewriting a lengthy Rexx script into a Python program and I am trying to figure out the best way to emulate the functionality of a Rexx compound variable. Would a dictionary be the best bet? Obviously, a dictionary will behave…
kbarnum
  • 13
  • 4
1
vote
3 answers

Parsing a string in z/OS REXX with partial case-insensitivity

I have a REXX parameter string in this format: arg = 'update summary(A summary of something) description(The description)' and I'm parsing out the mode, summary and description as follows: parse upper var arg mode . , 1, 'SUMMARY('summary')' ., …
Steve Ives
  • 7,894
  • 3
  • 24
  • 55
1
vote
1 answer

How do external functions return data in Regina Rexx?

I've installed the Regina Rexx package (version 3.9.1) in Cygwin on Windows 10. To test it out, I wrote the following code: caller: #!/usr/bin/rexx x = 'callee'() ; say 'callee returned' x ; exit callee: #!/usr/bin/rexx say 'In callee' ; return…
Denizen
  • 41
  • 7
1
vote
3 answers

REXX routine that will return a unique string

I want to define a function that returns an unique string each time it is called. The return value of this function needs to be unique for the next 50 years. Here is what I have tried: k.rand=USERID() do i=1 to 10 by 1 n=RANDOM(1,26) k.i=word('a b…
hotcoder
  • 41
  • 2
  • 10
1
vote
2 answers

Tailor and run jcl programmatically using rexx

Monthly, I need to run a set of JCLs. These JCLs has some hardcoded parameters that I need to be changed every month (eg: the year/month of the source file). On the other hand, these JCL need to be run for many source files:…
leamasuero
  • 341
  • 1
  • 7
  • 17
1
vote
1 answer

Pipe stalls with I/O redirection

We're trying to add a capability to the ooRexx programming language that allows the programmer to issue an operating system command with the option of I/O redirection on the stdin, stdout, and stderr streams. We'doing this for both Windows and all…
1
vote
1 answer

How to get userlibs in the Rexx-interface to SDSF

The rexx interface to SDSF works fine to get information about spoolfiles. I am trying to list the use of userlibs for output-files. And do a "ISFEXEC O" followed by (in a loop) ISFACT O TOKEN(..) PARM(NP ?) (PREFIX JDS_ DELAYED DELAYED2 In an inner…
Per Beliing
  • 73
  • 1
  • 7
1
vote
0 answers

Is there a way to pass multiple dynamic sql values from a select query in JCL to a REXX?

I have a select query in a JCL. For eg: the select query will fetch 130 rows with 6 columns. I need to pass the values of each row one by one to a REXX using the JCL. Is there a way to do it? Any help would be appreciated.
1
vote
0 answers

passing UTF8 string to external command from REXX

I need to access some files with russian filenames from REXX. The filenames are listed in a text file. The code correctly reads the input list of filenames, but when the code invokes an external command using as a parameter the line that has been…
PA.
  • 28,486
  • 9
  • 71
  • 95
1
vote
4 answers

RC special variable in REXX?

how to assign a value to RC special variable in REXX?
Partha
  • 11
  • 1
  • 2