[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

467.0. "Patch file in place" by YALI::LASTOVICA (Stuck in a Lather-Rinse-Repeat loop) Thu May 07 1987 19:18

    I'm sure that I've missed something basic, please tell me so.  I
    want to patch a byte in an ISAM file header (change a key name).
    When I use PATCH/ABS the UPDATE command writes a new version of
    the file as a sequential file.  How can I patch files without a
    new version being created??  Do I have to write a program to do
    this??
T.RTitleUserPersonal
Name
DateLines
467.1PATCH/NONEW_VERSION ... what else??!!TIGGER::ZARLENGAWatch for 'Beverly Hills Buntz'!Thu May 07 1987 21:2636
	You did miss something basic.
    
PATCH

  /NEW_VERSION

   /NEW_VERSION (default)
   /NONEW_VERSION

    Controls whether a new version of the patched file is created or the
    contents   of   the  existing  file  are  modified  in  place.   The
    /NEW_VERSION qualifier is used in  conjunction  with  the  /ABSOLUTE
    qualifier  to  control  whether a new version of the patched file is
    created or the contents of the existing file are modified in  place.
    /NEW_VERSION  is  the  default.   If /NONEW_VERSION is selected, the
    PATCH command UPDATE will act as a checkpoint  operation,  that  is,
    all  modifications  made  to  the  file are written back to the file
    instead of waiting until image exit.  If /ABSOLUTE is not  specified
    with  /NONEW_VERSION,  /NONEW_VERSION  is  ignored,  that  is, a new
    version of the file will be created.  /NONEW_VERSION will need to be
    used  when  patching  large data files when there is not enough disk
    space to create a new version of the patched file.

                                    NOTE

            If /NEW_VERSION  is  specified,  the  file  will  be
            overwritten.   No  attempt  on the part of the user,
            including  pressing  <CTRL/Y>,  will  prevent   this
            result.   Therefore,  you should have a back up copy
            of the file before making any attempt to patch it.

    PATCH will always issue an  informational  message  at  image  exit,
    indicating that the file is being overwritten.


    	-mike z
467.2So I'm just a little HumanYALI::LASTOVICAStuck in a Lather-Rinse-Repeat loopFri May 08 1987 16:493
    It is amazing how dumb I can be sometimes.  I had a hallway discussion
    with a coworker yesterday.  I asked my .0 question.  I was greeted
    with a dumb look and the answer in .1.