Skip to main content

 
IBM Systems  > Mainframe servers  > Operating systems  > z/VSE  > 

Downloads

  
Connectors Tools Samples

grey_rule.gif
General samples
REXX samples
POWER samples
LE Samples
Sample code from customers
Terms and conditions
gray_dotted_line.gif


General samples
VSE User Examples (1.2MB, ZIP)
Originally part of the VSE Documentation CD-ROM/DVD


REXX samples
REXX/VSE Introduction (51KB)
Bernd Dowedeit, REXX/VSE Development, IBM
REXX/VSE Enhancements (191KB)
Invoking REXX from Cobol, C, and PLI (34KB)
These sample demonstrates basics for invoking a REXX function from higher level languages like Cobol, C, and PLI. These samples make either use of ARXJCL or ARXEXEC to call REXX from a non-REXX program.
Writing an external REXX function: REXXFUNC and REXXFUN2.
These samples demonstrates basics for coding of an external function in REXX. Besides producing a function result, REXXFUNC demonstrates usage of function parameters, and REXXFUN2 demonstrates setting of REXX variables using the Variable Pool Access Interface ARXEXCOM.
ARXOCSRV.ZIP - Operator Communication Exit to run REXX procedures (zip, 6KB)
This operator communication exit allows to start REXX programs from the console using the AR command "MSG pid". Every invoked REXX program runs in its own subtask. Since a REXX program is executed within a subtask, there exist some restrictions for the allowed REXX/VSE statements (at least ADDRESS JCL commands and the functions REXXIPT and OPERMSG cannot be used).
REXX/VSE VSAMIO Samples (zip, 15KB)
Demonstrates the usage of the VSAMIO command.
Sample SCANVSAM.ZIP (zip, 5KB)
Scans VSAM files for a string.
Sample SCANSLIB.ZIP (zip, 16KB)
Scans VSE library members for a string.
REXX/VSE Socket Samples (zip, 22KB)
Several REXX Socket programs.
Article about REXX/VSE Socket programming (120KB)
From the VSE/ESA Software Newsletter, First/Second Quarter, 2000 . It contains an introduction into Socket Programming together with code samples demonstrating usage of the SOCKET function.
Accesing POWER queue entries (txt, 6KB)
REXX program to copy a POWER queue entry in LST or PUN queue.
REXX/VSE Automated Console (zip, 269KB)
Bernd Dowedeit, REXX/VSE Development, IBM
Sample SORTMULT.ZIP (zip, 2KB)
Sorts a stem according to multiple zone definitions in ascending or descending order.


Sample REXX code coming with the VSE system
Some sample REXX code comes already with the system. Among them are sample programs to manage VSE/POWER jobs (REXXJMGR, REXXWAIT), and to provide an interactive REXX prompter (REXXTRY). They are shipped within sublibrary PRD1.BASE. An overview of these programs is given in 'Automated Operation Demos' (Examples) within Chapter 14 of the  REXX/VSE Reference Manual.

The REXX console program to act upon certain messages displayed at the console is called REXXCO. It is described in subchapter REXX Console Application Framework of Chapter 14.
IESWAITR.PROC in IJSYSRS.SYSLIB synchronizes startup of CICS-, TCP/IP- and other partitions according to console messages and open reply-ids.
REXXPRTL.PROC in IJSYSRS.SYSLIB together with skeletons SKRXPRT* in ICCF-library 59 can be used to manage the hardcopy file (since VSE/ESA 2.6). REXXPRTL checks whether message 0D20E HARD COPY FILE SHOULD BE PRINTED has appeared at the console since its previous execution. If yes, a PRINTLOG-job is automatically started.
DMPMGR.PROC in IJSYSRS.SYSLIB together with skeleton SKDMPMGR in ICCF-library 59 can be used to manage the dump file (since VSE/ESA 2.6). DMPMGR determines the current size of the dump file. If the size has reached a certain limit, appropriate actions are started.
Skeletons SKSECTX* in ICCF-library 59 are provided for migration from CICS/VSE to CICS/TS. They create security definitions for CICS/TS transactions based on either the output of the CICS/VSE Security Migration Aid, on macro DFHPCT.A, or based on a library member containing CICS/VSE DFHCSDUP definitions. These REXX migration programs are described in chapter VSE/ESA 2.4/2.5 Security of the Hints and Tips for VSE/ESA.


Customer and Vendor REXX samples:
Disclaimer: IBM does not make any representations or endorsement of any of the products or services listed here which are provided by non-IBM sources. That information was provided by the named source. In any event, IBM shall not incur any liability by listing the following information.

Samples from Rich Smrcina - RSMRCINA.ZIP (zip, 23KB)
  • POWERCMD - issue VSE/POWER commands from a batch job
  • CICSFILE - enable/open or close a CICS file from a batch job
  • COPYRPT - copy VSE/POWER LST qeue entries from a batch job
  • RXLSTCAT - execute the IDCAMS LSTCAT function on a VSAM catalog and reformat the listing.
Sample REXXFUNC.ZIP (zip, 11KB)
Written by Pat Talley. Demonstrates how to include self-written functions into REXX/VSE.



Back to top



POWER samples
Job Exit sample program (txt, 25KB)
Network Receiver exit routine (txt, 48KB)
Includes a section to locate OPTU (Optional Parameter Text Unit) in NJE Dataset Header record.
Output Exit sample program (txt, 31KB)
Network transmitter exit routine (txt, 55KB)
Spool-Access Support sample program PWRSASEX  (txt, 126KB)


Back to top



LE samples
Coding Techniques for Mixed Language Applications under LE/VSE (involving Assembler) (143KB)
Sample Exit to force LE/CICS wide option settings (46KB)
Sample Exit to use JCL UPSI switches with COBOL/VSE and LE/VSE (30KB)
JDisplay AR Sample (11KB)
JRun_LEVSE_Samples tool


Back to top



Sample code from IBM and customers
Disclaimer: IBM does not make any representations or endorsement of any of the products or services listed here which are provided by non-IBM sources. That information was provided by the named source. In any event, IBM shall not incur any liability by listing the following information.

COBOL socket programming example (zip, 10KB)
This ZIP archive contains the source files for the article on "LE/VSE Socket Programming" in Issue 16 of the VSE/ESA  Newsletter.
CICS Error Recovery Program (zip, 15KB)
Two examples from Robert Botsis and Tom Cluster
Display PUB (zip, 4KB)
Batch program for displaying device type codes of the PUB table.
Ron Campbell
Four REXX/VSE procedures (zip, 23KB)
Rich Smrcina, Grede Foundries, Milwaukee
· POWERCMD, issue VSE/POWER commands from a batch job.
· CICSFILE, enable/open or close a CICS file from a batch job.
· COPYRPT, copy VSE/POWER LST queue entries from a batch job.
· RXLSTCAT, execute the IDCAMS LSTCAT function on a VSAM catalog and reformat the listing.
Host Transfer File batch utility (zip, 122KB)
Klaus-Dieter Wacker, VSE Development, IBM
Documentation (PostScript and flat files) included
PL/I CPI-C programming interface (via APPCCMD calls) (zip, 414KB)
Neale Ferguson, New South Wales, Australia
Retrieve the value of a // SETPARM statement or simulate the setting of a // SETPARM statement (zip, 5KB)
Robert Botsis
REXX/VSE program that scans VSE library members for a string (zip, 16KB)
Gerard Martinelli, IBM France
Sample source code for creating REXX function (zip, 11KB)
Pat Talley
Referred to in Issue 18 of the  VSE/ESA Newsletter.
Send commands from applications to VSE/POWER for execution; get and/or put to POWER queues (zip, 67KB)
Robert Botsis
Source code and compile jobs for LE/VSE socket programming (zip, 10KB)
Ingo Adlung, VSE Development, IBM
Version of DFHPEP which sends error messages to system console or to an e-mail user (zip, 14KB)
Robert Botsis


Back to top



Terms and conditions for sample programs
DISCLAIMER OF WARRANTIES:
Permission is granted to copy this Tools or Sample code for internal use only, provided that this permission notice and warranty disclaimer appears in all copies.
THIS TOOLS OR SAMPLE CODE IS LICENSED TO YOU AS-IS.
IBM AND ITS SUPPLIERS AND LICENSORS DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, IN SUCH SAMPLE CODE, INCLUDING THE WARRANTY OF NON-INFRINGEMENT AND THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL IBM OR ITS LICENSORS OR SUPPLIERS BE LIABLE FOR ANY DAMAGES ARISING OUT OF THE USE OF OR INABILITY TO USE THE TOOLS OR SAMPLE CODE, DISTRIBUTION OF THE TOOLS OR SAMPLE CODE, OR COMBINATION OF THE TOOLS OR SAMPLE CODE WITH ANY OTHER CODE. IN NO EVENT SHALL IBM OR ITS LICENSORS AND SUPPLIERS BE LIABLE FOR ANY LOST REVENUE, LOST PROFITS OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, EVEN IF IBM OR ITS LICENSORS OR SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


Back to top





 
We're here to help

Easy ways to get the answers you need.

  E-mail us E-mail us

Stay informed
Get the latest news about z/VSE through Twitter  

Downloads
Get Java from IBM developerworks 
Order PTFs 

Acrobat
Get Adobe® Reader®