40
National Clearing Cell – Mumbai UTILITIES UTILITIES Reserve Bank of India Reserve Bank of India 1 SYSTEM PROGRAMMERS TRAINING AT RBSC, CHENNAI SYSTEM PROGRAMMERS TRAINING AT RBSC, CHENNAI UTILITIES UTILITIES Manoranjan Manoranjan Padhy Padhy NCC, NPT, Mumbai NCC, NPT, Mumbai

Utilities 1

Embed Size (px)

Citation preview

Page 1: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 11

SYSTEM PROGRAMMERS TRAINING AT RBSC, CHENNAISYSTEM PROGRAMMERS TRAINING AT RBSC, CHENNAI

UTILITIESUTILITIES

Manoranjan Manoranjan PadhyPadhy

NCC, NPT, MumbaiNCC, NPT, Mumbai

Page 2: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 22

UTILITIESUTILITIES

IEBGENERIEBGENER

IEBPTPCHIEBPTPCH

IEHINITTIEHINITT

IEHLISTIEHLIST

IEBCOPYIEBCOPY

DFSORTDFSORT

DITTODITTO

TASIDTASID

UTILITIES TO BE COVEREDUTILITIES TO BE COVERED

Page 3: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 33

UTILITIESUTILITIES

IEBGENERIEBGENER

IEBPTPCHIEBPTPCH

IEHINITTIEHINITT

IEHLISTIEHLIST

IEBCOPYIEBCOPY

Page 4: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 44

DFSMS/MVS provides utility programs to assist you in DFSMS/MVS provides utility programs to assist you in organizing and maintaining data.Utilities are simple organizing and maintaining data.Utilities are simple programs which perform commonly needed functions. programs which perform commonly needed functions.

System utilitySystem utility programs are used to list or change programs are used to list or change information related to data sets and volumes, such as data information related to data sets and volumes, such as data set names, catalog entries, and volume labels. set names, catalog entries, and volume labels.

IEHLIST, IEHNITT, IEHMOVE ETC…IEHLIST, IEHNITT, IEHMOVE ETC…

Data set utilityData set utility programs are used to reorganize, change, programs are used to reorganize, change, or compare data at the data set or record level, manipulate or compare data at the data set or record level, manipulate partitioned, sequential or indexed sequential data sets, or partitioned, sequential or indexed sequential data sets, or partitioned data sets extended (PDSEs) and are controlled partitioned data sets extended (PDSEs) and are controlled by JCL Statements and Utility Control Statements.by JCL Statements and Utility Control Statements.

IEBCOPY, IEBGENER, IEBPTPCH ETC…IEBCOPY, IEBGENER, IEBPTPCH ETC…

Page 5: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 55

Job Control Statements A system or data set utility program can be started by the operating system in different ways: •Job control statements can be placed in a file and the file given to JES to run for example, by the TSO SUBMIT command. • Job control statements, placed in a procedure library can be run with the MVS operator START command or can be included in a JOB with the EXEC job control statement. •The TSO CALL command can be used. •A utility program can be started by another program which uses the CALL, LINK, or ATTACH macro.

Page 6: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 66

Utility Control Statements Utility control statements are used to identify a particular function to be performed by a utility program and, when required, to identify specific volumes or data sets to be processed.

Utility control statements are usually included in the input stream. However, they may also be placed in a sequential data set, or in a member of a partitioned data set or PDSE. In either case, the data set must have fixed or fixed blocked records with a logical record length of 80.The control statements for the utility programs have the following standard format: label operation operand comments

Page 7: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 77

Utility Control StatementsThe label symbolically identifies the control statement and, with the exception of system utility program IEHINITT, can be omitted. When included, a name must begin in the first position of the statement and must be followed by one or more blanks. The label can contain from 1 to 8 alphanumeric characters. The operation identifies the type of control statement. It must be preceded and followed by one or more blanks. The operand is made up of one or more keyword parameters, separated by commas. The operand field must be preceded and followed by one or more blanks. Commas, parentheses, and blanks can be used only as delimiting characters. Comments can be written in a utility statement, but they must be separated from the last parameter of the operand field by one or more blanks.

