Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Issuing z/OS Unix commands from REXX

644 views
Skip to first unread message

Rich Smrcina

unread,
Oct 28, 2008, 10:02:42 AM10/28/08
to
Is it possible to issue z/OS Unix commands from TSO REXX (eg: df)? Alternatively, with
REXX running under z/OS Unix can a program write to a PDS(E)?

Thanks.
--
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service: 360-715-2467
rich.smrcina at vmassist.com
http://www.linkedin.com/in/richsmrcina

Catch the WAVV! http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX

Grant Ward Able

unread,
Oct 28, 2008, 10:24:06 AM10/28/08
to
Yes it is - look for this manual: "Using REXX and zOS UNIX System
Services"

--
Regards - Grant
=====================================
Note: Any opinion expressed is my own


Rich Smrcina <rsmr...@WI.RR.COM>
Sent by: TSO REXX Discussion List <TSO-...@VM.MARIST.EDU>
28/10/2008 14:02
Please respond to
TSO REXX Discussion List <TSO-...@VM.MARIST.EDU>


To
TSO-...@VM.MARIST.EDU
cc

Subject
[TSO-REXX] Issuing z/OS Unix commands from REXX

-----------------------------------------
________________________________________________________
DTCC DISCLAIMER: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error, please notify us immediately and delete the email and any
attachments from your system. The recipient should check this email
and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted
by this email.

Rich Smrcina

unread,
Oct 28, 2008, 10:37:16 AM10/28/08
to
Grant Ward Able wrote:
> Yes it is - look for this manual: "Using REXX and zOS UNIX System
> Services"
>
Grant,

The first question was related to REXX running in TSO, not z/OS Unix.

Robert Zenuk

unread,
Oct 28, 2008, 12:17:45 PM10/28/08
to
You can run USS commands from TSO/REXX using several techniques:

1. BPXBATCH
2. BPXWUNIX
3. Dub your address space (using syscalls) and use the USS/REXX API
documented in the previously mentioned manual.

You can access a PDS from the USS side using BPXWDYN to ALLOC the required
DSN(MEM) and use EXECIO like normal. I suspect there are other techniques too.


Rob


In a message dated 10/28/2008 7:37:25 A.M. US Mountain Standard Time,
rsmr...@WI.RR.COM writes:


**************Play online games for FREE at Games.com! All of your favorites,
no registration required and great graphics – check it out!
(http://pr.atwola.com/promoclk/100000075x1211202682x1200689022/aol?redir=
http://www.games.com?ncid=emlcntusgame00000001)

Albert Klimek

unread,
Oct 29, 2008, 4:02:42 AM10/29/08
to
You can use TSO O-commands, for example
address tso "oedit" file

Albert

Rich Smrcina <rsmr...@WI.RR.COM>
Gesendet von: TSO REXX Discussion List <TSO-...@VM.MARIST.EDU>
28.10.2008 15:02
Bitte antworten an


TSO REXX Discussion List <TSO-...@VM.MARIST.EDU>


An
TSO-...@VM.MARIST.EDU
Kopie

Thema


[TSO-REXX] Issuing z/OS Unix commands from REXX


VERLAGSGRUPPE WELTBILD GMBH
Sitz der Gesellschaft: Augsburg
Handelsregister Augsburg HRB 6035
Ust-ID-Nr: DE 127501299

Geschäftsführung:
Carel Halff (Vorsitzender), Dr. Klaus Driever, Werner Ortner, Herbert Zoch

Vorsitzender des Aufsichtsrates:
Dr. Klaus Donaubauer

Grant Ward Able

unread,
Oct 29, 2008, 7:45:21 AM10/29/08
to
Rich, you can use something like the sample below. It ***IS*** run in a
TSO environment. And it is in the manual I pointed you to - see
"Chapter 5. z/OS UNIX REXX functions"

/* REXX */
CALL BPXWUNIX 'RM /U/XXFS/TESTDIR/*.*',,STDOUT.,STDERR.
say "stdout"
do i=1 to stdout.0
say stdout.i
end
say "stderr"
do i=1 to stderr.0
say stderr.i
end
say "end of output"

--
Regards - Grant
=====================================
Note: Any opinion expressed is my own


Rich Smrcina <rsmr...@WI.RR.COM>
Sent by: TSO REXX Discussion List <TSO-...@VM.MARIST.EDU>
28/10/2008 14:36
Please respond to


TSO REXX Discussion List <TSO-...@VM.MARIST.EDU>


To
TSO-...@VM.MARIST.EDU
cc

Subject
Re: [TSO-REXX] Issuing z/OS Unix commands from REXX

-----------------------------------------


________________________________________________________
DTCC DISCLAIMER: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error, please notify us immediately and delete the email and any
attachments from your system. The recipient should check this email
and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted
by this email.

----------------------------------------------------------------------

Rich Smrcina

unread,
Oct 29, 2008, 7:54:29 AM10/29/08
to
Grant Ward Able wrote:
> Rich, you can use something like the sample below. It ***IS*** run in a
> TSO environment. And it is in the manual I pointed you to - see
> "Chapter 5. z/OS UNIX REXX functions"
>
> /* REXX */
> CALL BPXWUNIX 'RM /U/XXFS/TESTDIR/*.*',,STDOUT.,STDERR.
> say "stdout"
> do i=1 to stdout.0
> say stdout.i
> end
> say "stderr"
> do i=1 to stderr.0
> say stderr.i
> end
> say "end of output"
>

That's exactly what I'm looking for. Thanks for the clarification.

0 new messages