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
2 answers

Is there a TSO command written in REXX or CLIST that can determine WHO has enqueued a dataset?

I need to write a REXX Exec or Clist to identify WHO has enqueued a Dataset and display a user friendly message on an ISPF dialog application. Due to system configuration issues, the %WHOHAS command is not available. However I also know that ISPF…
MikeC
  • 408
  • 2
  • 4
  • 9
1
vote
3 answers

How to save job logs into datasets using REXX

I just got a task to check hundreds of jobs in SDSF.ST and save these job logs into specified datasets. I think I should automate this task using REXX but actually not familiar with the language. Having searched on Google, I still can't find a…
thinkhy
  • 923
  • 13
  • 25
1
vote
3 answers

How to write a HEX string into a file as HEX using REXX

I have a string 'RAJA' which should be written into a file as HEX data. Here are sample codes which help me to describe the issue. Case(a) name = 'RAJA' name = C2X(name) /* Hex value = '52414A41' */ QUEUE name. Output to the file: 52414A41 But…
Raja Reddy
  • 772
  • 8
  • 19
  • 37
1
vote
0 answers

MVS OS-390 - How do I Capture Job Information from CA-JOBTRAC programmatically

I am using REXX to invoke JOBTRAC programmatically which works however I am unable to pass JOBNAME arguments using this approach. Can this be done using REXX? The idea is to find the history of the job run using the program jobtrac. We use jobtrac's…
Constantin
  • 1,506
  • 10
  • 16
1
vote
1 answer

XML handling in REXX AND JCL

I have XML data in my PS dataset as below , It is in the same format as below in my PS ,here is the example: (**
1
vote
3 answers

How do I copy a member with a REXX/CLIST batch program (no ISPF)?

Under z/OS, I want to write a REXX or CLIST script to copy one sequential data set to another and then run another script (REXX). The other script expects a specific SDS to exist and I want to be able to copy one of many options to that member…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
0
votes
2 answers

I need to add a /*XEQ ddcard to a PDS of jobs

TLDR: Need to update JCL members in a PDS by adding a /*XEQ card to each one there. We are moving away from one large IT application compamy, switching out a number of our regularly used IT apps, for others, mostly IBM. One of those apps is CA…
0
votes
1 answer

Using BPXWUNIX to invoke sftp with a batch file - host not authenticating

Using this BPXWUNIX setup: cmd is set as: sftp -b /u/lbdyck/tmp/sftp.stdin userid@ftp.host.com x = bpxwunix(cmd,,so.,se.,env.) With an environment variable of: DISPLAY=NONE SSH_ASKPASS=/u/lbdyck/.ssh/sftp.sftpsh …
Lionel B Dyck
  • 552
  • 2
  • 9
0
votes
1 answer

How to use REXX OUTTRAP external function in TSO

i need to capture a TSO message every time a user insert a data set name and count that data set and display its name. The script will only do that once and then the script fails with BRX0003E - ABEND CAUGHT IN BREXX/370 error code The REXX code…
karam
  • 33
  • 7
0
votes
1 answer

REXX program that will show a task from DA with the highest CPU usage

i'm quite new to programming with REXX. I'd like to write a program that will show a task from DA with the biggest CPU usage on the LPAR. Thanks in advance 000001 /* rexx */ 000002 RC=ISFCALLS('ON') …
Dandy
  • 3
  • 2
0
votes
2 answers

How to pull console input with non-empty stack in REXX?

I want to ask for console input without disturbing the contents of the stack. However, the PULL function will always pull from the stack first if it is not empty. How can I do this?
ArnoLamme
  • 3
  • 1
0
votes
2 answers

Rexx sleep command

I want to make the CPU go from 0% utilization back to 100% every 10 seconds. Kind of like waves if that makes sense. I was wondering if anybody could help me since I have no clue how to do it.
user19838037
0
votes
1 answer

How to automate to delete multiple GDG generations of different jobs on daily basis?

I am working in a environment where Batch jobs which triggers in daily basis are A to Z– total 24 jobs(Just an example) All these jobs create QUESTION.XXXXXXXX.HELPME.G0002V000 (Where XXXXXXX=Jobnames(A_Z)) once the batch process is…
0
votes
1 answer

REXX codin with CSV input

Im new to coding with REXX and I need to make a program to find the Max, min and avg temperature for every month. The input is Comma separated like below: DAY/MONTH,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec …
Vaga94
  • 3
  • 2
0
votes
1 answer

How can I automate rexx scripts in mainframe using python

I want to automate rexx scripts using python eventually I want to automate the mainframe login. I am totally new to mainframe. Any help is appreciated
Priya Chauhan
  • 445
  • 1
  • 5
  • 21