jcl utilities iebcopy
TRANSCRIPT
![Page 1: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/1.jpg)
IBM MAINFRAME JCL UTILITIES - IEBCOPY
JANAKI RAM SOMISETTY
![Page 2: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/2.jpg)
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.
![Page 3: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/3.jpg)
JCL UTILITIES
Three Types
Dataset System Access Method
![Page 4: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/4.jpg)
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
![Page 5: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/5.jpg)
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
![Page 6: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/6.jpg)
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
![Page 7: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/7.jpg)
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)
![Page 8: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/8.jpg)
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
![Page 9: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/9.jpg)
HOW TO COPY SELECTED MEMBERS
Here selecting particular members from input dataset to output dataset
![Page 10: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/10.jpg)
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
![Page 11: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/11.jpg)
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
![Page 12: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/12.jpg)
AFTER SUBMITTING JOB - SPOOL
After submitting the JCL go to spool and select SYSPRINT here we have the output of these particular JCL
![Page 13: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/13.jpg)
OUTPUT CAPTURE FROM SPOOL
![Page 14: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/14.jpg)
COPY ALL MEMBERS
//SYSIN DD *COPY INDD=(D1,D2),OUTDD=D3
/*
![Page 15: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/15.jpg)
SELECTIVE MEMBERS
//SYSIN DD *COPY INDD=(INOUT1,INOUT2),
OUTDD=INOUT3 SELECT MEMBER= (TEST1,TEST2,TEST3.TEST14)/*//
![Page 16: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/16.jpg)
EXCLUDE MEMBERS
//SYSIN DD *COPY INDD=(INOUT1,INOUT2),
OUTDD=INOUT3 EXCLUDE MEMBER= (TEST1,TEST2,TEST3.TEST14)/*//
![Page 17: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/17.jpg)
REPLACE AND RENAME
//SYSIN DD *COPY INDD=INPUT1,OUTDD=OUT1SELECT MEMBER
=((TEST1,TESTA,R),(TEST3,,R))/*//
![Page 18: JCL UTILITIES IEBCOPY](https://reader036.vdocuments.us/reader036/viewer/2022062401/58a6a3371a28ab0a7a8b4b03/html5/thumbnails/18.jpg)
HOW TO COMPRESS DATASET
//SYSIN DD *COPY INDD=INPUT1,OUTDD=INPUT1
/*//