'\'Fish\' (David B. Trout)' david.b.trout@gmail.com [hercules-390]
2018-05-21 19:22:58 UTC
I'm trying to code a small function that constructs a dasd VOL1 label and already know what it looks like for CKD, but I'm a little unclear as to what it should look like for FBA dasd.
I found a web page at IBM that describes the VOL1 label:
<https://www.ibm.com/support/knowledgecenter/en/SSB27H_6.2.0/fa2mr_app_c_volume_label_on_disk.html>
but it's unclear to me as to what the actual format is for some of the fields. For example, the VTOC address is binary CCHHR for CKD, but for FBA should it be binary 00BBBBBBBB or BBBBBBBB00? If the block number of the VTOC is block number 2 (typical), then should it be X'0000000002' or X'0000000200'? (i.e. should the first byte be the binary zero or the last byte? I'm guessing the first byte, thus X'0000000002', but I'm not sure.
Also, I seem to recall seeing some numeric fields in a HDR1 label being character numeric and not binary, so I'm also a little unclear as how the CI-size, blocks per CI and labels per CI field fields should be formatted. Should they be character "1024", "0004" and "0056" respectively? Or should they be X'00000400', X'00000004' and X'00000038' binary?
If someone has access to a real FBA drive at their shop I'd really appreciate seeing a hex dump of block number 1 of the drive!
Thanks!
I found a web page at IBM that describes the VOL1 label:
<https://www.ibm.com/support/knowledgecenter/en/SSB27H_6.2.0/fa2mr_app_c_volume_label_on_disk.html>
but it's unclear to me as to what the actual format is for some of the fields. For example, the VTOC address is binary CCHHR for CKD, but for FBA should it be binary 00BBBBBBBB or BBBBBBBB00? If the block number of the VTOC is block number 2 (typical), then should it be X'0000000002' or X'0000000200'? (i.e. should the first byte be the binary zero or the last byte? I'm guessing the first byte, thus X'0000000002', but I'm not sure.
Also, I seem to recall seeing some numeric fields in a HDR1 label being character numeric and not binary, so I'm also a little unclear as how the CI-size, blocks per CI and labels per CI field fields should be formatted. Should they be character "1024", "0004" and "0056" respectively? Or should they be X'00000400', X'00000004' and X'00000038' binary?
If someone has access to a real FBA drive at their shop I'd really appreciate seeing a hex dump of block number 1 of the drive!
Thanks!
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: ***@softdevlabs.com
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: ***@softdevlabs.com