02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

356 TAPELABEL Procedure Chapter 16<br />

Example 5: Copying Multiple Files from Multiple Input Tapes The next job copies<br />

several files from several input tape volumes to one output tape volume:<br />

TAPELABEL Procedure<br />

//REARRNGE JOB account,name<br />

// EXEC <strong>SAS</strong><br />

//DEN2IN DD UNIT=(2927-4,,DEFER),LABEL=(,BLP)<br />

//DEN3IN DD UNIT=(2927-3,,DEFER),LABEL=(,SL)<br />

//TAPE1 DD UNIT=TAPE,DISP=SHR,VOL=SER=XR8475,<br />

// LABEL=(,BLP)<br />

//TAPE2 DD UNIT=TAPE,DISP=OLD,VOL=SER=BKT023,<br />

// DSN=first-file-dsname<br />

//OUTPUT DD UNIT=(3400-5,,DEFER),DISP=(,KEEP)<br />

//SYSIN DD *<br />

proc tapecopy label=sl den=6250 nolist<br />

outdd=output outvol=histpe;<br />

invol indd=den2in invol=ptftp0;<br />

files 2-4 8-eov 7 6;<br />

invol indd=tape1;<br />

files 5 7 9-eov;<br />

invol indd=tape2;<br />

files 4 5 1;<br />

invol indd=den3in invol=s03768<br />

dsn=’xrt.bkt120.g0081v00’;<br />

files 1-6 22-34;<br />

invol invol=so3760 dsn=’t.bkt120.g0023v00’;<br />

files 4 5 6 9;<br />

invol indd=tape2;<br />

files 7-eov;<br />

run;<br />

/*<br />

//<br />

Writes the label in<strong>for</strong>mation of an IBM standard-labeled tape volume to the <strong>SAS</strong> procedure output<br />

file<br />

z/<strong>OS</strong> specifics: all<br />

Syntax<br />

PROC TAPELABEL ;<br />

Details<br />

The procedure writes in<strong>for</strong>mation from the tape label, including the data set name,<br />

DCB in<strong>for</strong>mation, and data set history, to the <strong>SAS</strong> procedure output file.<br />

Each tape volume must have a DDname allocated <strong>for</strong> it be<strong>for</strong>e that volume can be<br />

read by the TAPELABEL procedure. Multiple tape volumes can be read in one PROC<br />

TAPELABEL statement, using a list of DDnames in the DDNAME= option, as shown

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!