ibm utilities presentation

74
© Department of Computer Science  Northern Illinois University 1999 Utilities

Upload: atom-k-padhy

Post on 07-Apr-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 1/74

© Department of Computer Science

 Northern Illinois University

1999

Utilities

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 2/74

2

Utilities

� The mainframe utilities are general purpose

 programs available for common tasks.

� Usually are supplied by the hardware

vendor.

� Sometimes purchased from independent

software vendors.

 ± e.g., Syncsort, faster and cheaper than IBM¶s

sort utility.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 3/74

3

Utilities

� Common tasks:

 ± Sorting

 ± Copying files ± Printing files

 ± Comparing 2 files (look for differences, IBM¶s

stops after 10 different lines)

 ± Maintenance (e.g., one to compress (update) a

PDS)

 ± ZAP utility (change code (bits, bytes) in load

mods; add patch area to load mod)

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 4/74

4

 IEBPTPCH 

� Can use it to:

 ± Print qsam data sets. ± Print selected members of a PDS or entire PDS.

 ± Print selected records from QSAM or PDS

member.

 ± Print PDS directory.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 5/74

5

 IEBPTPCH 

� Default output:

 ± Alphanumeric.

 ± Unprintable chars (e.g., X¶00¶) appear as blanks.

 ± Each logical record on a new line

� If longer than 80 then it wraps around.

 ± Each line in groups of 8 chars separated by 2 blanks.

 ± Each logical record delimited with *.

 ± Each physical record delimited with ** (if file is

 blocked).

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 6/74

6

 IEBPTPCH 

� Defaults can be changed using control

statements:

 ± E.g., if record length <= output device record

length (132), can specify a format other than

the 8 chars at a time format.

 ± E.g., can specify data conversion of either thewhole record or selected fields in the record for 

converting packed to zoned decimal; can

specify to print in hex.

� R equired JCL...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 7/74

//STEPn EXEC PGM=IEBPTPCH catalogued, so no

 job/steplib needed

//SYSPR INT DD SYSOUT=*  prtpunch messages//SYSUT1 DD DSN=input data set qsam or name of PDS

//SYSUT2 DD SYSOUT=* output device

//SYSIN DD DSN=data set containing control

statements; qsam or pds

mem

//SYSIN DD *

