Item Subject: Message not deliverable
A short while ago, I wrote:
> Editor Qedit
> ----------------------- ---------------------
>
> /T DATA10 /HOLDQ DATA10
> /HQ ALL
Actually, this isn't good enough. In this example, DATA10 contains
10 bytes of *digits*. With a single record, both editors think the
file was kept numbered. With two identical records, EDITOR gives an
error saying the numbers are out of sequence, while Qedit recognizes
that a numbered file has increasing numbers, so this must NOT be a
numbered file.
The commands should have been:
/T DATA10,UNN /HOLDQ DATA10,UNN
/HQ ALL
(I could not find where "UNN" is documented as a HOLD parm in Qedit.)
> /T DATA25 /T DATA25
> /SET LEFT=26 /SET LEFT=26
...
> /RQ ALL,HOLDQ,NOW /RQ $HOLD ALL
...
> /SET LEFT=1 /SET LEFT=1
> /K DATA35,UNN /K DATA35,UNN
This is not entirely accurate.
In *both* editors, setting the left margin back to 1 is not enough,
since the length (which was bumped up to 26 when the left margin was
set past the record length) is still at 26. Keeping the file at this
point results in (surprise) 26-byte records. Fortunately, both editors
realized that the record length was being extended, so setting the
length to 35 is sufficient.
In Qedit, even though the margins (not the record length) govern how
much of each record is /Kept, setting the length up to 35 moved the
right margin as well, so the entire record is kept.
The commands should have been:
/SET LEFT=1,LENGTH=35 /SET LENGTH=35,LEFT=1
/K DATA35,UNN /K DATA35,UNN
This one surprised me. Qedit accepts setting both LENGTH and LEFT
in the same command if LENGTH is first, but not otherwise.
So see -- this really WAS an educational exercise! ;)
--Glenn
|