Page 8: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 88

JCL STATEMENTS

JOB Starts the job.  EXEC Specifies the program name (PGM=IEBGENER) or, if the job control statements reside in a procedure library, the procedure name.  SYSPRINT DD Defines a sequential data set for messages. The data set can be written to a system output device, a tape volume, or a DASD volume.  SYSUT1 DD Defines the input data set. It can define a sequential data set or a member of a partitioned data set or PDSE.   SYSUT2 DD Defines the output data set. It can define a sequential data set, a member of a partitioned data set or PDSE, or a partitioned data set or PDSE.  SYSIN DD Defines the control data set, or specifies DUMMY when the output is sequential and no editing is specified. The control data set normally resides in the input stream; however, it can be defined as a member in a partitioned data set or PDSE.

Page 9: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 99

IEBGENER

Create a backup copy of a sequential data set or a member of a partitioned data set or PDSE. Produce a partitioned data set or PDSE, or a member of a partitioned data set or PDSE, from a sequential data set. Expand an existing partitioned data set or PDSE by creating partitioned members and merging them into the existing data set. Produce an edited sequential or partitioned data set or PDSE. Manipulate data sets containing double-byte character set data. Print sequential data sets or members of partitioned data sets or PDSEs. Reblock or change the logical record length of a data set. Copy user labels on sequential output data sets. Supply editing facilities and exits for your routines that process labels, manipulate input data, create keys, and handle permanent input/output errors

Page 10: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1010

¦ Figure 41. IEBGENER Utility Control Statements +--------------------------------------------------------------------------------------------------------¦ Statement ¦ Use +----------+--------------------------------------------------------------------------------------------¦ GENERATE ¦ Indicates the number of member names and alias names, ¦ ¦ record identifiers, literals, and editing information ¦ ¦ contained in the control data set. +----------+-------------------------------------------------------------------------------------------¦ MEMBER ¦ Specifies the member name and alias of a member of a ¦ ¦ partitioned data set or PDSE to be created. +----------+--------------------------------------------------------------------------------------------¦ RECORD ¦ Defines a record group to be processed and supplies editing ¦ ¦ information. +----------------------------------------------------------------------------------------

Page 11: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1111

GENERATE Statement The GENERATE statement must appear before any other IEBGENER utility statements. If it contains errors or is inconsistent with other statements, IEBGENER is ended. The syntax of the GENERATE statement is: [label] ¦ GENERATE¦ [,MAXNAME=n],¦ [,MAXFLDS=n], [,MAXGPS=n], [,MAXLITS=n], where:MAXNAME=n ; specifies total number of member names appearing in subsequent MEMBER statements. MAXFLDS=n ; specifies total number of FIELD parameters appearing in subsequent RECORD statements. MAXGPS=n ; specifies a total number of IDENT parameters appearing in subsequent RECORD statementsMAXLITS=n ; specifies total number of characters contained in the FIELD literals of subsequent RECORD statements.

Page 12: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1212

MEMBER Statement

The MEMBER statement is used when the output data set is to be partitioned. One MEMBER statement must be included for each member to be created by IEBGENER. The MEMBER statement provides the name and alias names of a new member. All RECORD statements following a MEMBER statement refer to the one named in that MEMBER statement. If no MEMBER statements are included, the output data set is organized sequentially. The syntax of the MEMBER statement is:MEMBER NAME=(NAME)

Page 13: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1313

RECORD StatementThe RECORD statement is used to define a record group and to supply editing information. A record group consists of records that are to be processed identically. The RECORD statement is used when: the output is to be partitioned; editing is to be performed; or user labels for the output data set are to be created from records in the data portion of the SYSIN data set. The RECORD statement defines a record group by identifying the last record of the group with a literal name. If no RECORD statement is used, the entire input data set or member is processed without editing. More than one RECORD statement may appear in the control statement stream for IEBGENER.Within a RECORD statement, one IDENT parameter can be used to define the record group; one or more FIELD parameters can be used to supply the editing information applicable to the record The syntax of the RECORD statement is:RECORD ¦ [{IDENT|IDENTG}=(length,'name',input-location)] [,FIELD=([length],[{input-location|'literal'}], [conversion],[output-location])][,FIELD=...] …..where:

