[Info-vax] fixing a saveset's attributes: attachment, not ftp

David Froble davef at tsoft-inc.com
Sun Jun 21 20:09:55 EDT 2015


Phillip Helbig (undress to reply) wrote:
> Assume that a backup saveset was emailed as an attachment with
> 
>    Content-Type: application/octet-stream;
> 
> After base64-decoding it, what SET FILE/ATTRIBUTES command is needed to 
> fix it, assuming that after decoding it has
> 
>    Record format:      Stream_LF, maximum 0 bytes, longest 32767 bytes
> 

This little basic program will tell you the blocksize.

         map (t) Z9$=2
         map (t) word w1%

         input "Saveset name"; F$

         open F$ for input as file 1%, &
                 organization undefined, &
                 recordtype any, &
                 access read

         get #1%
         r% = recount
         field #1%, r% as buff$
         z9$ = mid(buff$,41%,2%)

         print "Saveset blocksize is: "; w1%

         close 1%

         end

Then you use SET /FILE /Attribute=(LRL:<block size>, -
    ORG:SEQ, (not sure this is needed, do DIR/FULL)
    RFM:FIX)

Now, this is from memory.  First do a DIR/FULL to see some of the 
attributes.  Perhaps create a BACKUP save set and look at that file 
also, that should tell you what may need to be changed.  Not really all 
that hard.  Or, use some of the utilities available for this issue.




More information about the Info-vax mailing list