From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,1e872a59b8341666 X-Google-Attributes: gidf7344,public X-Google-Thread: f86d6,1e872a59b8341666 X-Google-Attributes: gidf86d6,public X-Google-Thread: fc7fa,1e872a59b8341666 X-Google-Attributes: gidfc7fa,public From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Subject: Re: User Buffer? Date: 1995/06/21 Message-ID: <3sa34u$2at@gap.cco.caltech.edu> X-Deja-AN: 104886386 distribution: world references: <3s8fqm$6b7@gondor.sdsu.edu>,<3s9sc3$n7i@jac.zko.dec.com> organization: HST Wide Field/Planetary Camera reply-to: carl@SOL1.GPS.CALTECH.EDU newsgroups: comp.os.vms,comp.sys.vms,vmsnet.sysmgt 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;* 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: 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: 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: Map area Retrieval pointers Count: 66 LBN: 114306 Checksum: 37818 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: 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: 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: 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;* 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: 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: 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: Map area Retrieval pointers Count: 66 LBN: 114306 Checksum: 10801 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: 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: 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: 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.