Page 14: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1414

{IDENT|IDENTG}=(length,'name',input-location)identifies the last record of a collection of records in the input data set.

Length ; specifies the length (in bytes) of the identifying name. The length of your identifier cannot be greater than 8.

'name‘ ; specifies the literal that identifies the last input record of a group of records. 'Name' must be coded within single apostrophes. If no match for 'name' is found, the remainder of the input data is considered to be in one record group; subsequent RECORD and MEMBER statements will be ignored.

input-location ; specifies the starting position of the field that contains the identifying name in the input records.

Page 15: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1515

FIELD=([length],[{input-location|'literal'}],[conversion],[output-location])specifies field-processing and editing information. Only the contents of specified fields in the input record are copied to the output record; that is, any field in the output record that is not specified will contain meaningless data. Note that the variables on the FIELD parameter are positional; if any of the options are not coded, the associated comma preceding that variable must be coded.Length ; specifies the length (in bytes) of the input field or literal to be processed. If length is not specified, a length of 80 is assumed. input-location ; specifies the starting position of the field to be processed. If input-location is not specified, it defaults to 1.'literal‘ ; specifies a literal (maximum length of 40 bytes) to be placed in the specified output location. If a literal contains apostrophes, each apostrophe must be written as two consecutive apostrophes. output-location ; specifies the starting location of this field in the output records. If output-location is not specified, the location defaults to 1.

Page 16: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1616

//GENER1 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1), //GENER1 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

NOTIFY=OPNMRP NOTIFY=OPNMRP

//* //*

//STEP1 EXEC PGM=IEBGENER //STEP1 EXEC PGM=IEBGENER

//SYSPRINT DD SYSOUT=A //SYSPRINT DD SYSOUT=A

//SYSIN DD DUMMY //SYSIN DD DUMMY

//SYSUT1 DD DSNAME=OPNMRP.PLIST,DISP=SHR //SYSUT1 DD DSNAME=OPNMRP.PLIST,DISP=SHR

//SYSUT2 DD SYSOUT=A //SYSUT2 DD SYSOUT=A

//* //*

Page 17: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1717

//GENER2 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

// NOTIFY=SYSOPR4

//*

//STEP1 EXEC PGM=IEBGENER

//SYSPRINT DD SYSOUT=A

//SYSUT1 DD DSNAME=OPNMRP.WORKDAY,

// DISP=(OLD,KEEP)

//SYSUT2 DD DSNAME=OPNMRP.PDS,UNIT=DISK,DISP=(NEW,KEEP),

// SPACE=(TRK,(10,5,5)),

// DCB=(RECFM=FB,LRECL=80,BLKSIZE=2000)

//SYSIN DD *

GENERATE MAXNAME=3,MAXGPS=2

MEMBER NAME=MEMBER1

GROUP1 RECORD IDENT=(2,'03',5)

MEMBER NAME=MEMBER2

GROUP2 RECORD IDENT=(2,'09',5)

MEMBER NAME=MEMBER3

