18
IBM MAINFRAME JCL UTILITIES - IEBCOPY JANAKI RAM SOMISETTY

JCL UTILITIES IEBCOPY

Embed Size (px)

Citation preview

Page 1: JCL UTILITIES IEBCOPY

IBM MAINFRAME JCL UTILITIES - IEBCOPY

JANAKI RAM SOMISETTY

Page 2: JCL UTILITIES IEBCOPY

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

JCL UTILITIES

Three Types

Dataset System Access Method

Page 4: JCL UTILITIES IEBCOPY

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

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

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

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

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

HOW TO COPY SELECTED MEMBERS

Here selecting particular members from input dataset to output dataset

Page 10: JCL UTILITIES IEBCOPY

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

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

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

OUTPUT CAPTURE FROM SPOOL

Page 14: JCL UTILITIES IEBCOPY

COPY ALL MEMBERS

//SYSIN DD *COPY INDD=(D1,D2),OUTDD=D3

/*

Page 15: JCL UTILITIES IEBCOPY

SELECTIVE MEMBERS

//SYSIN DD *COPY INDD=(INOUT1,INOUT2),

OUTDD=INOUT3 SELECT MEMBER= (TEST1,TEST2,TEST3.TEST14)/*//

Page 16: JCL UTILITIES IEBCOPY

EXCLUDE MEMBERS

//SYSIN DD *COPY INDD=(INOUT1,INOUT2),

OUTDD=INOUT3 EXCLUDE MEMBER= (TEST1,TEST2,TEST3.TEST14)/*//

Page 17: JCL UTILITIES IEBCOPY

REPLACE AND RENAME

//SYSIN DD *COPY INDD=INPUT1,OUTDD=OUT1SELECT MEMBER

=((TEST1,TESTA,R),(TEST3,,R))/*//

Page 18: JCL UTILITIES IEBCOPY

HOW TO COMPRESS DATASET

//SYSIN DD *COPY INDD=INPUT1,OUTDD=INPUT1

/*//