stephen linkin houston community college 13-feb-07 © 2002 - mike murach & associates, 2006 -...

14
13-Feb-07 © 2002 - Mike Murach & Associ ates, 2006 - HCC, IB M 1 Stephen Linkin Houston Community College Managing Tape Data Sets Chapter # 7 Chapter # 7

Upload: sheila-mavis-banks

Post on 24-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

13-Feb-07

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1

Stephen LinkinHouston Community College

Managing Tape Data Sets

Chapter # 7Chapter # 7

Page 2: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

2

Objectives

Applied objectiveApplied objective Code the JCL necessary to allocate a tape data set using:Code the JCL necessary to allocate a tape data set using:

a.a. one or two unitsone or two units

b.b. one or more specific or non-specific volumesone or more specific or non-specific volumes

c.c. whatever form of label processing is appropriatewhatever form of label processing is appropriate

Page 3: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

3

Objectives

Knowledge objectivesKnowledge objectives List the reasons tape data sets are used in mainframe shops.List the reasons tape data sets are used in mainframe shops. Distinguish between tape cartridges and tape reels.Distinguish between tape cartridges and tape reels. Describe the standard labels used for tape data sets.Describe the standard labels used for tape data sets. List other types of tape label processing.List other types of tape label processing. Explain why tape data may need to be converted Explain why tape data may need to be converted

between EBCDIC and ASCII format.between EBCDIC and ASCII format. Distinguish between tape multi-volume files and Distinguish between tape multi-volume files and

multi-file volumes.multi-file volumes. Describe the use of the RETPD or EXPDT Describe the use of the RETPD or EXPDT

parameter in a DD statement for a tape parameter in a DD statement for a tape data set.data set.

Describe the purpose of the LABEL parameter Describe the purpose of the LABEL parameter in a DD statement for a tape data set.in a DD statement for a tape data set.

Page 4: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

4

A Typical File Backup Process

Tapereels

Backup utilityorMaster file

Page 5: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

5

The Labels On A Single File Tape VolumeThe Labels On A Single File Tape Volume

The Labels For A File That Requires Four VolumesThe Labels For A File That Requires Four Volumes

The Labels For A Volume That Contains Two FilesThe Labels For A Volume That Contains Two Files

Volumelabels

File headerlabels

Data recordsEnd-of-file

labelsUnused

Volumelabels

File headerlabels

Data recordsEnd-of-volume

labels

Volumelabels

File headerlabels

Data recordsEnd-of-volume

labels

Volumelabels

File headerlabels

Data recordsEnd-of-volume

labels

Volumelabels

File headerlabels

Data records UnusedEnd-of-file

labels

Volumelabels

File headerlabels

Data recordsEnd-of-file

labelsData records

File headerlabels

End-of-filelabels

Standard Label Layouts

Page 6: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

6

Syntax Of A DD Statement For A Tape Data Set

//ddname DD DSNAME=data-set-name,//ddname DD DSNAME=data-set-name, DISP=(status,normal-disp,abnormal-disp) DISP=(status,normal-disp,abnormal-disp) [ ,UNIT=(subparameters) ] [ ,UNIT=(subparameters) ] [ ,VOL=(subparameters) ] [ ,VOL=(subparameters) ] [ ,RETPD=nnnn | EXPDT=date ] [ ,RETPD=nnnn | EXPDT=date ] [ ,LABEL=(subparameters) ] [ ,LABEL=(subparameters) ] [ ,DCB=(options) ] [ ,DCB=(options) ]

Simple DD statements for tape Simple DD statements for tape The allocation of an existing cataloged data setThe allocation of an existing cataloged data set

//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD

The allocation of an existing uncataloged data setThe allocation of an existing uncataloged data set//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD,//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD, UNIT=TAPE,VOL=SER=300123 UNIT=TAPE,VOL=SER=300123

The allocation of an existing, uncataloged multi-volume data setThe allocation of an existing, uncataloged multi-volume data set//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD,//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD, UNIT=TAPE, UNIT=TAPE, VOL=SER=(300123,300124,300125,300126) VOL=SER=(300123,300124,300125,300126)

The allocation of a new data set on an unspecified tape volumeThe allocation of a new data set on an unspecified tape volume//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=(NEW,CATLG,DELETE),//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=(NEW,CATLG,DELETE), UNIT=TAPE UNIT=TAPE

Page 7: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

7

Parameter Syntax (UNIT=)