/*

Page 18: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1818

//GENER3 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

// NOTIFY=SYSOPR4

//STEP1 EXEC PGM=IEBGENER

//SYSPRINT DD SYSOUT=A

//SYSUT1 DD DSNAME=OPNMRP.PLIST,DISP=(OLD,KEEP)

//SYSUT2 DD DSNAME=OPNMRP.PLIST1,DISP=(NEW,KEEP),

// DCB=(RECFM=FB,LRECL=80,BLKSIZE=640),

// SPACE=(TRK,(20,10))

//SYSIN DD *

GENERATE MAXFLDS=1

GRP1 RECORD FIELD=(80,1,,1)

/*

//* GENERATE MAXFLDS=4,MAXGPS=1

//* EXITS IOERROR=ERRORRT

//*GRP1 RECORD IDENT=(8,'FIRSTGRP',1),

//* FIELD=(21,80,,60),FIELD=(59,1,,1)

//*GRP1 RECORD FIELD=(11,90,,70),FIELD=(69,1,,1)

//*

Page 19: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 1919

//GENER4 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

// NOTIFY=SYSOPR4

//STEP1 EXEC PGM=IEBGENER

//SYSPRINT DD SYSOUT=A

//SYSUT1 DD DSNAME=OPNMRP.PLIST,DISP=(OLD,KEEP)

//SYSUT2 DD DSNAME=OPNMRP.PLIST1,DISP=(OLD,KEEP),

// DCB=(RECFM=FB,LRECL=80,BLKSIZE=640),

// SPACE=(TRK,(20,10))

//SYSIN DD *

GENERATE MAXFLDS=4

GRP1 RECORD FIELD=(7,19,,1),FIELD=(11,8,,8),

FIELD=(7,1,,19),FIELD=(55,26,,26)

Page 20: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2020

9.0 IEBPTPCH (Print-Punch) Program

You can use IEBPTPCH to print or punch all, or selected portions, of a sequential or partitioned data set or PDSE. Data can also be "printed" or "punched" to disk or tape.

IEBPTPCH can be used to print or punch:

A sequential or partitioned data set, or PDSE, in its entirety

Selected members from a partitioned data set or PDSE

Selected records from a sequential or partitioned data set, or PDSE

The directory of a partitioned data set or PDSE

An edited version of a sequential or partitioned data set or PDSE

Page 21: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2121

¦ IEBPTPCH Utility Control Statements +--------------------------------------------------------------------------------------------¦ Statement ¦ Use +----------------+---------------------------------------------------------------------------¦ PRINT ¦ Specifies that the data is printed. +----------------+---------------------------------------------------------------------------¦ TITLE ¦ Specifies that a title is to precede the printed data +----------------+---------------------------------------------------------------------------¦ MEMBER ¦ Specifies which member of a partitioned data set or ¦ PDSE you want printed+----------------+---------------------------------------------------------------------------¦ RECORD ¦ Specifies the format in which you want your data printed +----------------+---------------------------------------------------------------------------

Page 22: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2222

The syntax of the PRINT statement is: [label] ¦ {PRINT| [,TYPORG={PS|PO}], [,CNTRL={n|1}], [,MAXNAME=n], [,MAXFLDS=n], [,MAXGPS=n] [,MAXLITS=n], [,INITPG=n], [,MAXLINE=n]TYPORG={PS|PO} ; specifies the organization of the input data set. These values are coded as follows: PS specifies that the input data set is organized sequentially. This is the default. PO specifies that the input data set is partitioned.CNTRL={n|1} ; indicates line spacing, 1 indicates single spacing (the default), 2 indicates double spacing, and 3 indicates triple spacing.INITPG=n ; specifies the initial page number; the pages are numbered sequentially thereafter. The INITPG value must not exceed 9999.Default is 1.MAXLINE=n ; specifies the maximum number of lines to a printed page. Spaces, titles, and subtitles are included in this number. The default is 60.The syntax of the TITLE statement is:ITEM=('title'[,output-location])RECORD AND MEMBER SYSNTAX IS THE SAME

Page 23: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2323

//PRINT JOB (ACCOUNT),NOTIFY=&SYSUID//STEP1 EXEC PGM=IEBPTPCH//SYSPRINT DD SYSOUT=A//SYSUT1 DD DSNAME=MYPDS,DISP=SHR//SYSUT2 DD SYSOUT=B//SYSIN DD * PRINT MEMBER NAME=TEST

Page 24: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2424

//PTPCH1 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

//* NOTIFY=SYSOPR4

//STEP1 EXEC PGM=IEBPTPCH

//SYSPRINT DD SYSOUT=A

//SYSUT1 DD DSNAME=OPNMRP.PDS,DISP=SHR

//SYSUT2 DD SYSOUT=A

//SYSIN DD *

PRINT TYPORG=PO,CNTRL=3,INITPG=5,MAXNAME=2,MAXFLDS=1,

MAXGPS=1,MAXLITS=3

MEMBER NAME=MEMBER1

TITLE ITEM=('PRINT OF MEMBER1 OF PDS OPNMRP.PDS',10)

RECORD IDENT=(2,'03',5),FIELD=(7)

/*

//*IDENT=(LENGTH,'NAME',INPUT-LOCATION)

//*FIELD=(LENGTH,[INPUT-LOCATION], [CONVERSION],[OUTPUT-LOCATION])

Page 25: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2525

IEHINITT

IEHINITT is a system utility used to place IBM volume label sets written in EBCDIC (BCD for 7-track), or ISO/ANSI/FIPS volume label sets written in ASCII (American Standard Code for Information Interchange) onto any number of magnetic tapes mounted on one or more tape units.

Page 26: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2626

//INITT 1 JOB (ACCOUNT),NOTIFY=&SYSUID

//STEP1 EXEC PGM=IEHINITT

//SYSPRINT DD SYSOUT=A

//LABEL DD UNIT=680

//SYSIN DD *

LABEL INITT SER=001234,NUMBTAPE=3

LABEL INITT SER=001233,NUMBTAPE=3

/*

Page 27: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2727

//INITT2 JOB (ACCOUNT),NOTIFY=&SYSUID

//STEP1 EXEC PGM=IEHINITT

//SYSPRINT DD SYSOUT=A

//LABEL DD UNIT=680

//SYSIN DD *

LABEL INITT SER=O3P045

LABEL INITT SER=O3P046

LABEL INITT SER=O3P047

LABEL INITT SER=O3P048

Page 28: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2828

IEHLISTIEHLIST

IEHLIST is a system utility used to list entries IEHLIST is a system utility used to list entries in an CVOL(SYSCTLG datasets),in an CVOL(SYSCTLG datasets),

entries in the directory of one or more entries in the directory of one or more partitioned data sets or PDSEs, partitioned data sets or PDSEs,

or entries in an indexed or non-indexed volume or entries in an indexed or non-indexed volume table of contents. table of contents.

Any number of listings can be requested in a Any number of listings can be requested in a single execution of the program. (Upto 10 single execution of the program. (Upto 10 PDSEs at a time)PDSEs at a time)

Page 29: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 2929

UTILITY CONTROL STATEMENTS

LISTCTLG VOLUME=DEVICE=SERIAL,

NODE=NAME

LISTPDS DSNAME=( ..,..),DUMP/FORMAT

VOLUME=DEVICE=SERIAL

LISTVTOC DUMP/FORMAT,DSNAME=(..,..)

VOLUME=DEVICE=SERIAL

FORMAT IS IN EDITED FORM

Page 30: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3030

//LIST1 JOB 'RBI',CLASS=A,MSGCLASS=X,

// MSGLEVEL=(1,1), NOTIFY=SYSOPR4

//STEP1 EXEC PGM=IEHLIST

//SYSPRINT DD SYSOUT=A

//DD1 DD UNIT=3390,VOLUME=SER=TSO002,DISP=OLD

//SYSIN DD *

LISTPDS DSNAME=OPNMRP.PDS,VOL=3390=TSO002

/*

Page 31: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3131

//LIST2 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),

//* NOTIFY=SYSOPR4

//STEP1 EXEC PGM=IEHLIST

//SYSPRINT DD SYSOUT=A

//DD1 DD UNIT=3390,VOLUME=SER=TSO002,DISP=OLD

//SYSIN DD *

LISTVTOC FORMAT,VOL=3390=TSO002

LISTVTOC DUMP,VOL=3390=TSO002

/*

Page 32: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3232

IEBCOPY

Make a copy of a partitioned data set or PDSE. Merge partitioned data sets (except when unloading). Create a sequential form of a partitioned data set or PDSE for a back up or transport. Reload one or more members from a PDSU into a partitioned data set or PDSE. Select specific members of a partitioned data set or PDSE to be copied, loaded, or unloaded. Replace members of a partitioned data set or PDSE.Rename selected members of a partitioned data set or PDSE. Exclude members from a data set to be copied, unloaded, or loaded. (Except on COPYGRP.) Compress a partitioned data set in place.

Page 33: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3333

¦ IEBCOPY Utility Control Statements. The minor statements (SELECT or ¦EXCLUDE) can follow each major statement to restrict the scope of the major ¦statements.

+---------------------------------------------------------------------------------------------------------

¦ Statement ¦ Use

+---------------------------------------------------------------------------------------------------------

¦ Major Statements

+---------------------------------------------------------------------------------------------------------

¦ ALTERMOD ¦ Indicates the beginning of an alter-in-place operation for

¦ load modules.

+----------+----------------------------------------------------------------------------------------------

¦ COPY ¦ Indicates the beginning of a COPY operation.

+----------+----------------------------------------------------------------------------------------------

Page 34: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3434

¦ COPYGRP ¦ Indicates the beginning of a COPYGRP operation.

+----------+------------------------------------------------------------------------------------------

¦ COPYMOD ¦ Indicates the beginning of a copy and load module reblock

¦ operation.

+----------+------------------------------------------------------------------------------------------

¦ INDD= ¦ Indicates the beginning of another copy step.

+------------------------------------------------------------------------------------------------------

¦ Minor Statements

+------------------------------------------------------------------------------------------------------

¦ EXCLUDE ¦ Specifies members in the input data set to be excluded

¦ from the copy step.

+----------+-------------------------------------------------------------

¦ SELECT ¦ Specifies which members in the input data set are to be copied

+------------------------------------------------------------------------+

Page 35: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3535

Copy Outdd=DDname

Indd=(DDname ,R) locating input and

output datasets respectively

Page 36: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3636

//COPY JOB (ACCOUNT),NOTIFY=&SYSUID

//JOBSTEP EXEC PGM=IEBCOPY

//SYSPRINT DD SYSOUT=A

//SYSUT1 DD DSNAME=DATASET5,UNIT=3390,

// VOL=SER=TSO001, DISP=SHR

// DISP=SHR

//SYSUT2 DD DSNAME=DATASET4,UNIT=3390,

// VOL=SER=TSO002,

// DISP=(NEW,KEEP),SPACE=(TRK,(5,1,2))

Page 37: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3737

//COPY2 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)

//JOBSTEP EXEC PGM=IEBCOPY

//SYSPRINT DD SYSOUT=A

//IN1 DD DSNAME=OPNMRP.PDS,

// DISP=SHR

//IN2 DD DSNAME=OPNMRP.PDS1,

// DISP=OLD

//OUT1 DD DSNAME=OPNMRP.PDS2,

// DISP=(OLD,KEEP)

//SYSIN DD *

COPY OUTDD=OUT1

INDD=IN1

INDD=IN2

/*

Page 38: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3838

//COPY3 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)

//JOBSTEP EXEC PGM=IEBCOPY

//SYSPRINT DD SYSOUT=A

//IN1 DD DSNAME=OPNMRP.PDS,

// DISP=SHR

//IN2 DD DSNAME=OPNMRP.PDS1,

// DISP=OLD

//OUT1 DD DSNAME=OPNMRP.PDS2,

// DISP=(OLD,KEEP)

//SYSIN DD *

COPY OUTDD=OUT1

INDD=IN1

INDD=IN2

EXCLUDE MEMBER=(MEMBER2)

/*

Page 39: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 3939

//COPY4 JOB ,'RBI',CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)

//JOBSTEP EXEC PGM=IEBCOPY

//SYSPRINT DD SYSOUT=A

//IN1 DD DSNAME=OPNMRP.PDS,

// DISP=SHR

//IN2 DD DSNAME=OPNMRP.PDS1,

// DISP=OLD

//OUT1 DD DSNAME=OPNMRP.PDS2,

// DISP=(OLD,KEEP)

//SYSIN DD *

COPY OUTDD=OUT1

INDD=IN1,IN2

SELECT MEMBER=((MEMBER2,MEMBER5,R))

/*

Page 40: Utilities 1

National Clearing Cell – Mumbai UTILITIES UTILITIES

Reserve Bank of India Reserve Bank of India 4040

THANK YOUTHANK YOU