control statements/*

//SYSIN DD DUMMY if omitting control

stments & going with

defaults

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 8/74

8

 IEBPTPCH 

� Basically, all utilities have this general

 pattern.

� Control statements ± lots of options; can get

involved.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 9/74

9

 IEBPTPCH 

//SYSIN DD *

PR INT

MAXFLDS=n

TITLE ITEM=(µMY DATA¶,20) title and

col. to start it in

R ECOR D FIELD=(80) contiguous 80 byterecord, no spaces

/*

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 10/74

10

 IEBPTPCH 

� Control statements are free form, columns

2 ± 71.

� Order in which control statements must

appear...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 11/74

11

 IEBPTPCH 

� 1)  PRINT :

 ± Has many operands that can go in any order.

 ± These operands refer to the entire data set or 

 pds mem; there are other statements that refer 

to selected fields.

 ± Code a comma after each operand on the printcard.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 12/74

12

 IEBPTPCH 

 ± TYPOR G=PS or PO,

�   ps=sequential po=pds

 ± TOTCONV=XE or PZ,

� xe=all hex.

�  pz used on packed fields that are converted to

unpacked.

 ±  If data not packed and you specify PZ, you get garbage.

 ± This conversion can be overriden by R ecord statements for 

the same data.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 13/74

13

 IEBPTPCH 

 ± CNTR L=1 or  n

� Line spacing.

 ± STARTAFT=n

� Skip 1st n lrecls in qsam or each pds mem.

 ± STOPAFT=n

� Stop after printing n lrecls.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 14/74

14

 IEBPTPCH 

 ± MAXNAME=n

�  Number of subsequent member statements.

� You must count them and put the number in here.

� If omitted and there are subsequent member 

statements, operation is terminated.

 ± MAXFLDS=n

�  Number of subsequent field statements.

� R equired if field statements are used.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 15/74

15

 IEBPTPCH 

2) TITLE  ± used to request title and subtitle;

 ± 2 title statements MAX per ptpnch operation.

TITLE ITEM=(µLITER AL¶,40), comma for 

ITEM=(µLITER AL¶,60) continuation

TITLE ITEM=(µBANK R EPORT¶,35) 2 lines

with center headingTITLE ITEM=(µNAME¶,10),ITEM=(µADDR ESS¶20),

and col headers

ITEM=(µBALANCE¶,45),ITEM=(µLOAN NUMBER ¶,60)

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 16/74

16

 IEBPTPCH 

3)  M  E  MB ER NA M  E=

 ± Supply PDS member name to be printed.

 ± If omitted when printing a pds, it prints all

members.

 ± Any number of these allowed.

 ± Must specify TYPOR G=PO if printing pdsmembers because default is PS.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 17/74

17

 IEBPTPCH 

 ± All R ECOR D statements that follow a

MEMBER statement pertain to the member 

indicated in the member statement.

 ± If no R ECOR D statements follow, the member 

is printed with the default conditions.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 18/74

18

 IEBPTPCH 

4)  RECORD ± to define a group of records that

are to be edited identically.

R ECOR D FIELDS=(length,input col.,conversion,output col.)

 ± length = length of input field.

 ± input col = where this fields begins.

 ± conversion = PZ or XE.� Convert packed to decimal or convert alphameric to hex.

 ± count the number of field statements used and fill in

MAXFLDS= on print statement.

 ± e.g.,...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 19/74

19

 IEBPTPCH 

Input R ecord Output Needed

 Name pic x(20) Sales cols 1 ± 5

Sales pic 9(5) comp-3. 3 blanks, then name

(3 bytes) in cols 9 ± 29

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 20/74

20

 IEBPTPCH 

R ECOR D FIELD=(20,1,,9),

FIELD=(3,21,PZ,1)

Omit conversion,

code comma, and

code a continuation

comma at end.

3 byte input,

convert packedto decimal

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 21/74

21

 IEBPTPCH 

 ± R ECOR D IDENT=(length,¶literal¶,input-location)

� Length can¶t be greater than 8.

� Lets you identify a delimiting record that is the last one to

which Field specifications apply.

� Input-location ± col number where this string starts.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 22/74

22

 IEBPTPCH 

R ECOR D IDENT=(5,¶ZZZZZ¶,1),Use following 3 field

FIELD=(-------), statements on all records up to

FIELD=(-------), & including the one wh/ has 5

FIELD=(-------) Z¶s beginning in col. 1.

R ECOR D IDENT=(2,¶**,10), Process subsequent recs

FIELD=(-----), using ff 2 field stments until

FIELD=(-----) find rec w/ 2 *¶s beginning in

col. 10.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 23/74

23

 IEBPTPCH 

 ± Use of IDENT requires MAXGPS=n on Print

statement. n can be >= number of IDENT 

 parms found.

 ± Use of literals in IDENT requires MAXLITS=n

on print statement. n is a number >= total

number of characters used in literals.

 ± Example, print selected members of a PDS...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 24/74

24

 IEBPTPCH 

PR INT MAXNAME=3,MAXFLDS=3,TYPOR G=PO

MEMBER NAME=DOG

R ECOR D FIELD=(-----),

FIELD=(-----)

MEMBER NAME =CAT  prints with defaults

MEMBER NAME =FR OG

R ECOR D FIELD=(80) same as FIELD=(80,1,,1)

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 25/74

25

 IEBPTPCH 

� Example, to print the directory of a PDS:

 ± on SYSUT1 DD card, specify a DCB with

R ECFM=U,BLKSIZE=256,LR ECL=256

 ± PR INT TYPOR G=PS for directory printing

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 26/74

26

 IEBPTPCH 

� Printpunch R C¶s:

 ± 0 = OK 

 ± 4 = qsam set does not exist or is empty

 ± 8 = pds is there but requested member is not

 ± 12 = unrecoverable error 

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 27/74

27

 IEBGENER

� A copy utilty.

� Can copy (change) qsam file to pdsmember.

� Can create backups of qsam files or pds

members.

� Can copy from tape to disk or disk to disk.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 28/74

28

 IEBGENER

� In the process of copying, you can also:

 ± Change the physical organization of a dataset

� E.g., change lrecl and blksize, make a qsamfile into

a pds member or members by using control

statements to divide up the records in a data set, then

assign these divisions as distinct members in a pds.

 ± Do some minor editing (e.g., zoned fields to

 packed & vice versa).

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 29/74

//STEPn EXEC PGM=IEBGENER 

//SYSPR INT DD SYSOUT=* for utility

messages

//SYSUT1 DD DSN=qsam file or a PDS or 

instream data (input)

//SYSUT2 DD DSN= to the printer or to a qsamfile or to a new or old PDS (output) If PDS is

old, code DISP=(MOD,KEEP)

//SYSIN DD * for instream control statements

//SYSIN DD DUMMY if output issequential and no editing involved

//SYSIN DD DSN=name of file with control

statements; usually a PDS member 

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 30/74

30

 IEBGENER

� To copy instream data to a qsam disk file...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 31/74

//STEPn EXEC PGM=IEBGENER 

//SYSPR INT DD SYSOUT=*

//SYSIN DD DUMMY (sequential to sequential, no editing)

//SYSUT1 DD *

. . .

Data. . .

//SYSUT2 DD DSN=Z12345.DATAFILE,DISP=(NEW,KEEP),

//VOL=SER =ACA103,UNIT=DISK,SPACE=(TR K,(2,1)),

// DCB=(R ECFM=FB,LR ECL=80,BLKSIZE=1600)

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 32/74

32

 IEBGENER

�  Note: Sysut1 (the input) already has a DCB

associated with it because the file already

exists.

� Sysut2 (the output) has no DCB information

associated with it (unless you¶re copying a

new member into an existing PDS). ± The utility will use Sysut1¶s DCB info if you

do not specify info for Sysut2. Be careful!

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 33/74

33

 IEBGENER

� Suppose you have:

//SYSIN DD *

. . . if the instream data contains

instream data JCL, the copy operation. . .  probably will not succeed.

/*

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 34/74

34

 IEBGENER

� When there¶s JCL in the instream data, do

this...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 35/74

//SYSIN DD DATA,DLM=ZZ

//JOBNAME JOB

//S1 EXEC IGYWCG

//COB.SYSIN DD *

. . .

source code

. . .

/*

//GO.INPUT DD ------

//GO.OUTPUT DD -----

ZZ these characters end the instream data

Delimiter chosen to end

the instream data. Cannot

use typical delimiter of /* because the instream data

contains /*. Delimiter can

 be any two characters.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 36/74

36

 IEBGENER

� Control Statements:

 ± Continuation of a line must begin in cols 4-16

� G ENERATE 

 ± R equired when

� output is to be partitioned

� editing is to be performed

 ± Must appear first.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 37/74

37

 IEBGENER

 ± Operands on Generate:

� MAXNAME=n number of subsequent member 

statements� MAXFLDS=n number of subsequent field

 parameter stments

� MAXGPS=nnumber of subsequent Ident parameter 

� MAXLITS=n same as with printpunch exceptMaxlits pertains to the characters contained in field

literals of subsequent R ecord statements, not to

literals in Ident parameters

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 38/74

38

 IEBGENER

� M  E  MB ER

 ± R equired when output is to be partitioned.

 ± Use one per each member created.

 ± It provides the name (and optional alias) of a

PDS member to be created.

 ± If none appears, output is organizedsequentially.

 ± E.g., MEMBER NAME=(realname,alias).

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 39/74

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 40/74

40

 IEBGENER

 ± Use R ECOR D FIELD=(length,¶literal¶ or input

col,conversion,output col) to supply editing

information. ± E.g., to produce a PDS with 3 members from

sequential input...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 41/74

41

 IEBGENER

//SYSUT1 DD DSN= name of sequentail input file

//SYSUT2 DD DSN= brand new PDS, supply space

and DCB info//SYSIN DD * input control statements

GENER ATE MAXNAME=3,MAXGPS=2

MEMBER NAME=MEM1

R ECOR D IDENT=(8,¶FIR STMEM¶,1)

MEMBER NAME=MEM2

R ECOR D IDENT=(8,¶SECNDMEM¶,1)

MEMBER NAME=MEM3

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 42/74

42

 IEBGENER

� The Generate statement informs that three

member statements follow and that the

Ident parm appears twice.

� First member is named mem1 and the last

record to be included in mem1 from the

input file has the string µFIR STMEM¶ (8 bytes) appearing in column 1.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 43/74

43

 IEBGENER

� Second member is named mem2 and the

last record to be included in mem2 from the

input file has the string µSECNDMEM¶ (8

 bytes) appearing in column 1.

� All of the remaining records in the input file

go into making up mem3.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 44/74

44

 IEBGENER

� The R ecord Field statement provides field

 processing and editing information:R ECOR D FIELD=(length, µlit¶ or input col,conversion,output col)

 ± Length

� Length in bytes of the input field or literal to be

 processed.

� If not specified, 80 bytes assumed.

� If literal to be processed, must be <= 40 bytes.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 45/74

45

 IEBGENER

 ± Input col

� Col 1 is assumed unless other wise specified.

 ± Literal

� Specifies a literal to be placed in the output file at

the specified location.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 46/74

46

 IEBGENER

 ± Conversion

� PZ convert packed decimal data to unpacked form.

� ZP convert unpacked data to packed.

 ± Output col

� Specifies the column in the output file where the

field or literal is to go.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 47/74

47

 IEBGENER

� Example, copy to a new sequential data set

from an old sequential data set, pack 

numeric fields, block at 20

 ± Input data set has following format: (40 bytes,

 blocked at 10)

� Code Pic x(9) cols 1-9�  Name Pic x(20) cols 10-29

� Acode Pic 9(4) cols 30-33

� Phone Pic 9(7) cols 34-40

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 48/74

48

 IEBGENER

//SYSUT1 DD DSN=OLDFILE, etc.

//SYSUT2 DD DSN=NEWFILE,UNIT=DISK,V=S=5,DISP=(NEW,KEEP),

// SPACE=(TR K,(2,1)),DCB=(LR ECL=36,BLKSIZE=720,R ECFM=FB)//SYSIN DD *

GENER ATE MAXFLDS=4

R ECOR D FIELD=(9,1,,1) copy code to col 1 in new file

R ECOR D FIELD=(20,10,,10) copy name to col 10 in new fileR ECOR D FIELD=(4,30,ZP,33) 4 byte acode, pack it, put in col 30

R ECOR D FIELD=(7,34,ZP,33)  pack phone,put in col 33

/*

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 49/74

49

 IEBGENER

�  Note: 1st two statements could be replaced

with

R ECOR D FIELD=(30,1,,1)

� Output file is 36 bytes long with:

 ± alphabetic data in cols 1-29

 ±  packed acode in cols 30-32

 ±  packed phone in cols 33-36

DSD INPUT (DATAIN) OUTPUT (DATAOUT)

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 50/74

DSD INPUT=(DATAIN),OUTPUT=(DATAOUT)

ddcards named above have corresponding JCL cards that describethese data sets, or input may be instream

FD NAME=SSN,LENGTH=9,STARTLOC=21,INPUT=DATAIN X

FR OMLOC=1 nb: input= does not have to be specified if input parm is on create and dsd

FD NAME=PHONE,LENGTH=4,STARTLOC=30, XPICTUR E=7,P¶7531234¶,INDEX=123

FD NAME=NAME,LENGTH=20,STARTLOC=1,FOR MAT=AN,X

ACTION=R PFD NAME=FR ESH,LENGTH=2,STARTLOC=34, X

PICTUR E=2,¶FR ¶

FD NAME=SOPH,LENGTH=2,STARTLOC=34, XPICTUR E=2,¶SO¶

R EPEAT QUANTITY=2,CR EATE=2CR EATE INPUT=DATAIN,QUANTITY=1, X

 NAME=(SSN,NAME,PHONE,FR ESH)

CR EATE INPUT=DATAIN,QUANTITY=1, X NAME=(SSN,NAME,PHONE,SOPH)

END

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 51/74

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 52/74

52

 IEBCOPY 

� DDNames:

 ± Sysprint ± msg. data set

 ± Sysut3 & sysut4 ± spill data sets (TR K(1,1))

 ± 1 or more anyname dd for input.

� Cannot concatenate input; this specifies the

members to be copied, loaded, unloaded. ± 1 only dd name for output

 ± Sysin ± control cards

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 53/74

53

 IEBCOPY 

�  Nb: Input and output will always be a PDS

unless you¶re doing loading/unloading, then

they¶re sequential data sets on tape.

� Control Cards:

 ± Copy ± indicates beginning of a copy operation

 ± Select ± specifies which input members are to be copied

 ± Exclude ± specifies which members are to be

excluded

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 54/74

54

 IEBCOPY 

� COPY 

 ±  beginning of copy operation.

 ± may be more than one per invocation.

COPY OUTDD=DDNAME1,

INDD=DDNAME2

Outdd must be

on same line

as copy

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 55/74

55

 IEBCOPY 

� This example copies everything from 2 to 1

except identically named members.

COPY OUTDD=DDOUT,

INDD=(DD1,DD2,DD3)

� Input sets processed in same order as listed

here; i.e., all members from DD1, then

DD2, then DD3

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 56/74

56

 IEBCOPY 

� This job will not copy identically named

members.

 ± So if outset already has a member A, a member 

named A from input will not get copied.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 57/74

57

 IEBCOPY 

� To copy identically named members,

specify R .

INDD=((DD1,R )) note 2 sets of or« parentheses

OUTDD=(DD3),

INDD=((DD1,R ),DD2)

�  Now, any identically named members from

DD1 pds will replace those with same name

in DD3.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 58/74

58

 IEBCOPY 

� S  ELECT 

 ± Specifies members to be selected from input

dataset

 ± Can also use to rename selected members in

output PDS

 ± Must follow a Copy INDD statement, or anINDD statement

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 59/74

59

 IEBCOPY 

COPY OUTDD=DD1,

INDD=DD2

SELECT MEMBER =(MEM1,MEM2,MEM3)

� Copy only these three members«will not

replace identically named.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 60/74

60

 IEBCOPY 

SELECT MEMBER =((MEM1,R ),MEM2,MEM3)

 ± Guarantees MEM1 from input replaces any MEM1 in

output.

SELECT MEMBER =((MEM1,NEWMEM1[,R]),MEM2)

 ± Copies mem1 and mem2, but renames mem1 as

newmem1.SELECT MEMBER =((MEM1,,R )

 ± R eplaces, no new name.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 61/74

61

 IEBCOPY 

� When there is multiple input, the  search for 

members is as follows:

 ± 1st input specified is checked for mem1, mem2,

mem3

 ± 2nd specified input checked next.

 ± Etc. ± I.E., first input is checked first (totally ) for all

members, then 2nd input, etc.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 62/74

62

 IEBCOPY 

� If mem1 and mem2 found in 1st input and mem3

found in 2nd input, remaining input ignored.

� Any other mem1¶s or mem2¶s in any other input

are ignored.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 63/74

63

 IEBCOPY 

� EXCLUDE 

 ± Specifies members to be excluded from the copy

operation.

EXCLUDE MEMBER =(MEM1,MEM2,MEM3)

 ± Do not copy these members, but do copy the rest.

� Examples...

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 64/74

64

 IEBCOPY 

� Full Copy:

//S1 EXEC PGM=IEBCOPY

//SYSPR INT -----

//INSET DD DSN=X,-----------

//OUTSET DD DSN=Y,--------

//SYSIN DD *

COPY INDD=INSET

OUTDD=OUTSET

EXCLUDE MEMBER =(GAR B1,GAR B2)

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 65/74

65

 IEBCOPY 

� Compress Job:

//ONEDD DD DSN=FULLPDS

//SYSIN DD *

COPY INDD=ONEDD

OUTDD=ONEDD

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 66/74

66

 IEBCOMPR

� Compares 2 seq. data sets of 2 PDS¶s at

LR ECL level in order to, e.g., verify a

 backup copy.

� 2 sequential data sets are identical if 

 ± they contain the same number of lrecls, and

 ± records are identical

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 67/74

67

 IEBCOMPR

� If not identical, Compare will list

 ±  Names of DD statements that define the data

sets.

 ± R ecord and block numbers.

 ± The unequal records.

 ± Max of 10 unequal records found.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 68/74

68

 IEBCOMPR

� 2 PDS¶s are identical if 

 ± Corresponding members contain same number 

of records.

 ± R ecords are identical.

�  Nb: to compare 2 PDS¶s, member names in

one must have corresponding matches in theother 

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 69/74

69

 IEBCOMPR

� JCL Cards:

EXEC SYSPR INT(MSGS)

SYSUT1 (input data set to compare)

SYSUT2 (input data set to compare)

SYSIN control cards or DUMMY if input sets

are sequential

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 70/74

70

 IEBCOMPR

� CAR DS:

COMPAR E TYPOR G=PS|PO

 ± required if input is PDS¶s

 ± must be first if used

EXTS

 ± identifies user exit routines to be used

LABELS

 ± whether user labels are to be treated as data

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 71/74

71

 IEHLIST 

� Will list the

 ± Entrys in a catalog.

 ± Entrys in the directory(s) of 1 or more PDS¶s

(max = 10).

 ± Entrys in the VTOC.

� Any number of listings can be requested ina single execution of the program.

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 72/74

72

 IEHLIST 

� JCL:

EXEC SYSPR INT

ANYNAMEDD defines a permanently

mounted volume

(UNIT=DISK,VOL=SER =ACA10n,DISP=SHR )

SYSIN

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 73/74

73

 IEHLIST 

� CAR DS:

LISTCTLG to request a listing of a catalog

LISTVTOC to request a listing of the VTOC

LISTPDS directory of one or more PDS¶s

that reside on same volume

LISTPDS DSNAME=(pdsname,pdsname)(more than one OK if on same volume)

VOL=device=serial VOL=DISK=ACA10n

DUMP or  FOR MAT

8/6/2019 IBM Utilities Presentation

http://slidepdf.com/reader/full/ibm-utilities-presentation 74/74

 IEHLIST 

 ± Use FOR MAT for a PDS created by linkage

editor 

 ± Use DUMP for all other PDS¶s