HP3000-L Archives

June 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Thu, 28 Jun 2001 15:50:20 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
...
> Even if all the records appear to end with numeric and sequentially
> increasing values, you can't be sure that what you're looking at isn't
> customer application data rather than editor line numbers.

Thus, the :PRINT ...;NONUM option.  The PRINT CI command determines if
the file is numbered or not, unless "NONUM" is specified.  Here is the
algorithm used by PRINT and other CI code to see if a file is numbered:

----------------------
Loop until EOF or until first 10 records are read   #don't do this for MSG
files...
   If (the record length > 8 bytes) and
      (the last 8 bytes are all numeric) and
      (the current line number > past line number) then
         keep Looping
   Else
         stop Looping
   EndIf
EndLoop
----------------------

  FWIW,
  Jeff Vance, CSY

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2