jcl utilities iebcopy
TRANSCRIPT
IBM MAINFRAME JCL UTILITIES - IEBCOPY
JANAKI RAM SOMISETTY
JCL UTILITIES
Utility is a component that has specific purpose to be performed.
let understand an example
The function key in Window is F5 the purpose is to refresh the screen this is repeated numbers of times depending on the need of the use.
An utility can be reused so it is mentioned as Reusable number of times.
JCL UTILITIES
Three Types
Dataset System Access Method
JCL UTILITIES – DATSET UTILITIES
• There are four different operations can be performed using dataset utilities
• It Reorganize the data in dataset • It can change the attribute / function in the dataset• It can compare two datasets, it can be a PS/PDs• It can be manipulate data in dataset
• Now let see the different utilities• IEBCOPY,IEBGENER,IEFBR14
SYSTEM UTILITIES
• The three different operations system utility can perform are LIST/CHANGE(listing/changing) the information related to dataset
• Rename/Delete the dataset (either PS/PDs)• It can manage Catalogue information or Catalogue entries
in dataset
• Different type of utilities are• IEHLIST,IEHPROGM
SYSTEM UTILITIES
• This utility are used to perform an operation on VSAM Files
• VSAM file is know as virtual storage access method
• IDCAM is name of the utility
JCL UTILITIES – IEBCOPY
IEBCOPY Utility is used to copy members of PDS1 to another PDS2
Copy all members from one PDS1 to another PDS2
We can copy selected members from one PDS1 to another PDS2
We can exclude the members from one PDS1 to another PDS2
We can compress(compressing is nothing but we are going to free the unused space in that particular PDS so the memory is used for next user)
COPY ALL MEMBERS FROM PDS TO ANOTHER PDS
We have three DD statements D1,D2 & D3in INDD we have D1 and D2 is nothing but DD names of the input files in OUTDD we have D3 is nothing but DD name of output file
HOW TO COPY SELECTED MEMBERS
Here selecting particular members from input dataset to output dataset
HOW TO REPLACE AND RENAME
TEST1 ---- name of the member copied from input PDS these member will be renamed as TESTA and copied into output PDS and if you give R here is nothing but REPLACE
TEST3 --- name of the member copied from input PDS and we don't want to rename just we copied into output PDS with same name... if TEST3 already present in output file it just replaced and R here is nothing but REPLACE
HOW TO COMPRESS THE PDS FILE
We don't have output dataset in this JCL here we have only one datasetwhich is going act as input and output dataset, here it is going to compress the input dataset
AFTER SUBMITTING JOB - SPOOL
After submitting the JCL go to spool and select SYSPRINT here we have the output of these particular JCL
OUTPUT CAPTURE FROM SPOOL
COPY ALL MEMBERS
//SYSIN DD *COPY INDD=(D1,D2),OUTDD=D3
/*
SELECTIVE MEMBERS
//SYSIN DD *COPY INDD=(INOUT1,INOUT2),
OUTDD=INOUT3 SELECT MEMBER= (TEST1,TEST2,TEST3.TEST14)/*//
EXCLUDE MEMBERS
//SYSIN DD *COPY INDD=(INOUT1,INOUT2),
OUTDD=INOUT3 EXCLUDE MEMBER= (TEST1,TEST2,TEST3.TEST14)/*//
REPLACE AND RENAME
//SYSIN DD *COPY INDD=INPUT1,OUTDD=OUT1SELECT MEMBER
=((TEST1,TESTA,R),(TEST3,,R))/*//
HOW TO COMPRESS DATASET
//SYSIN DD *COPY INDD=INPUT1,OUTDD=INPUT1
/*//