Re: CKD commands and PDS writing




In a message dated 7/29/2005 3:40:29 A.M. Central Daylight Time,
gah@xxxxxxxxxxxxxxxx writes:

>As I understand, the complement to Format Write is READ TRACK
>which will read all the data on the track, counts, keys, and
>data blocks. If the rest of the track isn't physically
>erased then I would have thought READ TRACK would find it.




I wouldn't call Format Write the complement of Read Track. Read Track is a
specific command, and Format Write is a process employed by several different
kinds of specific write commands. There is also a non-formatting write
process. Format Write means that data is written onto a track and then the rest
of the track is at least logically erased after the last byte of that data is
written, whereas the logical erasure does not occur with a non-formatting
write command. Write Track, a command which would write an entire track rather
than just one record (aka block - see below), is the complement of Read
Track. There is a Write Track command for the 2105, but it is not publicly
documented yet.

Read Track command (X'DE'), depending on how it is oriented, can read all
the data records on a track including R0, but not the Home Address. After the
last data record is read, an extra 8 bytes of X'FF' are sent into central
storage to signal that the last record on the track was read. Read Track reads
records that logically exist (as opposed to physically exist) on the track.
I make the distinction because years ago when a track or part of a track was
logically erased it was also physically erased by writing X'00' bytes on the
track. Today's controllers do not necessarily physically erase data when a
logical erasure takes place. If you do a formatting write command that ends
at position X on the track, all the track bytes after point X are logically
erased, which means they cannot be read by any of the publicly documented
commands in IBM's control unit reference manuals, including Read Track.

Writing an EOF record on a track requires using the Write Count Key and Data
command, which is a Formatting Write, and thus causes logical erasure of all
track data after the EOF record.

In IBM's control unit reference books, which document the CCW commands that
interact with DASD controllers, the word "record" is used to describe the unit
of stored data on a track which consists of a count field, key field, and
data field. IBM's software access methods call this storage unit a "block" and
have a different meaning for "record", which is an unfortunate source of
confusion. To be more precise, the data field of a record on a track is
exactly equal to the block that is transferred by access methods, which may then
interpret the block as having one or more logical records within it. A
physical record on a track as viewed by the commands described in control unit
reference manuals equates to a logical block as viewed by access methods.

Bill Fairchild

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

.



Relevant Pages

  • Re: Where does fmtutil get its inputs?
    ... Here I first look into fmtutil.cnf to see that the 'latex' format ... uses the pdfetex engine. ... the command - thanks. ... been able to work out what texconfig does exactly, ...
    (comp.text.tex)
  • when section heading at top of page, top margin wrong!
    ... For a thesis, my university requires a top margin of 1" throughout, ... % and format the table of contents. ... \doublespacing % command from setspace package to invoke double ... reduce vertical space by 7pt. ...
    (comp.text.tex)
  • Re: Debug.exe for win32
    ... Format is: n) e address t=n ... Display the debug registers. ... R DRx command. ... The help output can be limited by specifying the first letterof the ...
    (alt.lang.asm)
  • Re: MacBook Pro with a new weird AWFUL bug
    ... is an ATSUI crash. ... command-z after every alignement command. ... You should then be able to format within whole ... publisher of the font and the date and version number of the font file). ...
    (microsoft.public.mac.office.word)
  • Re: Where is the NED set
    ... Or is this a new IOCDS and activate? ... control unit involved, and will not change unless a microcode PTF is installed ... Read Configuration Data CCW (X'FA' command code) described in the various ... display command or because of how MVS is behaving, ...
    (bit.listserv.ibm-main)