5.8 DASDCOPY (Copy DASD f
ile to another DASD f
ile)

5.8.1 Function

The DASDCOPY utility is used to copy a DASD image file to another DASD image file.

5.8.2 Syntax

Descriptive

DASDCOPY [-option [-option ... ]] infile [SF=shadowfile]
outfile

Diagram

Êʬ¬¬ DASDCOPY ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬ infile ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê







-option ¬¬¬¨¬¬¬¯



ʬ¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬ outfile ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ


shadowfile ¬¬¬¯


5.8.3 Parameter

options:

-v

Display version information and help text.

-h

Display usage summary and quit.

-q

Quiet mode, do not display status.

-r

Replace the output file if it already exists.

-z

Compress output using zlib (default).

-bz2

Compress output using bzip2.

-0

Do not compress output (0 = zero).

-blks n

Size of output FBA file.

-cyls n

Size of output CKD file.

-a

Output CKD file will have alternate cylinders.

-lfs

Output CKD file will be a single file even if it exceeds 2 GB in size.

-o type

Output file type (CKD, CCKD, FBA, CFBA).


arguments:

infile

The input DASD file.

shadowfile

The (optional) name of an associated shadow DASD file.

outfile

The output DASD file.

5.8.4 Examples

Example 1:

Copy the compressed DASD file (CCKD) MVSRES.CCKD to SARESX.148, uncompress it (CKD file) and
replace an already existing file with the same name.

DASDCOPY -r -lfs D:/MVS/DASD/MVSRES.CCKD D:/MVS/DASD/MVSRESX.148

Example 2:

Copy the compressed DASD file (CCKD) MVSRES.CCKD to SARESX.148, uncompress it (CKD file) and
create 2 separate files for systems which do not support large file support.

DASDCOPY D:/MVS/DASD/MVSRES.CCKD D:/MVS/DASD/MVSRESX.148

5.8.5 Sample Utility Output

Sample 1:

Copy the DASD image file MVSRES.CCKD to the new DASD image file SARESX.148. Do not create a
large image file (> 2 GB), create two separate files instead.

D:\HERCULES>dasdcopy D:/MVS/DASD/MVSRES.CCKD D:/MVS/DASD/SARESX.148

HHCDU044I Creating 3390 volume : 3339 cyls, 15 trks/cyl, 56832 bytes/track

HHCDU041I 2519 cylinders successfully written to file D:/MVS/DASD/SARESX_1.148

HHCDU041I 820 cylinders successfully written to file D:/MVS/DASD/SARESX_2.148

/ 100% 50085 of 50085

HHCDC010I Copy successful !!!

Figure 37: DASDCOPY utility output

Previous Page Next Page