Discussion:
[hercules-os380] piping
kerravon86@yahoo.com.au [hercules-os380]
2018-06-15 22:50:26 UTC
Permalink
From TSO I would like to be able to go:

proga | progb

and have the output of proga piped to the
input of progb.

The way I was thinking this could work is that
proga could check its command arguments
and see the "|" and instead of using PUTLINE
for stdout it would instead direct the output
to a temp file.

Then when it calls progb it would provide a
DD override list for just SYSIN, and progb
would respect that and open the given
DD name instead of using GETLINE.

For this to work, it would require proga to
start progb, and even though progb is a
flexible TSO CP, it should also be flexible
enough to accept a DD override list. I am
not sure whether ATTACH can start
progb from the TSO environment with a
DD override list. I would like progb to still
use PUTLINE for its output, as there
would be no override for SYSPRINT in
the above scenario, only SYSIN.

Any idea whether this is feasible?

Thanks. Paul.
kerravon86@yahoo.com.au [hercules-os380]
2018-06-15 22:59:47 UTC
Permalink
And another question.

Is there a facility to get a temporary dataset
allocated, and preferably get a system-generated
DD name too.

Currently when I dynamically allocate files
they are given DD names of PDPxxxHD,
but that will cause clashes and I don't
know how to overcome that.

Thanks. Paul.
'Hamilton, Robert' rhamilton@cas.org [hercules-os380]
2018-06-18 17:49:18 UTC
Permalink
There is a PIPE tool; not enough people have requested that it be made available generally in TSO. It was written in CMS, and has been ported to run in REXX procedures in Netview, but to my knowledge, isn’t yet available for use either in REXX or at the command level in TSO. An RFE might be available, but if not, it would be worth it to have the current PIPE tool, and the ability to add pipe stages as easily as they do in CMS, made available for TSO.

R;



Rob Hamilton
Infrastructure Engineer
Chemical Abstracts Service

From: hercules-***@yahoogroups.com [mailto:hercules-***@yahoogroups.com]
Sent: Friday, June 15, 2018 6:50 PM
To: hercules-***@yahoogroups.com
Subject: [hercules-os380] piping



From TSO I would like to be able to go:

proga | progb

and have the output of proga piped to the
input of progb.

The way I was thinking this could work is that
proga could check its command arguments
and see the "|" and instead of using PUTLINE
for stdout it would instead direct the output
to a temp file.

Then when it calls progb it would provide a
DD override list for just SYSIN, and progb
would respect that and open the given
DD name instead of using GETLINE.

For this to work, it would require proga to
start progb, and even though progb is a
flexible TSO CP, it should also be flexible
enough to accept a DD override list. I am
not sure whether ATTACH can start
progb from the TSO environment with a
DD override list. I would like progb to still
use PUTLINE for its output, as there
would be no override for SYSPRINT in
the above scenario, only SYSIN.

Any idea whether this is feasible?

Thanks. Paul.


Confidentiality Notice: This electronic message transmission, including any attachment(s), may contain confidential, proprietary, or privileged information from CAS, a division of the American Chemical Society ("ACS"). If you have received this transmission in error, be advised that any disclosure, copying, distribution, or use of the contents of this information is strictly prohibited. Please destroy all copies of the message and contact the sender immediately by either replying to this message or calling 614-447-3600.
Loading...