{UNIT=(unit[,count][,DEFER]){UNIT=(unit[,count][,DEFER]){UNIT=AFF=ddname}{UNIT=AFF=ddname}

Examples of UNIT parametersExamples of UNIT parametersA request for two tape drivesA request for two tape drives

UNIT=(TAPE,2)UNIT=(TAPE,2)A request that defers the mounting of the tapeA request that defers the mounting of the tape

UNIT=(TAPE,,DEFER)UNIT=(TAPE,,DEFER)A request for the same tape drive used by TAPEDD1A request for the same tape drive used by TAPEDD1

UNIT=AFF=TAPEDD1UNIT=AFF=TAPEDD1

Page 8: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

8

Parameter Syntax (VOL=)

VOL=([PRIVATE][,RETAIN][,volume-sequence][,volume-count]VOL=([PRIVATE][,RETAIN][,volume-sequence][,volume-count] [,SER=(serial,serial,...)]) [,SER=(serial,serial,...)])

Examples of VOLUME parametersExamples of VOLUME parametersRequest for four named volumesRequest for four named volumes

VOL=SER=(163013,163014,163015,163016)VOL=SER=(163013,163014,163015,163016)Non-specific request for up to 20 volumesNon-specific request for up to 20 volumes

VOL=(,,,20)VOL=(,,,20)Request the third volume of a multi-volume data setRequest the third volume of a multi-volume data set

VOL=(,,3)VOL=(,,3)Specific request for two private volumesSpecific request for two private volumes

VOL=(PRIVATE,SER=(MMA301,MMA302))VOL=(PRIVATE,SER=(MMA301,MMA302))Specific request for a private volume that shouldn’t be dismountedSpecific request for a private volume that shouldn’t be dismounted

VOL=(PRIVATE,RETAIN,SER=MMA400)VOL=(PRIVATE,RETAIN,SER=MMA400)

Page 9: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

9

Parameter Syntax (RETPD=)

RETPD=nnnnRETPD=nnnn

Example of a RETPD parameterExample of a RETPD parameter

//LNMAST DD DSNAME=MMA2.LN.MASTER,DISP=(NEW,KEEP),//LNMAST DD DSNAME=MMA2.LN.MASTER,DISP=(NEW,KEEP),// UNIT=TAPE,VOL=SER=300123,// UNIT=TAPE,VOL=SER=300123,RETPD=30RETPD=30

Page 10: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

10

Parameter Syntax (EXPDT=)

EXPDT= {yyyy/ddd}EXPDT= {yyyy/ddd}

Example of an EXPDT parameterExample of an EXPDT parameter

//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,// DISP=(NEW,CATLG,DELETE)// DISP=(NEW,CATLG,DELETE)// UNIT=TAPE,// UNIT=TAPE,EXPDT=2007/180EXPDT=2007/180

Page 11: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

11

Parameter Syntax (LABEL=)

CodeCode MeaningMeaningSLSL Standard IBM labels (the default).Standard IBM labels (the default).SULSUL Standard IBM labels as well as user labels.Standard IBM labels as well as user labels.ALAL ISO/ANSI/FIPS version 3 labels.ISO/ANSI/FIPS version 3 labels.AULAUL ISO/ANSI/FIPS version 3 labels and user ISO/ANSI/FIPS version 3 labels and user

labels.labels.

CodeCode MeaningMeaningNSLNSL Non-standard labels.Non-standard labels.NLNL No labels.No labels.BLPBLP May or may not have labels, but label May or may not have labels, but label

processing is bypassed.processing is bypassed.LTMLTM Same as BLP, except that the leading Same as BLP, except that the leading

tapemark on the volume is skipped.tapemark on the volume is skipped.

LABEL=([data-set-sequence][,label-type]) LABEL=([data-set-sequence][,label-type])

Example of a LABEL parameterExample of a LABEL parameter

//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD//JOURNAL DD DSNAME=MMA2.AR.JOURNAL,DISP=OLD// UNIT=TAPE,VOL=SER=300127,// UNIT=TAPE,VOL=SER=300127,LABEL=3LABEL=3..

Page 12: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

12

Examples Of LABEL Parameters

IBM Standard Labels With User LabelsIBM Standard Labels With User LabelsLABEL=(,SULLABEL=(,SUL))

Processing Of The Fourth Data Set And Processing Of The Fourth Data Set And ISO/ANSI/FIPS Standard LabelsISO/ANSI/FIPS Standard Labels

LABEL=(4,AL)LABEL=(4,AL)

Label Processing Is Bypassed And The Second Label Processing Is Bypassed And The Second Data Set (The First Set Of Data Records On A Tape Data Set (The First Set Of Data Records On A Tape With Standard Labels) Be Processed With Standard Labels) Be Processed

LABEL=(2,BLP)LABEL=(2,BLP)

The Tape Volume Is UnlabelledThe Tape Volume Is UnlabelledLABEL=(,NL)LABEL=(,NL)

Page 13: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

13

Parameter Syntax (DCB=)

DCB=([DSORG=PS][,RECFM=x][,LRECL=n][,BLKSIZE=n]DCB=([DSORG=PS][,RECFM=x][,LRECL=n][,BLKSIZE=n] [,OPTCD=Q] [,OPTCD=Q] [,DEN=n] [,DEN=n] [,TRTCH={COMP}{ [,TRTCH={COMP}{NOCOMPNOCOMP}]}]

Examples of DCB parametersExamples of DCB parameters

Data set to be written in ASCII formatData set to be written in ASCII formatDCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=4000,DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=4000,OPTCD=QOPTCD=Q))

Data set written with 1600 bpi on a dual-density tape driveData set written with 1600 bpi on a dual-density tape driveDCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=4000,DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=4000,DEN=3DEN=3))

Data set to be written with compaction on a cartridge tape driveData set to be written with compaction on a cartridge tape driveDCB=(DSORG=PS,RECFM=FB,LRECL=80,DCB=(DSORG=PS,RECFM=FB,LRECL=80, BLKSIZE=4000, BLKSIZE=4000,TRTCH=COMPTRTCH=COMP))

Page 14: Stephen Linkin Houston Community College 13-Feb-07 © 2002 - Mike Murach & Associates, 2006 - HCC, IBM 1 Managing Tape Data Sets Chapter # 7

© 2002 - Mike Murach & Associates, 2006 - HCC, IBM

14

End Presentation