Quellcode-Bibliothek
© Kompilation durch diese Firma
[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]
Datei:
jclprc01.htm
Sprache: HTML
|
|
products/sources/formale sprachen/JCL/jcl4/jclprc01.htm |
 |
<!DOCTYPE HTML PUBLIC "-//SimoTime//DTD HTML 4.0 Transitional//EN" "hmpro6.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Author" CONTENT="SimoTime Enterprises">
<META NAME="Generator" CONTENT="SimoTime Version 1.0">
<META NAME="KEYWORDS"
CONTENT="JCL,procedure,proc,procs,ibm,mainframe,express,sample,example,micro,focus">
<META NAME="description"
CONTENT="A quick overview of the use of JCL Procedures or PROCs.">
<TITLE>JCL Procedures or PROC's
P {FONT-FAMILY: Arial,Helvetica; FONT-SIZE: 12px}
H1 {FONT-FAMILY: TIMES NEW ROMAN; FONT-SIZE: 28px; color: navy}
H2 {FONT-FAMILY: TIMES NEW ROMAN; FONT-SIZE: 18px; color: navy}
H3 {FONT-FAMILY: TIMES NEW ROMAN; FONT-SIZE: 16px; color: navy}
TD {FONT-FAMILY: Arial,Helvetica; FONT-SIZE: 12px}
</STYLE>
</HEAD>
<BODY>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD WIDTH="20%" ALIGN="LEFT">
<A NAME="TOC" STYLE="font-size: 6pt"><IMG SRC="simotime.gif"
WIDTH="165" HEIGHT="55"> </A></TD>
<TD WIDTH="80%" ALIGN="LEFT">
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0"
ALIGN="RIGHT" BORDER="0">
<TR>
<TD ALIGN="RIGHT" NOWRAP="NOWRAP"><FONT
STYLE="font-size: 24pt; font-weight: bold; color: navy"> JCL Procedures or
PROC's |
</TR>
</TABLE></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD NOWRAP="NOWRAP"><FONT
STYLE="font-style: italic; font-size: 12pt; font-family: Arial; color: maroon; font-weight: bold; font-variant: normal">When
technology complements business </FONT></TD>
<TD ALIGN="RIGHT" NOWRAP="NOWRAP"><FONT
STYLE="font-size: 14pt; font-weight: normal; color: maroon; font-style: italic">Using
JCL PROC's
</TR>
</TABLE></TD>
</TR>
<TR>
<TD>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD STYLE="color: gray; font-size: 8pt"><FONT
STYLE="font-size: 12px; font-weight: normal; color: gray">Copyright ©
1987-2005 SimoTime Enterprises, LLC All Rights Reserved</FONT></TD>
<TD ALIGN="RIGHT" NOWRAP="NOWRAP">
<A HREF="http://www.simotime.com"
STYLE="font-size: 12px; font-weight: normal; color: blue"
ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">http://www.simotime.com </A></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE> <HR SIZE="4" COLOR="navy">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="2" CELLPADDING="0"
BGCOLOR="#FFFFC0">
<TR>
<TD WIDTH="5px"> </TD>
<TD>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD>
<A HREF="#Introduction" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-size: 14px; font-weight: bold; text-decoration: none">Introduction</A></TD>
<TD ALIGN="RIGHT"><FONT
STYLE="color: blue; font-size: 12px; text-decoration: none; font-style: italic">Version
03.05.15</FONT></TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<TD> </TD>
<TD>
<A HREF="#CreateMultiplePds"
ONMOUSEOVER="this.style.color='FF0000'" ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 14px; text-decoration: none; font-weight: bold">Creating
Multiple Partitioned Data Sets (PDS's)
</TR>
<TR>
<TD> </TD>
<TD>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="3%"> </TD>
<TD>
<A HREF="#JclWithInstreamProc" ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 12px; text-decoration: none">A JCL Member with
an Instream PROC</A></TD>
</TR>
<TR>
<TD> </TD>
<TD><A HREF="#CreateMultiplePdsJcl"
ONMOUSEOVER="this.style.color='FF0000'" ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 12px; text-decoration: none">The JCL Member to
Create Three Temporary PDS's
</TR>
<TR>
<TD> </TD>
<TD>
<A HREF="#CreateMultiplePdsProc" ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 12px; text-decoration: none">The PROC to Create
a PDS</A></TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<TD> </TD>
<TD>
<A HREF="#DeleteMultiplePds"
ONMOUSEOVER="this.style.color='FF0000'" ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 14px; text-decoration: none; font-weight: bold">Deleting
Multiple Partitioned Data Sets (PDS's)
</TR>
<TR>
<TD> </TD>
<TD>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="3%"> </TD>
<TD>
<A HREF="#DeleteMultiplePdsJCL" ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 12px; text-decoration: none">The JCL Member to
Delete Three Temporary PDS's
</TR>
<TR>
<TD> </TD>
<TD>
<A HREF="#DeleteMultiplePdsProc" ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'"
STYLE="color: blue; font-size: 12px; text-decoration: none">The PROC to Delete
a PDS</A></TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<TD> </TD>
<TD>
<A HREF="#Summary" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-size: 12pt; font-weight: bold; text-decoration: none">Summary</A></TD>
</TR>
<TR>
<TD> </TD>
<TD>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD WIDTH="3%" STYLE="font-size: 10pt"> </TD>
<TD>
<A HREF="#SoftwareAgreementDisclaimer" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-size: 12px; text-decoration: none">Software Agreement
and Disclaimer</A></TD>
</TR>
<TR>
<TD WIDTH="3%" STYLE="font-size: 10pt"> </TD>
<TD>
<A HREF="#SimilarPoints" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-size: 12px; text-decoration: none">Downloads and Links
to Similar Pages</A></TD>
</TR>
<TR>
<TD STYLE="font-size: 10pt"> </TD>
<TD>
<A HREF="#Comments" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-size: 12px; text-decoration: none">Comments or
Suggestions</A></TD>
</TR>
<TR>
<TD STYLE="font-size: 10pt"> </TD>
<TD>
<A HREF="#AboutSimoTime" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-size: 12px; text-decoration: none">About
SimoTime</A></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE> <HR SIZE="4" COLOR="navy">
<H1> <A NAME="Introduction">Introduction</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"> <BR>(<A
HREF="#CreateMultiplePds" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H1>
<P>JCL defines how a job is executed on the mainframe. A job may perform
many steps or execute many programs in order to produce the requested
information or output. If a segment of JCL is used repeatedly it may be coded
once as a PROC (or JCL Procedure) and then used by many different steps within
the job. There are two approaches to defining and using PROC's.
<P>The PROC may be defined within the job (<I>this is referred to as an
In-stream PROC</I>). If the segment of JCL code being defined as a PROC is
unique to a single job then this approach is a very good alternative. An
instream PROC should be defined first in the JCL before the EXEC statement that
will reference the PROC. An instream PROC must start with a PROC statement and
be terminated with a PEND statement. The PEND is not required if the PROC is
stored as a separate member in a library. </P>
<P>The PROC may be defined as a separate member and stored in a separate
library (i.e. PDS). If the segment of JCL code being defined as a PROC will be
used by different jobs then this approach should be used.</P>
<P>At execution time when an EXEC statement references a PROC the PROC
source code will be copied into the job and executed as if it is part of the
JCL.</P>
<P>If you store a PROC in a library (<I>i.e. Proc Library or ProcLib</I>)
the ProcLib must be known to the system. Most systems will search a list of
pre-defined ProcLibs to find a PROC. If a PROC is stored in a library that is
not in the pre-defined then the PROC will not be found. To specifiy additional
PROC libraries to be searched use the JCLLIB statement. This is explained in a
later section of this document.</P>
<P>For additional flexibility substitution parameters may be used to pass
different values to a PROC. This is explained in a later section of this
document.</P>
<H1> <A NAME="CreateMultiplePds">Creating Multiple Partitioned Data Sets
(PDS's)
STYLE="color: gray; font-size: 8pt; font-weight: normal"> <BR> (<A
HREF="#JclWithInstreamProc" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#Introduction" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H1>
<P>This example will demonstrate the use of JCL PROCs to create three
Partitioned Data Sets (PDS's). The first example will use an instream PROC and
the second example will use a JCL member with a separate PROC member. The use
of a substitution parameter will also be explained.</P>
<P>The PROC will contain the source code to create (or delete) a PDS using
the DSN specified in the substitution parameter ($DSNAME) provided by the JCL
member. The JCL member will contain the code to set a substitution parameter
with a Data Set Name (or PDS name for this example). </P>
<H2> <A NAME="JclWithInstreamProc">A JCL Member with an Instream
PROC</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#CreateMultiplePdsJcl"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Next</A>) (<A HREF="#CreateMultiplePds"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Previous</A>) (<A HREF="#TOC"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color
: gray">Table-of-Contents)
<P>The following is the source code for a JCL member with an instream PROC.
Notice the instream PROC is defined before the first step.</P>
<PRE>
<FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//PDSCRTJ4 JOB SIMOTIME,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//* *******************************************************************
//* This program is provided by: *
//* SimoTime Enterprises, LLC *
//* (C) Copyright 1987-2003 All Rights Reserved *
//* *
//* Web Site URL: http://www.simotime.com *
//* e-mail: helpdesk@simotime.com *
//* *******************************************************************
//*
//* Subject: Define a PDS using the IEFBR14 with a DD Statement
//* Author: SimoTime Enterprises
//* Date: January 1,1998
//*
//* The JCL member executes the instream PROC called PDSCRTP3 and
//* passes a fully qualified data set name (DSN) via the symbolic name
//* called DSNAME and referenced in the PROC as &DSNAME.;//*
//*********************************************************************
//* The instream PROC for creating a PDS. The Data Set Name (&DSNAME)
//* is provided by the job step that EXECs the PROC.
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'><B>//PDSCRTP3 PROC</B>
//PDSCRTS1 EXEC PGM=IEFBR14
//TEMPLIB1 DD DISP=(NEW,CATLG),DSN=&DSNAME,
// STORCLAS=MFI,
// SPACE=(TRK,(45,15,50)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO)
<B>// PEND
</B></FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 1 of 3 Create a PDS using SET and EXEC
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'><B>// SET DSNAME=SIMOTIME.DEMO.TEMP01</B>
//STEPJ41 EXEC PDSCRTP3
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 2 of 3 Create a PDS using EXEC and DSNAME substitution
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//STEPJ42 EXEC PDSCRTP3<B>,DSNAME=SIMOTIME.DEMO.TEMP02</B>
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 3 of 3 Create a PDS using EXEC and DSNAME substitution
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//STEPJ43 EXEC PDSCRTP3<B>,DSNAME=SIMOTIME.DEMO.TEMP03</B>
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
</FONT></PRE>
<P>In the preceding example the PROC starts with the PROC statement and
ends with the PEND statement. </P>
<PRE><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'><B>//PDSCRTP3 PROC</B>
...
...
<B>// PEND
</B></FONT></PRE>
<P>As stated earlier the PEND statement is required for an instream PROC
but is optional for a separately defined PROC. Step 1 uses a SET statement to
set a value for the DSNAME substitution parameter. Steps 2 and 3 define the
DSNAME substitition parameter as part of the EXEC statement. The PROC accesses
the substitution parameter by using the ampersand as a prefix or &DSNAME.
In this example by using the &DSNAME substitution parameter the PROC may be
used to create multiple PDS's with different names.
<H2> <A NAME="CreateMultiplePdsJcl">The JCL Member to Create Three
PDS's
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#CreateMultiplePdsProc" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#JclWithInstreamProc" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color
: gray">Table-of-Contents)
<P>This example will create three PDS's using a JCL member and a separate
PROC member stored in a separate PDS. Notice the use of the JCLLIB statement to
tell the system where to find the PROC.</P>
<PRE>
<FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//PDSCRTJ3 JOB SIMOTIME,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//* *******************************************************************
//* This program is provided by: *
//* SimoTime Enterprises, LLC *
//* (C) Copyright 1987-2003 All Rights Reserved *
//* *
//* Web Site URL: http://www.simotime.com *
//* e-mail: helpdesk@simotime.com *
//* *******************************************************************
//*
//* Subject: Define a PDS using the IEFBR14 with a DD Statement
//* Author: SimoTime Enterprises
//* Date: January 1,1998
//*
//* The JCLLIB tells the mainframe where to look for PROCs.
//*
//* The JCL member executes the PROC called PDSCRTP3 and passes a
//* fully qualified data set name (DSN) via the symbolic name
//* called DSNAME and referenced in the PROC as &DSNAME.
//*
//*********************************************************************
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'><B>//PROCLIB JCLLIB ORDER=SIMOTIME.DEMO.PROCLIB1</B>
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 1 of 3 Create a PDS using SET and EXEC
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>// SET DSNAME=SIMOTIME.DEMO.TEMP01
//STEPJ01 EXEC PDSCRTP3
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 2 of 3 Create a PDS using EXEC and DSNAME substitution
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//STEPJ02 EXEC PDSCRTP3,DSNAME=SIMOTIME.DEMO.TEMP02
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 3 of 3 Create a PDS using EXEC and DSNAME substitution
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//STEPJ03 EXEC PDSCRTP3,DSNAME=SIMOTIME.DEMO.TEMP03
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
</FONT></PRE>
<H2> <A
NAME="CreateMultiplePdsProc">The PROC to Create a PDS</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#DeleteMultiplePds" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#CreateMultiplePdsJcl"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Previous</A>) (<A HREF="#TOC"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color
: gray">Table-of-Contents)
<P>The following is the PROC that will be used to create a PDS. Notice the
PROC and PEND statements are not required.</P>
<PRE>
<FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//* *******************************************************************
//* This program is provided by: *
//* SimoTime Enterprises, LLC *
//* (C) Copyright 1987-2003 All Rights Reserved *
//* *
//* Web Site URL: http://www.simotime.com *
//* e-mail: helpdesk@simotime.com *
//* *******************************************************************
//*
//* Subject: Define a PDS using the IEFBR14 with a DD Statement
//* Author: SimoTime Enterprises
//* Date: January 1,1998
//*
//* This PROC needs the &DSNAME defined by the calling JCL member...
//* // SET DSNAME=AAAA.BBBB.CCCC
//* // EXEC PDSCRTP3
//*
//* Also, the JCLLIB statement may be required and placed after
//* the JOB card.
//* //PROCLIB JCLLIB ORDER=SIMOTIME.DEMO.PROCLIB1
//*
//* Technically speaking, IEFBR14 is not a utility program because it
//* does nothing. The name is derived from the fact that it contains
//* two assembler language instruction. The first instruction clears
//* register 15 (which sets the return code to zero) and the second
//* instruction is a BR 14 which performs an immediate return to the
//* operating system.
//*
//* IEFBR14's only purpose is to help meet the requirements that a
//* job must have at least one EXEC statement. The real purpose is to
//* allow the disposition of the DD statement to occur.
//*
//* For example, the following DISP=(NEW,CATLG) will cause the
//* specified DSN (i.e. PDS) to be allocated.
//* Note: a PDS may also be referred to as a library.
//*********************************************************************
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//PDSCRTS1 EXEC PGM=IEFBR14
//TEMPLIB1 DD DISP=(NEW,CATLG),DSN=&DSNAME,
// STORCLAS=MFI,
// SPACE=(TRK,(45,15,50)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO)
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
</FONT></PRE>
<H1> <A NAME="DeleteMultiplePds">Deleting Multiple Partitioned Data Sets
(PDS's)
STYLE="color: gray; font-size: 8pt; font-weight: normal"> <BR> (<A
HREF="#DeleteMultiplePdsJCL"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Next</A>) (<A HREF="#CreateMultiplePdsProc"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Previous</A>) (<A HREF="#TOC"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H1>
<P>This section provides an example of how to use a PROC to delete a PDS.
Please note, if the PDS is deleted all the members in the PDS are also
deleted.</P>
<H2> <A NAME="DeleteMultiplePdsJCL">The JCL Member to Delete Three
PDS's
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#DeleteMultiplePdsProc" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#DeleteMultiplePds" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color
: gray">Table-of-Contents)
<P>The following is the JCL memebr that will use a PROC to delete the PDS's
created in the Create Multiple PDS's example.
<PRE>
<FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//PDSDELJ3 JOB SIMOTIME,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//* *******************************************************************
//* This program is provided by: *
//* SimoTime Enterprises, LLC *
//* (C) Copyright 1987-2003 All Rights Reserved *
//* *
//* Web Site URL: http://www.simotime.com *
//* e-mail: helpdesk@simotime.com *
//* *******************************************************************
//*
//* Subject: Delete Temporary PDS's with IEFBR14 and a DD Statement
//* Author: SimoTime Enterprises
//* Date: January 1,1998
//*
//* The JCLLIB tells the mainframe where to look for PROCs.
//*
//* The JCL member executes the PROC called PDSDELP3 and passes a
//* fully qualified data set name (DSN) via the symbolic name
//* called DSNAME and referenced in the PROC as &DSNAME.;//*
//*********************************************************************
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'><B>//PROCLIB JCLLIB ORDER=SIMOTIME.DEMO.PROCLIB1</B>
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 1 of 3 Delete a PDS using SET and EXEC
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>// SET DSNAME=SIMOTIME.DEMO.TEMP01
//STEPJ01 EXEC PDSDELP3
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 2 of 3 Delete a PDS using EXEC and DSNAME substitution
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//STEPJ02 EXEC PDSDELP3,DSNAME=SIMOTIME.DEMO.TEMP02
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
//* *******************************************************************
//* Step 3 of 3 Delete a PDS using EXEC and DSNAME substitution
//*
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//STEPJ03 EXEC PDSDELP3,DSNAME=SIMOTIME.DEMO.TEMP03
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
</FONT></PRE>
<H2> <A
NAME="DeleteMultiplePdsProc">The PROC to Delete a PDS</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#Summary" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#DeleteMultiplePdsJCL"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Previous</A>) (<A HREF="#TOC"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color
: gray">Table-of-Contents)
<P>The following is the PROC that will delete a PDS based on the value of
the substitution parameter (&DSNAME) provided by the JCL member.</P>
<PRE>
<FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//* *******************************************************************
//* This program is provided by: *
//* SimoTime Enterprises, LLC *
//* (C) Copyright 1987-2003 All Rights Reserved *
//* *
//* Web Site URL: http://www.simotime.com *
//* e-mail: helpdesk@simotime.com *
//* *******************************************************************
//*
//* Subject: Delete Temporary PDS's with IEFBR14 and a DD Statement
//* Author: SimoTime Enterprises
//* Date: January 1,1998
//*
//* This PROC needs the &DSNAME defined by the calling JCL member...
//* // SET DSNAME=AAAA.BBBB.CCCC
//* // EXEC PDSDELP3
//*
//* Also, the JCLLIB statement may be required and placed after
//* the JOB card.
//* //PROCLIB JCLLIB ORDER=SIMOTIME.DEMO.PROCLIB1
//*
//* Technically speaking, IEFBR14 is not a utility program because it
//* does nothing. The name is derived from the fact that it contains
//* two assembler language instruction. The first instruction clears
//* register 15 (which sets the return code to zero) and the second
//* instruction is a BR 14 which performs an immediate return to the
//* operating system.
//*
//* IEFBR14's only purpose is to help meet the requirements that a
//* job must have at least one EXEC statement. The real purpose is to
//* allow the disposition of the DD statement to occur.
//*
//* For example, the following DISP=(OLD,DELETE) will cause the
//* specified DSN (i.e. PDS) to be deleted.
//* Note: a PDS is also referred to as a library.
//*********************************************************************
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: navy'>//PDSDELS1 EXEC PGM=IEFBR14
//TEMPLIB1 DD DISP=(OLD,DELETE),DSN=&DSNAME,
// STORCLAS=MFI,
// SPACE=(TRK,(45,15,50)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO)
</FONT><FONT STYLE='font-size: 12px; font-family: "Courier New"; color: maroon'>//*
</FONT></PRE>
<H1> <A NAME="Summary">Summary</A>
<FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#SoftwareAgreementDisclaimer" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#DeleteMultiplePdsProc" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H1>
<P>The purpose of this document is to assist as a tutorial for new
programmers or as a quick reference for experienced programmers. In the world
of programming there are many ways to solve a problem. This suite of JCL
members and PROC's is provided as a possible approach to creating and deleting
multiple, temporary PDS's.
<H2> <A NAME="SoftwareAgreementDisclaimer" STYLE="color: navy">Software
Agreement and Disclaimer</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#SimilarPoints" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#Summary" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H2>
<P>Permission to use, copy, modify and distribute this software for any
non-commercial purpose and without fee is hereby granted, provided the SimoTime
copyright notice appear on all copies of the software. The SimoTime name or
Logo may not be used in any advertising or publicity pertaining to the use of
the software without the written permission of SimoTime Enterprises.</P>
<P>Permission to use, copy, modify and distribute this software for any
commercial purpose requires a fee to be paid to Simotime Enterprises. Once the
fee is received by SimoTime the latest version of the software will be
delivered and a license will be granted for use within an enterprise, provided
the SimoTime copyright notice appear on all copies of the software. The
SimoTime name or Logo may not be used in any advertising or publicity
pertaining to the use of the software without the written permission of
SimoTime Enterprises.</P>
<P>SimoTime Enterprises makes no warranty or representations about the
suitability of the software for any purpose. It is provided "AS IS" without any
express or implied warranty, including the implied warranties of
merchantability, fitness for a particular purpose and non-infringement.
SimoTime Enterprises shall not be liable for any direct, indirect, special or
consequential damages resulting from the loss of use, data or projects, whether
in an action of contract or tort, arising out of or in connection with the use
or performance of this software. </P>
<P> If you have any questions, suggestions or comments please call or send
an e-mail to:
<A HREF="mailto:helpdesk@simotime.com" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-family: Arial">helpdesk@simotime.com </A></P>
<H2> <A NAME="SimilarPoints" STYLE="color: navy">Downloads and Links to
Similar Pages</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A
HREF="#Comments" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#SoftwareAgreementDisclaimer" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H2>
<P>You may download this example at
<A HREF="http://www.simotime.com/sim4dzip.htm#COBOLBitManipulation"
TARGET="_blank" STYLE="color: blue" ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">http://www.simotime.com/sim4dzip.htm#COBOLBitManipulation</A>
as a Z-Pack. The Z-Packs provide individual programming examples, documentation
and test data files in a single package. The Z-Packs are usually in zip format
to reduce the amount of time to download. </P>
<P>Please view the complete list of SimoTime Z-Pack Examples at
<A HREF="http://www.simotime.com/sim4dzip.htm" TARGET="_blank"
STYLE="color: blue" ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">http://www.simotime.com/sim4dzip.htm</A>.
</P>
<P><FONT
STYLE="font-size: 12px; font-weight: normal; color: maroon"><B>Note</B>: <I>You
must be attached to the Internet to download a Z-Pack or view the
list.</I></FONT></P>
<P>The
<A HREF="cblhbx01.htm" TARGET="_blank" STYLE="color: blue"
ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">hexadecimal dump</A> of the
parameter-buffer uses the same technique as describe in another SimoTime
example that describes the dumping of a data string using COBOL. The name of
the member that does the actual hexadecimal dump is called SimoDUMP. A copy
file (PASSDUMP.CPY) is provided for defining the pass area.</P>
<P>The
<A HREF="simozaps.htm" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: blue"
TARGET="_blank">SimoZAPS Utility Program</A> has the capability of generating a
COBOL program that will do the conversion of sequential and VSAM (KSDS) files
between EBCDIC and ASCII. SimoZAPS can also read a sequential file in EBCDIC
format and create an ASCII/CRLF file or VSAM KSDS file in ASCII format. The
conversion tables may be viewed or modified to meet unique requirements. The
Hexcess/2 function provides the capability of viewing, finding or patching the
contents of a file in hexadecimal.</P>
<P>Check out
<A HREF="indexcbl.htm" TARGET="_blank" STYLE="color: blue"
ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">The COBOL Connection</A> for more
examples of mainframe COBOL coding techniques and sample code. </P>
<P>Check out
<A HREF="sim4lib1.htm" TARGET="_blank" STYLE="color: blue"
ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">The SimoTime Library</A> for a
wide range of topics for Programmers, Project Managers and Software
Developers.</P>
<P>To review all the information available on this site start at
<A HREF="http://www.simotime.com" TARGET="_blank" STYLE="color: blue"
ONMOUSEOVER="this.style.color='FF0000'"
ONMOUSEOUT="this.style.color='0000FF'">The SimoTime Home Page</A> .</P>
<H2> <A NAME="Comments" STYLE="color: navy">Comments or
Suggestions</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR> (<A
HREF="#AboutSimoTime" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Next</A>) (<A
HREF="#SimilarPoints" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'" STYLE="color: gray">Previous</A>) (<A
HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H2>
<P> If you have any questions, suggestions or comments please call or send
an e-mail to:
<A HREF="mailto:helpdesk@simotime.com" ONMOUSEOUT="this.style.color='0000FF'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue">helpdesk@simotime.com</A>.</P>
<H2> <A NAME="AboutSimoTime" STYLE="color: navy">About SimoTime
Enterprises, LLC</A><FONT FACE="Arial"
STYLE="color: gray; font-size: 8pt; font-weight: normal"><BR>(<A HREF="#TOC"
ONMOUSEOVER="this.style.color='FF0000'" ONMOUSEOUT="this.style.color='808080'"
STYLE="color: gray">Next</A>) (<A HREF="#Comments"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Previous</A>) (<A HREF="#TOC"
ONMOUSEOUT="this.style.color='808080'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: gray">Table-of-Contents</A>)</FONT></H2>
<P>Founded in 1987, SimoTime Enterprises is a privately owned, Limited
Liability Corporation located in Novato, California. We specialize in the
creation and deployment of business applications using new or existing
technologies and services. We have a team of individuals that understand the
broad range of technologies being used in today's environments. This includes
the smallest thin client using the Internet and the very large mainframe
systems. There is more to making the Internet work for your company's business
than just having a nice looking WEB site. It is about combining the latest
technologies and existing technologies with practical business experience. It's
about the business of doing business and looking good in the process. Quite
often, to reach larger markets or provide a higher level of service to existing
customers it requires the newer Internet technologies to work in a
complimentary manner with existing corporate mainframe systems. Whether you
want to use the Internet to expand into new market segments or as a delivery
vehicle for existing business functions simply give us a call or check the web
site at
<A HREF="http://www.simotime.com" TARGET="_blank"
ONMOUSEOUT="this.style.color='0000FF'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue">http://www.simotime.com</A>.</P><HR SIZE="2" COLOR="navy">
<TABLE BORDER="0" ALIGN="CENTER" CELLSPACING="1" CELLPADDING="1">
<TR>
<TD ALIGN="CENTER">
<A HREF="#TOC" ONMOUSEOUT="this.style.color='808080'"
ONMOUSEOVER="this.style.color='FF0000'"
STYLE="font-size: 12px; font-weight: normal; color: gray">Return-to-Top
</A></TD>
</TR>
<TR>
<TD ALIGN="CENTER"><FONT
STYLE="font-size: 12px; font-weight: normal; color: navy">Copyright ©
1987-2005<FONT STYLE="font-weight: bold"> SimoTime Enterprises, LLC
</FONT>All Rights Reserved</FONT></TD>
</TR>
<TR>
<TD ALIGN="CENTER"><FONT
STYLE="font-style: italic; font-size: 14px; font-family: Arial; color: maroon; font-weight: bold; font-variant: normal">When
technology complements business </FONT></TD>
</TR>
<TR>
<TD ALIGN="CENTER">
<A HREF="http://www.simotime.com" TARGET="_blank"
ONMOUSEOUT="this.style.color='0000FF'" ONMOUSEOVER="this.style.color='FF0000'"
STYLE="color: blue; font-family: Arial">http://www.simotime.com </A></TD>
</TR>
</TABLE>
<P> </P>
<P> </P> </BODY>
</HTML>
¤ Dauer der Verarbeitung: 0.29 Sekunden
(vorverarbeitet)
¤
Haftungshinweis
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.
|
|