• Aucun résultat trouvé

IBCDASDI Examples

Dans le document OS/VS1 Utilities (Page 40-45)

IBCDASDI Example 1

The examples that follow illustrate some of the uses of mCDASDI. See the IBCDASDI utility control statement descriptions for complete device dependent information. Figure 2-3 can be used as a quick reference guide to IBCDASDI examples. The numbers in the "Example" column point to examples that follow:

Operation

A disk volume is to be initialized with surface analysis. (2305 and 2314 only) A disk volume is to be initialized without surface analysis. (2305 and 2314 only) A disk volume to be used as the system residence volume is to be initialized. An IPL program is included in TXT format.

A 3350 volume is to be formatted for compatible 3330-1 mode and initialized A 3344 volume is to be initialized.

Flagged (defective) tracks are to be tested and recovered if no (data check) errors occur.

Three alternate tracks are to be assigned on a disk volume.

Figure 2-3. IBCDASDI Example Directory

Example

Note: Examples which use disk in place of actual device-ids, must be changed before use. See the Device Support section, in the Introduction to this manual, for valid device-id notation.

In this example, a 2305 volume is initialized with surface analysis.

INIT JOB 'INITIALIZE 2305' MSG TODEV=1403,TOADDR=00E

72

DADEF TODEV=2305,TOADDR=140,VOLID=SCRATCH,FLAGTEST=NO, C MODEL=2

VLD NEWVOLID=111111 VTOCD STRTADR=40,EXTENT=8

END

The control statements are discussed below:

• JOB initiates the IBCDASDI job.

• MSG defines the 1403 on channel 0, unit OE, as the output message device.

• DADEF specifies that a 2305 volume on channell, unit 40, is to be initialized.

No check is to be made for previously flagged tracks.

fW'P!'Mf'Diit"'reww\r,mWfflIL'*n'*"l:nlr\'$f .... t t ttW ... t*WHd±t » b*Wttrl WHt"tt

IBCDASDI Example 2

IBCDASDI Example 3

• VLD specifies 111111 as the volume serial number of the volume to be initialized.

• VTOCD specifies the starting address and length in tracks of the volume table of contents.

In this example, a disk volume is initialized. No surface analysis is performed with the initialization.

INIT JOB INITIALIZE DISK

MSG TODEV=1403,TOADDR=00E

DADEF TODEV=disk, TOADDR= 140, VOLID=SCRATCH, BYPASS=YES VLD NEWVOLID=230500

VTOCD STRTADR=1,EXTENT=7 END

The control statements are discussed below:

• DADEF specifies that a disk volume is to be initialized and specifies the channel and unit number. No check is to be made for the volume serial number or for defective tracks.

• VLD specifies the volume serial number of the volume to be initialized.

• VTOCD specifies that the volume table of contents is to begin on track 1 and is to extend over seven tracks. The VTOC terminates on the last track of the first cylinder.

• END specifies the end of the IBCDASDI job.

In this example, a disk volume is initialized for later use as a system residence volume. An IPL program is included in standard TXT format.

INIT JOB 'INITIALIZE DISK' MSG TODEV=1403,TOADDR=00E

DADEF TODEV=disk, TOADDR= 1 50, IPL=YES , VOLID=SCRATCH VLD NEWVOLID=P10000,OWNERID=BROWN,ADDLABEL=2 VTOCD STRTADR=2,EXTENT=7

IPLTXT (IPL program text statements)

END

The control statements are discussed below:

• DADEF specifies that a disk volume is to be initialized and specifies the channel number and unit number. An IPL program is to be included.

• VLD specifies a volume serial number and owner identification for the volume to be initialized. It also specifies that space is to be allocated for two additional labels.

• VTOCD specifies that the volume table of contents is to begin on track 2 and is

I

to extend over seven tracks.

I •

IPLTXT specifies the beginning of IPL program text statements.

• END specifies the end of IPL program text statements. Because IPL text is included, END begins in column 2.

IBCDASDI Example 4

IBCDASDI Example 5

IBCDASDI Example 6

In this example, a 3350 volume (in 3350 or 3330 format) will be reformatted to compatible 3330-1 format. HA and RO fields will be rewritten. Each flagged (defective) track encountered will be recovered.

INIT JOB The control statements are discussed below:

72 C

• DADEF specifies that a 3350 in 3330-1 compatibility mode is to be reformatted to 3330-1 format and initialized. Flagged (defective) tracks will be tested and recovered (unflagged) if no errors occur.

• VLD specifies 333011 as the volume serial number.

• VTOCD specifies a one cylinder VTOC in the center of the 3330-1 volume.

In this example, a 3344 volume will be initialized. Flagged (defective) tracks will be tested and recovered (unflagged) if no errors occur. RO will be rewritten on each track. The control statements are discussed below:

• DADEF specifies a 3340 volume is to be initialized.

• VLD specifies 3340AA as the volume serial number.

72

C

• VTOCD specifies starting address and length of the volume table of contents.

In this example, three alternate tracks are assigned to a disk volume, without reinitialization of the volume. The check for a defective track is bypassed when the first two of the three tracks are assigned.

72 ALTRK JOB ASSIGN ALTERNATE TRACKS ON DISK

MSG TODEV=1052,TOADDR=009

STMTl GETALT TODEV=d~k,TOADDR=150,VOLID=P20000, C BYPASS=YES,TRACK=006FOOOl

STMT2 GETALT TODEV=disk, TOADDR=150, VOLID=P20000, C BYPASS=YES,TRACK=0091 0004

STMT3 GETALT TODEV=d~k,TOADDR=150, C

TRACK=004BOO07,VOLID=P20000 END

iLflhWHIjW-tiUf,&Ut¥"lb!vt 'Ir .... W'.Htldtrt±t'·bl ttri tHHd"d*\

The control statements are discussed below:

• The first and second GET AL T statements bypass the check for defective tracks.

• The third GET AL T statement causes the check for a defective track to be made because BYPASS is not included.

Dans le document OS/VS1 Utilities (Page 40-45)