Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
IBM Utilties
Overview
IBM Utilties
IEFBR14 IEBGENER
-> CREATE A DATASET
IEBCOPY
SORT IDCAMS
-> COPY DATASET FROM A PDS TO PDS OR MEMBER -> SORT DATA IN ASCENDING/DESCENDING ORDER -> CREATE GDG OR VSAM
IEBGENER
Expand an existing Partitioned dataset by creating members and merging them into existing datasets
IEBGENER JCL
//JOB Card..
//STEP
//SYSPRINT //SYSUT1 //SYSUT2 //SYSIN
EXEC
DD DD DD DD
PGM=IEBGENER
<Specify dataset for messages> <Specify input dataset> <Specify output dataset> <Specify control dataset>
SPOOL Message
IEBCOMPR
oVERVIEW
IEBCOMPR Utility
The IEBCOMPR utility provides the ability to verify that the contents of two datasets are identical. The datasets to be compared may be Physical sequential (PS) Partitioned (PO) organization. Four DD cards are required: The datasets to be compared are specified with the SYSUT1 and SYSUT2 DD cards. Output produced by the utility is written to the SYSPRINT DD card Utility control statements are read from the SYSIN DD card. // JOB CARD STATEMENT
//STEP1 EXEC PGM=IEBCOMPR //SYSPRINT DD SYSOUT= * //SYSUT1 DD DSN=DATASET1,UNIT=SYSDA, // VOL=SER=LEM001, DISP=SHR
SPOOL Message
IEBCOPY
Overview
IEBCOPY :-
IEBCOPY Utility
SPOOL Message
Overview
SELECT MEMBERS
SORT Utility
Overview
SORT
Can reformat output file records after sorting Merges two or more file into a single file
SORT JCL
//JOB CARD. //STEPNAME //STEPLIB //SYSOUT DD <Specify JOB Card details here> EXEC DD PGM=SORT <Specify library containing SORT program here>
write messages as it executes> //SORTIN //SORTWKnn //SORTOUT //SYSIN or DD DD DD DD <Specify the SORT INPUT dataset here> <Specify the SORT temporary Work storage dataset here> <Specify the SORT OUTPUT dataset here> <Specify SORT control statements here either as instream data within a dataset to control the way sorting has to be done>
SORT FIELD=(<start-pos>,<length-in-bytes>,<field-format>,<sort-sequence>)
<start-pos>, specifies starting position of field on which sorting is to be done <length-in-bytes>, specifies length of sort field in bytes <field-format>, specifies data format of the sort field. Field formats are
CH for EBCDIC character sequence AC for ASCII character sequence BI for Binary sequence ZD for Zoned Decimal PD for Packed Decimal
Input File
SORT UTILITY
SPOOL MESSAGE
SORT Utility
MERGE
Overview
Merge
This process takes records from up to 16 sorted data sets and combines them in a single sorted output data set. The merge control statement format is similar to that of the sort. Input data sets must already be sorted in the same sequence.
//STEP1
EXEC PGM=SORT
//SYSOUT DD SYSOUT=* //SORTIN DD DSN=MTPL.SEQ1,DISP=OLD //SORTIN2 DD DSN=MTPL.SEQ2,DISP=OLD //SORTOUT DD DSN=MTPL.SEQ3,DISP=OLD //SYSIN /* DD * MERGE FIELDS =(21,2,CH,A)
INPUT FILE 1
INPUT FILE 2
MERGE
JCL DAY 4
Procedures in JCL
oVERVIEW
Procedures
Instream Procedures
Coded within the input stream of the JOB Can be invoked more than once within the JOB Starts with a PROC statement and ends with a PEND statement Formats for invoking the PROC are:
Symbolic Parameters
Allows same JCL procedure to be used with different parameters Very often used in situations where same JCL is used by different programmers with different parameters to access different datasets
Instream procedure
SPOOL MESSAGE
OUTPUT
Cataloged Procedure
Consists of a set of JCL statements that are grouped together, given a name and cataloged as a member of a Partitioned dataset
Cataloged Procedure
Library to search the cataloged statements is specified through the JCLLIB operator One or more libraries can be specified in the JCLLIB
In the visual, the procedure named SAMPLE is invoked. It exists as a member in the Partitioned dataset P390B97.PROCLIB that is specified in the JCLLIB
CATALOG PROCEDURE
SPOOL MESSAGE
OUTPUT
IDCAMS Utility
Overview
IDCAMS Utility
Utiltiy is used for Creation
What is GDG
A Generation Data Group (GDG) consists of like-named data sets that are chronologically or functionally related. A data set in a GDG is called a generation.
GDG
There are five control statement parameters which are used in creating a GDG base catalog entry. They are:
LIMIT
The model DSCB (//DSCB in the example above) ensures that the same DCB and EXPDT information is used to create all generations. This ensures greater consistency among generations.
The model DSCB must be allocated with Zero space, and it cannot be cataloged.
The model DSCB must also lie on the same volume where the base catalog entry is cataloged.
DEFINE GDG
OUTPUT
Overview
INPUT FILE
GDG VERSION
IEBGENER
OUTPUT FILE
IBM does not use the V00 or Version number. The version number is set to V00 with the first generation. If a generation is damaged and needs to be replaced, an installation can code the absolute name with a new version number, to replace the damaged generation, such as //INDD DD DSN=NAME.GDG.G0052V00,DISP=OLD
//OUTDD
DD DSN=NAME.GDG.G0052V01,DISP=(,CATLG)
Example
OUTPUT
Example
There are five control statement parameters which are used in creating a GDG base catalog entry. They are:
LIMIT
EMPTY When limit is exceeded, uncatalog all generations. NOEMPTY SCRATCH When limit is exceeded, uncatalog oldest entry only Delete any uncataloged generation.
NOSCRATCH
GDG CREATION
INPUT DATASET
REPRO COMMAND
OUTPUT DATASET
DELETE GDG
GDG VERSION
SPOOL MESSAGE
END