Professional Documents
Culture Documents
Overview
IBM Utilties
Overview
IBM Utilties
partitioned dataset
sequential dataset
//JOB Card…..
oVERVIEW
IEBCOMPR Utility
Overview
IEBCOPY :-
Overview
SELECT MEMBERS
SORT Utility
Overview
SORT
sequence
//SYSOUT DD <Specify the SORT Message dataset here for SORT utility to
write messages as it executes>
Sort statements are coded through SYSIN which can be instream or cataloged
Dataset specified in SYSIN can be either a PS or a PDS
SORT FIELD statement to be preceded by at least one blank space
Format is
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
<sort-sequence> is either “A” or “D” indicating Ascending or Descending
Input File
Output File BEFORE Executing Utility
SORT UTILITY
SPOOL MESSAGE
OUTPUT FILE GNERATED AFTER RUNNING
SORT UTILITY
Remove Duplicate Rows
While Sorting Data using
SORT UTILITY
INPUT DATA WITH DUPLICATE ROWS
OUTPUT FILE BEFORE RUNNING
Utility
SORT Utility
Output file after running Utility
MERGE
Overview
Merge
oVERVIEW
Procedures
Abbreviated as PROC
Two types
Instream Procedures
Cataloged Procedures
Instream Procedures
EXEC <procname>
EXEC PROC=<procname>
<procname> must be 1 to 8 characters long
Symbolic
Parameters
Overview
IDCAMS Utility
VSAM Dataset
NON VSAM
GDG (Generation Data Group )
What is GDG
There are five control statement parameters which are used in creating a GDG base catalog entry.
They are:
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
Example: Use IEBGENER
utility to copy data from
PS to GDG VERSION
Overview
INPUT FILE
GDG VERSION
IEBGENER
OUTPUT FILE
GDG- DSNAME specification (Continued)
The generation number starts with G0001 for the first generation and is incremented
by the value coded in the relative data set name.
For Example:
RELATIVE NAME ABSOLUTE NAME
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)
Creating New
Generation
Example
CREATING NEW GENERATION
OUTPUT
SCRATCH AND EMPTY
Option
Example
Parameters of DEFINE GDG
There are five control statement parameters which are used in creating a GDG base
catalog entry. They are: