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

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2771.0. "How to reduce the size location?" by BLG03::CAVALLI () Fri May 28 1993 14:32

  Hi!

  
  Using ALL-In-1 V3.0

  

  A customer of mine have a lot of very big document (200/300 pages), he
 
 craete and modify document using standard Create and Edit option.


  On WPS-PLUS session if he use the PF1-W (Write document) command to
 
 copy all the document on a new one, the new document have the same
 
  contents but fewer size location.

  

  Example: original document have 161 pages and 1113 blocks-size,
 
  the new document create with PF1-W option have the same 161 pages (no
  difference in the text) but 961 blocks-size!!!


   Using the "copy document" or the "convert document" (from WPSPLUS t
   WPSPLUS) options the document have the same size as the original
  
   document.

  
   I'd like to know if exist a WPS-PLUS or ALL-IN-1 or VMS commands to
   reduce the document size location.

   Thanks & regards

   Chiara
T.RTitleUserPersonal
Name
DateLines
2771.1Try FREE::WPS-PLUS??WOTVAX::64354::DoranI like traffic lightsFri May 28 1993 16:4213
Hi,

You'd probably be better looking in the WPS+ conference for this 
(FREE::WPS-PLUS).

I seem to remember finding this problem before at a customer site. The 
response was something along the lines that WPS+ puts the cursor movements 
(up, down, page etc.) into the document as you go along. A gold-write gets 
rid of these control characters - thus the document size is decreased.

Cheers,

Andy
2771.2Block v. record copiesIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Fri May 28 1993 17:3125
When ALL-IN-1 does a:

    MCD (Make copy of document), which always implies creating an output
    document of the same type, or

    CD (Convert document) when the input and output types are the same


it does a block mode copy because that is much quicker than a record mode
copy.  

It is possible, but I don't know for certain, that doing a record mode copy
which forces the files to be read and written using the WPS-PLUS text
dataset.  The API command to do this is: 

    copy 'IN.WPL' 'OUT.WPL' TXT$DSAB_WPSPLUS TXT$DSAB_WPSPLUS


Ask in the WPS-PLUS conference, or ask your customer to try this.  If it 
does reduce the size of the file let me know and I'll tell you how to 
create some entries in the FORMAT and DOCUMENT CONVERSIONS master files to 
provide this operation at the user interface.


Richard
2771.3A WPS-PLUS document is like an RMS file...IOSG::PYEGraham - ALL-IN-1 Sorcerer's ApprenticeFri May 28 1993 18:1314
    WPS-PLUS edits in-place, i.e. it makes changes inside the file without
    creating a new version. This tends to have the effect of making the file
    a bit inefficient after it has been edited several times. It's the same
    effect as happens to an RMS file after it has been randomly updated.
    
    When you make a copy with MCD, GOLD/W etc., only the nicely formated
    text is written out, and so the file becomes smaller. There isn't an
    equivalent of $CONVERT/FDL for WPS-PLUS documents, the only way to do
    it is to make a copy as you discovered.
    
    Graham
    
    PS I don't know what you used to type your note, but it was full of
    miscellaneous '
' characters.
2771.4Only WPS-PLUS knows enough to do thisIOSG::SHOVEDave Shove -- REO2-G/M6Fri May 28 1993 18:2929
    I'm no great WPS-PLUS expert, but . . .
    
    WPS-PLUS edits documents "in place", that is it doesn't create a new
    version of a document's file when you edit it (unlike "traditional"
    editors like TPU, EVE, etc).
    
    Because of this, a document which has been editted lots of times gets
    fragmented - all the old stuff is still in there, with pointers around
    it and a fairly comlicated structure.  So the file size (in blocks)
    includes all this "old stuff" as well as the current stuff.
    
    When you use WPS-PLUS to "copy" the document (by using WPS-PLUS' Gold-W
    or Gold-G, or by mailing the document off-node by the way), WPS-PLUS
    will compress all this "garbage" out of the file, resulting in a smaller
    block size.
    
    Copy ( or convert WPS-PLUS -> WPS-PLUS) just does an RMS copy of the
    file. RMS doesn't understand the WPS-PLUS "internals" of the file, so
    doesn't touch it. So the size doesn't change.
    
    The only way to get a document's file to "shrink" is to use WPS-PLUS to
    do it (as you found), because only WPS-PLUS knows what's "garbage" and
    what isn't. So Gold-W, or Create a new document and Gold-G the old one,
    will do it.
    
    I suppose you could write a UDP to do it.
    
    Dave.
    
2771.5Great minds think alike . . .IOSG::SHOVEDave Shove -- REO2-G/M6Fri May 28 1993 18:301