DASDFormatJob (extends Job)

Purpose: Queue-able job to format (using CPFMTXA) a DASD pack.

Properties:

DASD dasdToFormat;

The DASD pack that will be formatted.

String volumeLabel

The volume label we will use for the format.

String packType

One of PERM, VDISK, TDISK, PAGE, SPOOL. The entire pack will be allocated to the indicated type.

Public Methods:

DASDFormatJob(DASD dasdToFormat, String volLabel, String pType)

Creates new job.

getDASD

Returns the DASD object to be formatted.

getVolLabel

Returns the volume label we are going to use.

getPackType

Returns the pack type for the format.

boolean executeJob()

Performs the actual format and returns true only if the job succeeds.

Private Methods:

Notes

Could also support LABEL and ALLOC parameters of CPFMTXA. Later.

Support full pack formats only. Maybe do better later.

2004-02-29T11:12:51