* Re: User Buffer?
[not found] <3s8fqm$6b7@gondor.sdsu.edu>
@ 1995-06-21 4:00 ` Carl J Lydick
1995-06-21 4:00 ` Steve Lionel
1 sibling, 0 replies; 5+ messages in thread
From: Carl J Lydick @ 1995-06-21 4:00 UTC (permalink / raw)
In article <3s8fqm$6b7@gondor.sdsu.edu>, jernigan@mail.sdsu.edu (Wayne J. Jernigan) writes:
=How do I alter the User Buffer size for manipulating files? I've been
=through the manuals and can't seem to figure it out! Here are the
=particulars:
=
=Command Line:
=
= diff idwire.xls [users.todd.cdr.ed02.id]idwire.xls
=
=Error Return:
=
= %DIFF-F-READERR, error reading IDWIRE.XLS;1
= -RMS-W-RTB, 549 byte record too large for user's buffer
=
=Again, how (and with what utility) do I alter the user buffer in order
=to allow for a file of this size to be "compared"?
You don't. You'd have to patch DIFF.EXE. On the other hand, I suspect that
what's causing that error is that the longest record length field in
IDWIRE.XLS;1's file header is set improperly; i.e., that DIFF is allocating a
user buffer based on the LRL field, and eventually reading a record that's
longer than that buffer. To check this hypothesis, do a DIR/FULL on
IDWIR.XLS;1 and see what it says the longest record in the file is. If it's
something lss than 549, then try using CONVERT to to make a copy of the file,
thn use DIFF on that.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: User Buffer?
[not found] <3s8fqm$6b7@gondor.sdsu.edu>
1995-06-21 4:00 ` User Buffer? Carl J Lydick
@ 1995-06-21 4:00 ` Steve Lionel
1995-06-21 4:00 ` Carl J Lydick
1995-06-21 4:00 ` bill
1 sibling, 2 replies; 5+ messages in thread
From: Steve Lionel @ 1995-06-21 4:00 UTC (permalink / raw)
In article <3s8fqm$6b7@gondor.sdsu.edu>, jernigan@mail.sdsu.edu
(Wayne J. Jernigan) writes:
|> diff idwire.xls [users.todd.cdr.ed02.id]idwire.xls
|> %DIFF-F-READERR, error reading IDWIRE.XLS;1
|> -RMS-W-RTB, 549 byte record too large for user's buffer
|>
|>Again, how (and with what utility) do I alter the user buffer in order
|>to allow for a file of this size to be "compared"? Yes, I have SYSTEM
|>privileges.
You can't. The buffer size is hardcoded in the DIFFERENCES utility code.
I suspect the maximum size is 512.
--
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For a summary of Digital's Internet services, send mail to info@digital.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: User Buffer?
1995-06-21 4:00 ` Steve Lionel
1995-06-21 4:00 ` Carl J Lydick
@ 1995-06-21 4:00 ` bill
1995-06-21 4:00 ` Carl J Lydick
1 sibling, 1 reply; 5+ messages in thread
From: bill @ 1995-06-21 4:00 UTC (permalink / raw)
In article <3s9sc3$n7i@jac.zko.dec.com>, lionel@quark.enet.dec.com (Steve Lionel) writes:
|>
|> In article <3s8fqm$6b7@gondor.sdsu.edu>, jernigan@mail.sdsu.edu
|> (Wayne J. Jernigan) writes:
|> |> diff idwire.xls [users.todd.cdr.ed02.id]idwire.xls
|> |> %DIFF-F-READERR, error reading IDWIRE.XLS;1
|> |> -RMS-W-RTB, 549 byte record too large for user's buffer
|> |>
|> |>Again, how (and with what utility) do I alter the user buffer in order
|> |>to allow for a file of this size to be "compared"? Yes, I have SYSTEM
|> |>privileges.
|>
|> You can't. The buffer size is hardcoded in the DIFFERENCES utility code.
|> I suspect the maximum size is 512.
|> --
|>
|> Steve Lionel Mail: lionel@quark.enet.dec.com
|> DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
|> Digital Equipment Corporation CompuServe: 75263,3001
|> 110 Spit Brook Road, ZKO2-3/N30
|> Nashua, NH 03062-2698 "Free advice is worth every cent"
|>
|> For a summary of Digital's Internet services, send mail to info@digital.com
|>
You can set the file attributes on the file so that the standard
OpenVMS utilities like Mail, Diff, etc. can more easily handle these
files and still be able to use them from Excel. I create a symbol
FIXED*512 == "SET FILE/ATTRIBUTE=(RFM:FIX,RAT:NONE,ORG:SEQ,LRL:512)"
Then do $ fixed file.xls;
Bill
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: User Buffer?
1995-06-21 4:00 ` Steve Lionel
@ 1995-06-21 4:00 ` Carl J Lydick
1995-06-21 4:00 ` bill
1 sibling, 0 replies; 5+ messages in thread
From: Carl J Lydick @ 1995-06-21 4:00 UTC (permalink / raw)
In article <3s9sc3$n7i@jac.zko.dec.com>, lionel@quark.enet.dec.com (Steve Lionel) writes:
=
=In article <3s8fqm$6b7@gondor.sdsu.edu>, jernigan@mail.sdsu.edu
=(Wayne J. Jernigan) writes:
=|> diff idwire.xls [users.todd.cdr.ed02.id]idwire.xls
=|> %DIFF-F-READERR, error reading IDWIRE.XLS;1
=|> -RMS-W-RTB, 549 byte record too large for user's buffer
=|>
=|>Again, how (and with what utility) do I alter the user buffer in order
=|>to allow for a file of this size to be "compared"? Yes, I have SYSTEM
=|>privileges.
=
=You can't. The buffer size is hardcoded in the DIFFERENCES utility code.
=I suspect the maximum size is 512.
Nope. The maximum buffer size (32767) is hard-coded into RMS. DIFF allocates
a buffer based on the longest-record-length field in the file header (well,
DIFF's apparently got a default buffer size, and will use that if the LRL is
smaller), and will gladly handle records of up to 32767 bytes, if the LRL field
is set correctly. Consider the following:
$ SET NOON
$ IF F$SEARCH("TEST.FIX") .NES. "" THEN DELETE TEST.FIX;*
$ CONVERT/FDL=SYS$INPUT:/PAD="*" SYS$INPUT: TEST.FIX
REC
FORM FIX
SIZE 32767
*
$ IF F$SEARCH("TEST.VAR") .NES. "" THEN DELETE TEST.VAR;*
$ CONVERT/FDL=SYS$INPUT: TEST.FIX TEST.VAR
REC
FORM VAR
CARR CARR
$ DELETE TEST.FIX;
$ COPY TEST.VAR;1 ;2
$ DUMP/HEAD/BLOCK=COUNT=0 TEST.VAR;*
\f
Dump of file DISK$USERDISK:[CARL]TEST.VAR;2 on 21-JUN-1995 13:30:30.33
File ID (18824,20,0) End of file block 65 / Allocated 66
File Header
Header area
Identification area offset: 40
Map area offset: 100
Access control area offset: 255
Reserved area offset: 255
Extension segment number: 0
Structure level and version: 2, 1
File identification: (18824,20,0)
Extension file identification: (0,0,0)
VAX-11 RMS attributes
Record type: Variable
File organization: Sequential
Record attributes: Implied carriage control
Record size: 32767
Highest block: 66
End of file block: 65
End of file byte: 2
Bucket size: 0
Fixed control area size: 0
Maximum record size: 0
Default extension size: 0
Global buffer count: 0
Directory version limit: 0
File characteristics: <none specified>
Map area words in use: 2
Access mode: 0
File owner UIC: [WFPC,CARL]
File protection: S:RWED, O:RWED, G:RE, W:RE
Back link file identification: (267,2,0)
Journal control flags: <none specified>
Active recovery units: None
Highest block written: 66
Identification area
File name: TEST.VAR;2
Revision number: 1
Creation date: 21-JUN-1995 13:30:29.36
Revision date: 21-JUN-1995 13:30:29.66
Expiration date: 19-SEP-1995 13:30:29.76
Backup date: <none specified>
Map area
Retrieval pointers
Count: 66 LBN: 114306
Checksum: 37818
\f
Dump of file DISK$USERDISK:[CARL]TEST.VAR;1 on 21-JUN-1995 13:30:30.56
File ID (20880,30,0) End of file block 65 / Allocated 66
File Header
Header area
Identification area offset: 40
Map area offset: 100
Access control area offset: 255
Reserved area offset: 255
Extension segment number: 0
Structure level and version: 2, 1
File identification: (20880,30,0)
Extension file identification: (0,0,0)
VAX-11 RMS attributes
Record type: Variable
File organization: Sequential
Record attributes: Implied carriage control
Record size: 32767
Highest block: 66
End of file block: 65
End of file byte: 2
Bucket size: 0
Fixed control area size: 0
Maximum record size: 0
Default extension size: 0
Global buffer count: 0
Directory version limit: 0
File characteristics: <none specified>
Map area words in use: 6
Access mode: 0
File owner UIC: [WFPC,CARL]
File protection: S:RWED, O:RWED, G:RE, W:RE
Back link file identification: (267,2,0)
Journal control flags: <none specified>
Active recovery units: None
Highest block written: 66
Identification area
File name: TEST.VAR;1
Revision number: 1
Creation date: 21-JUN-1995 13:30:28.14
Revision date: 21-JUN-1995 13:30:28.70
Expiration date: 19-SEP-1995 13:30:29.71
Backup date: <none specified>
Map area
Retrieval pointers
Count: 54 LBN: 114372
Count: 9 LBN: 114429
Count: 3 LBN: 114441
Checksum: 21603
$ DIFF TEST.VAR
Number of difference sections found: 0
Number of difference records found: 0
DIFFERENCES /IGNORE=()/MERGED=1-
DISK$USERDISK:[CARL]TEST.VAR;2-
DISK$USERDISK:[CARL]TEST.VAR;1
$ FILE/RECORD_SIZE=200 TEST.VAR;2
$ DUMP/HEAD/BLOCK=COUNT=0 TEST.VAR;*
\f
Dump of file DISK$USERDISK:[CARL]TEST.VAR;2 on 21-JUN-1995 13:30:32.83
File ID (18824,20,0) End of file block 65 / Allocated 66
File Header
Header area
Identification area offset: 40
Map area offset: 100
Access control area offset: 255
Reserved area offset: 255
Extension segment number: 0
Structure level and version: 2, 1
File identification: (18824,20,0)
Extension file identification: (0,0,0)
VAX-11 RMS attributes
Record type: Variable
File organization: Sequential
Record attributes: Implied carriage control
Record size: 200
Highest block: 66
End of file block: 65
End of file byte: 2
Bucket size: 0
Fixed control area size: 0
Maximum record size: 0
Default extension size: 0
Global buffer count: 0
Directory version limit: 0
File characteristics: <none specified>
Map area words in use: 2
Access mode: 0
File owner UIC: [WFPC,CARL]
File protection: S:RWED, O:RWED, G:RE, W:RE
Back link file identification: (267,2,0)
Journal control flags: <none specified>
Active recovery units: None
Highest block written: 66
Identification area
File name: TEST.VAR;2
Revision number: 1
Creation date: 21-JUN-1995 13:30:29.36
Revision date: 21-JUN-1995 13:30:29.66
Expiration date: 19-SEP-1995 13:30:31.53
Backup date: <none specified>
Map area
Retrieval pointers
Count: 66 LBN: 114306
Checksum: 10801
\f
Dump of file DISK$USERDISK:[CARL]TEST.VAR;1 on 21-JUN-1995 13:30:33.08
File ID (20880,30,0) End of file block 65 / Allocated 66
File Header
Header area
Identification area offset: 40
Map area offset: 100
Access control area offset: 255
Reserved area offset: 255
Extension segment number: 0
Structure level and version: 2, 1
File identification: (20880,30,0)
Extension file identification: (0,0,0)
VAX-11 RMS attributes
Record type: Variable
File organization: Sequential
Record attributes: Implied carriage control
Record size: 32767
Highest block: 66
End of file block: 65
End of file byte: 2
Bucket size: 0
Fixed control area size: 0
Maximum record size: 0
Default extension size: 0
Global buffer count: 0
Directory version limit: 0
File characteristics: <none specified>
Map area words in use: 6
Access mode: 0
File owner UIC: [WFPC,CARL]
File protection: S:RWED, O:RWED, G:RE, W:RE
Back link file identification: (267,2,0)
Journal control flags: <none specified>
Active recovery units: None
Highest block written: 66
Identification area
File name: TEST.VAR;1
Revision number: 1
Creation date: 21-JUN-1995 13:30:28.14
Revision date: 21-JUN-1995 13:30:28.70
Expiration date: 19-SEP-1995 13:30:31.57
Backup date: <none specified>
Map area
Retrieval pointers
Count: 54 LBN: 114372
Count: 9 LBN: 114429
Count: 3 LBN: 114441
Checksum: 9662
$ DIFF TEST.VAR
%DIFF-F-READERR, error reading DISK$USERDISK:[CARL]TEST.VAR;2
-RMS-W-RTB, 32767 byte record too large for user's buffer
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: User Buffer?
1995-06-21 4:00 ` bill
@ 1995-06-21 4:00 ` Carl J Lydick
0 siblings, 0 replies; 5+ messages in thread
From: Carl J Lydick @ 1995-06-21 4:00 UTC (permalink / raw)
In article <3s9ts1$omb@jac.zko.dec.com>, bill@agony.enet.dec.com () writes:
=You can set the file attributes on the file so that the standard
=OpenVMS utilities like Mail, Diff, etc. can more easily handle these
=files and still be able to use them from Excel. I create a symbol
=
=FIXED*512 == "SET FILE/ATTRIBUTE=(RFM:FIX,RAT:NONE,ORG:SEQ,LRL:512)"
=
=Then do $ fixed file.xls;
I suspect that:
$ SET FILE/ATTRIBUTE=LRL:32767
would work nearly as well (except that then things like DIFF would allocate
unnecessarily large buffers).
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1995-06-21 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3s8fqm$6b7@gondor.sdsu.edu>
1995-06-21 4:00 ` User Buffer? Carl J Lydick
1995-06-21 4:00 ` Steve Lionel
1995-06-21 4:00 ` Carl J Lydick
1995-06-21 4:00 ` bill
1995-06-21 4:00 ` Carl J Lydick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox