12.07.2015 Views

z/OS V1R9.0 TSO/E Command Reference

z/OS V1R9.0 TSO/E Command Reference

z/OS V1R9.0 TSO/E Command Reference

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.

Example 9: Allocate a new sequential data set using an attributelistKnown:v The name that you want to give the new data set: M<strong>OS</strong>ER7.EX4.DATAv The number of tracks expected to be used: 10v DCB operands are in an attribute list named: ATRLST1attrib atrlst1 dsorg(ps) lrecl(80) blksize(3200)alloc da(ex4.data) new space(10,2) tracks using(atrlst1)Example 10: Allocate a new sequential data set with spaceallocated in blocks and using an attribute listKnown:v The new data set name: M<strong>OS</strong>ER7.EX5.DATAv The block length: 1000 bytesv The DCB attributes taken from attribute list: ATRLST3attrib atrlst3 dsorg(ps) lrecl(80) blksize(3200)alloc da(ex5.data) using(atrlst3) block(1000) +space(20,10) newExample 11: Allocate a new sequential data set with defaultspace quantities and using an attribute listKnown:v The new data set name: M<strong>OS</strong>ER7.EX6.DATAv The DCB attributes taken from attribute list: ATRLST5attrib atrlst5 dsorg(ps) lrecl(80) blksize(3200)alloc da(ex6.data) using(atrlst5) newExample 12: Allocate a new data set to contain the output from aprogramKnown:v The data set name: M<strong>OS</strong>ER7.OUT.DATAv The ddname: OUTPUTv You do not want to hold unused space.alloc dataset(out.data) file(output) new space(10,2) +tracks releaseExample 13: Allocate an existing multi-volume data set toSYSDA, with one device mounted for each volumeKnown:v The data set name: M<strong>OS</strong>ER7.MULTIVOL.DATAv Volumes: D95VL1, D95VL2, D95VL3v The ddname: SYSLIBalloc dataset(’moser7.multivol.data’) old parallel +file(syslib) volume(d95vl1,d95vl2,d95vl3) +unit(sysda)Example 14: Allocate an existing data set as the second file of astandard-label tapeKnown:v The data set name: M<strong>OS</strong>ER7.TAPE1.DATAv The volume: TAPEVLv The unit: 3480alloc dataset(’moser7.tape1.data’) label(sl) +unit(3480) volume(tapevl) position(2)ALLOCATE <strong>Command</strong>Chapter 1. <strong>TSO</strong>/E commands and subcommands 51

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

Saved successfully!

Ooh no, something went wrong!