On 12/12/06, Colin Allinson <[EMAIL PROTECTED]> wrote:

I am linking to a fullpack minidisk and, in preparation for a copy, I want
to check the label on the source disk is what it should be.

How 'bout trackread?  (below, 123 is the virtual address of my disk).
The locate will select R03 (which holds the label).
 pipe trackread 123 0 0 | trackdeblock |locate 5.1 x03|fmtdump | cons
The output of that is
0000  00000000 03040050 E5D6D3F1 E5D6D3F1    *........VOL1VOL1*
0010  F3F1F0D9 C5E2F000 00000005 00000000    *310RES0.........*
0020  00404040 40404040 40404040 40404040    *.               *
0030  40404040 40000000 0000C3D7 E5D6D340    *     .....CPVOL *
0040  00010140 40404040 40404040 40404040    *...             *
0050  40404040 40404040 40404040             *                *

The first 8 byte is the CKD header. The x'04' says that there is a
4-byte key, and the next x'0050' says there is 80 byte data following
the header. For CP volumes you will find the key VOL1 and the data
start with VOL1 again. So if you're only looking for CP disks you
might simply check for R03 to have the entire first 16 byte, and take
the next 6 as your volser.

Rob

--
Rob van der Heij
Velocity Software, Inc
http://velocitysoftware.com/

Reply via email to