Browse Prior Art Database

A method for reading OE information in REXX/MVS

IP.com Disclosure Number: IPCOM000015426D
Original Publication Date: 2002-Apr-15
Included in the Prior Art Database: 2003-Jun-20
Document File: 1 page(s) / 42K

Publishing Venue

IBM

Abstract

An application programming technique for MVS (z/OS) is described which solves the problem of executing an Open Edition (Unix) Command within a TSO Batch (in MVS or z/OS) environment and putting the results into a REXX Stem. variable for subsequent processing. TSO and OE provide a program called BPXBATCH which allows OE operations to be issued from within a MVS environment, the results of which are sent to stdout and stdin files. These files reside within the OE HFS system. Consequently, these have to be processed in order to extract the info to be placed within REXX variables. The interesting point is that both stdout and stderr have to be read as some commands write info to either/both destinations. The programming steps are: Stack definitions for stdin, stdout stderr DDnames

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 89% of the total text.

Page 1 of 1

A method for reading OE information in REXX/MVS

An application programming technique for MVS (z/OS) is described which solves the problem of executing an Open Edition (Unix) Command within a TSO Batch (in MVS or z/OS) environment and putting the results into a REXX Stem. variable for subsequent processing.

     TSO and OE provide a program called BPXBATCH which allows OE operations to be issued from within a MVS environment, the results of which are sent to stdout and stdin files. These files reside within the OE HFS system. Consequently, these have to be processed in order to extract the info to be placed within REXX variables. The interesting point is that both stdout and stderr have to be read as some commands write info to either/both destinations.

The programming steps are:

Stack definitions for stdin, stdout & stderr DDnames

Generate temporary hash names for temporary HFS files

Allocate a temporary and empty file for DDnames STDIN,STDOUT &STDERR in

the /tmp HFS directory Run BPXBATCH with the relevant OE command

Use pipe facilities to read the OE STDOUT and STDERR files and place into REXX

local variables Create a stem variable called oe. and copy as components oe.out.0..oe.out.n where

each component is the STDOUT local variable line Do the same for oe.err.0 ....oe.err.n

Free the three DDNames (thus deleting the associated temporary files)

Unstack the saved DDname definitions.


1.


2.


3.


4.


5.


6.


7.


8.


9.

The application problems thus solved are:

The stacking and...