* RMS internals?
@ 2009-08-07 13:20 Howard S Shubs
2009-08-07 14:04 ` Bob Koehler
2009-08-07 15:06 ` Malcolm Dunnett
0 siblings, 2 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-07 13:20 UTC (permalink / raw)
Anyone know where I can get documentation on this? I've tried HP, and
they've not gotten back to me.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 13:20 RMS internals? Howard S Shubs
@ 2009-08-07 14:04 ` Bob Koehler
2009-08-07 14:09 ` Howard S Shubs
2009-08-07 15:06 ` Malcolm Dunnett
1 sibling, 1 reply; 105+ messages in thread
From: Bob Koehler @ 2009-08-07 14:04 UTC (permalink / raw)
In article <howard-751E0A.09202507082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> Anyone know where I can get documentation on this? I've tried HP, and
> they've not gotten back to me.
HP never published one. I'm not sure DEC ever did, I think it was
a third party who published one. I think it was pre-ODS-5.
I'd try Amazon or Ebay.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 14:04 ` Bob Koehler
@ 2009-08-07 14:09 ` Howard S Shubs
2009-08-07 14:25 ` R.A.Omond
2009-08-07 17:29 ` Graham Burley
0 siblings, 2 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-07 14:09 UTC (permalink / raw)
In article <d4Q5sRDEXubB@eisner.encompasserve.org>,
koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> HP never published one. I'm not sure DEC ever did, I think it was
> a third party who published one. I think it was pre-ODS-5.
I seem to remember they had a class. Pre-ODS-5 is fine, as I don't use
and never expect to use, ODS-5. I just want to understand RMS'
different record formats. I understand "undefined" and "variable", and
probably "fixed", but the others are less clear. This has to do with
which ways I've been able to CONVERT a particular test file.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 14:09 ` Howard S Shubs
@ 2009-08-07 14:25 ` R.A.Omond
2009-08-07 17:29 ` Graham Burley
1 sibling, 0 replies; 105+ messages in thread
From: R.A.Omond @ 2009-08-07 14:25 UTC (permalink / raw)
Howard S Shubs wrote:
>
> [...snip...] I just want to understand RMS'
> different record formats. I understand "undefined" and "variable", and
> probably "fixed", but the others are less clear. This has to do with
> which ways I've been able to CONVERT a particular test file.
Doesn't sound like you need any really low-level RMS innards
documentation.
Could you post explicit questions for the file formats you're
unsure of ?
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 13:20 RMS internals? Howard S Shubs
2009-08-07 14:04 ` Bob Koehler
@ 2009-08-07 15:06 ` Malcolm Dunnett
2009-08-07 15:36 ` Richard B. Gilbert
` (5 more replies)
1 sibling, 6 replies; 105+ messages in thread
From: Malcolm Dunnett @ 2009-08-07 15:06 UTC (permalink / raw)
Howard S Shubs wrote:
> Anyone know where I can get documentation on this? I've tried HP, and
> they've not gotten back to me.
>
Somewhere around here I have a document which describes the RMS formats.
It predates the indexed file compression stuff but other than that it's
still relevant.
It wasn't a published book, it was something that had been printed off
on a line-printer and photocopied (I got it from a local DEC software
guy decades ago).
If there are specific questions you have I could try to find it (maybe I
could fax or snail mail you a section of it).
You might be better off asking in comp.os.vms (while RMS was also
offered on other DEC OSes it was most significant on VMS) [I'm
cross-posting my reply there]
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:06 ` Malcolm Dunnett
@ 2009-08-07 15:36 ` Richard B. Gilbert
2009-08-07 15:46 ` IanMiller
2009-08-08 11:32 ` VAXman-
2009-08-07 17:07 ` Bob Koehler
` (4 subsequent siblings)
5 siblings, 2 replies; 105+ messages in thread
From: Richard B. Gilbert @ 2009-08-07 15:36 UTC (permalink / raw)
Malcolm Dunnett wrote:
> Howard S Shubs wrote:
>> Anyone know where I can get documentation on this? I've tried HP, and
>> they've not gotten back to me.
>>
>
> Somewhere around here I have a document which describes the RMS formats.
> It predates the indexed file compression stuff but other than that it's
> still relevant.
>
> It wasn't a published book, it was something that had been printed off
> on a line-printer and photocopied (I got it from a local DEC software
> guy decades ago).
>
> If there are specific questions you have I could try to find it (maybe I
> could fax or snail mail you a section of it).
>
> You might be better off asking in comp.os.vms (while RMS was also
> offered on other DEC OSes it was most significant on VMS) [I'm
> cross-posting my reply there]
Try "VMS File System Internals" by Kirby McCoy, Digital Press 1990.
It's probably a rare book but with time, effort, and money you should be
able to find a copy!
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:36 ` Richard B. Gilbert
@ 2009-08-07 15:46 ` IanMiller
2009-08-07 17:57 ` JF Mezei
2009-08-08 11:32 ` VAXman-
1 sibling, 1 reply; 105+ messages in thread
From: IanMiller @ 2009-08-07 15:46 UTC (permalink / raw)
On Aug 7, 4:36 pm, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:
> Malcolm Dunnett wrote:
> > Howard S Shubs wrote:
> >> Anyone know where I can get documentation on this? I've tried HP, and
> >> they've not gotten back to me.
>
> > Somewhere around here I have a document which describes the RMS formats.
> > It predates the indexed file compression stuff but other than that it's
> > still relevant.
>
> > It wasn't a published book, it was something that had been printed off
> > on a line-printer and photocopied (I got it from a local DEC software
> > guy decades ago).
>
> > If there are specific questions you have I could try to find it (maybe I
> > could fax or snail mail you a section of it).
>
> > You might be better off asking in comp.os.vms (while RMS was also
> > offered on other DEC OSes it was most significant on VMS) [I'm
> > cross-posting my reply there]
>
> Try "VMS File System Internals" by Kirby McCoy, Digital Press 1990.
> It's probably a rare book but with time, effort, and money you should be
> able to find a copy!
Note that File System Internals covers the file system not the
internals of RMS files. Hein vdH has done presentations on RMS Indexed
files internals.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:06 ` Malcolm Dunnett
2009-08-07 15:36 ` Richard B. Gilbert
@ 2009-08-07 17:07 ` Bob Koehler
2009-08-07 18:24 ` Malcolm Dunnett
` (2 more replies)
2009-08-07 19:28 ` Alan Frisbie
` (3 subsequent siblings)
5 siblings, 3 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-07 17:07 UTC (permalink / raw)
In article <4a7c4310$1@flight>, Malcolm Dunnett <nothome@spammers.are.scum> writes:
>
> Somewhere around here I have a document which describes the RMS formats.
> It predates the indexed file compression stuff but other than that it's
> still relevant.
In that case, does it pre-date stm, stmlf, and stmcr? That may be
what the OP really needs to know.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 14:09 ` Howard S Shubs
2009-08-07 14:25 ` R.A.Omond
@ 2009-08-07 17:29 ` Graham Burley
2009-08-08 16:07 ` Howard S Shubs
1 sibling, 1 reply; 105+ messages in thread
From: Graham Burley @ 2009-08-07 17:29 UTC (permalink / raw)
In article <howard-D20472.10092707082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> I just want to understand RMS' different record formats.
The Guide to OpenVMS File Applications ?
Specifically:
http://h71000.www7.hp.com/doc/731final/4506/4506pro_004.html#018_recordformats
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:46 ` IanMiller
@ 2009-08-07 17:57 ` JF Mezei
0 siblings, 0 replies; 105+ messages in thread
From: JF Mezei @ 2009-08-07 17:57 UTC (permalink / raw)
IanMiller wrote:
> Note that File System Internals covers the file system not the
> internals of RMS files. Hein vdH has done presentations on RMS Indexed
> files internals.
I have a copy of Hein's powerpoint presentation. Could/Should I put it
up on my web site for public access (not sure I could without his
permission ?) or perhaps the OP could contact me by email and I can send
him a copy. It descripes how indexed files work.
It was good enough to allow me to write a C program to scrounge through
the index and recuperate valid records that had been lost when VMS
allowed another application to overwrite parts of the indexed file
(LDdriver from back when it was under HP's control).
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 17:07 ` Bob Koehler
@ 2009-08-07 18:24 ` Malcolm Dunnett
2009-08-07 21:35 ` P. Sture
2009-08-08 16:16 ` Howard S Shubs
2 siblings, 0 replies; 105+ messages in thread
From: Malcolm Dunnett @ 2009-08-07 18:24 UTC (permalink / raw)
Bob Koehler wrote:
>
> In that case, does it pre-date stm, stmlf, and stmcr? That may be
> what the OP really needs to know.
>
I'd have to check, but those formats are pretty trivial, one
wouldn't really need a book to understand them.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:06 ` Malcolm Dunnett
2009-08-07 15:36 ` Richard B. Gilbert
2009-08-07 17:07 ` Bob Koehler
@ 2009-08-07 19:28 ` Alan Frisbie
2009-08-08 16:20 ` Howard S Shubs
2009-08-07 21:27 ` P. Sture
` (2 subsequent siblings)
5 siblings, 1 reply; 105+ messages in thread
From: Alan Frisbie @ 2009-08-07 19:28 UTC (permalink / raw)
Malcolm Dunnett wrote:
> Howard S Shubs wrote:
>> Anyone know where I can get documentation on this? I've tried HP, and
>> they've not gotten back to me.
>>
>
> Somewhere around here I have a document which describes the RMS formats.
> It predates the indexed file compression stuff but other than that it's
> still relevant.
I can send you a copy of what I have:
A Brief Overview of RMS-11 Internals
by Phil Stephensen-Payne
It was written to describe RMS on the PDP-11, but the file
organizations are the same. True, extensions were added
for RMS-32, but this will give you almost all of what you need.
The file is the output from the RUNOFF program, and is formatted
for A4 paper (the author was British). The file is roughly 363KB.
Alan Frisbie Usenet02 [at] Flying-Disk [dot] com
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:06 ` Malcolm Dunnett
` (2 preceding siblings ...)
2009-08-07 19:28 ` Alan Frisbie
@ 2009-08-07 21:27 ` P. Sture
2009-08-08 16:08 ` Howard S Shubs
2009-08-09 13:14 ` Hein, Nashua NH
5 siblings, 0 replies; 105+ messages in thread
From: P. Sture @ 2009-08-07 21:27 UTC (permalink / raw)
In article <4a7c4310$1@flight>,
Malcolm Dunnett <nothome@spammers.are.scum> wrote:
> Howard S Shubs wrote:
> > Anyone know where I can get documentation on this? I've tried HP, and
> > they've not gotten back to me.
> >
>
> Somewhere around here I have a document which describes the RMS formats.
> It predates the indexed file compression stuff but other than that it's
> still relevant.
>
> It wasn't a published book, it was something that had been printed off
> on a line-printer and photocopied (I got it from a local DEC software
> guy decades ago).
>
> If there are specific questions you have I could try to find it (maybe I
> could fax or snail mail you a section of it).
>
> You might be better off asking in comp.os.vms (while RMS was also
> offered on other DEC OSes it was most significant on VMS) [I'm
> cross-posting my reply there]
If it's the same document I am thinking of, I've (somewhat belatedly)
posted the original text here:
<http://www.sture.ch/content/brief-overview-rms-11-internals>
--
Paul Sture
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 17:07 ` Bob Koehler
2009-08-07 18:24 ` Malcolm Dunnett
@ 2009-08-07 21:35 ` P. Sture
2009-08-08 16:16 ` Howard S Shubs
2 siblings, 0 replies; 105+ messages in thread
From: P. Sture @ 2009-08-07 21:35 UTC (permalink / raw)
In article <qp3u7N$Vxwze@eisner.encompasserve.org>,
koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> In article <4a7c4310$1@flight>, Malcolm Dunnett <nothome@spammers.are.scum>
> writes:
> >
> > Somewhere around here I have a document which describes the RMS formats.
> > It predates the indexed file compression stuff but other than that it's
> > still relevant.
>
> In that case, does it pre-date stm, stmlf, and stmcr? That may be
> what the OP really needs to know.
Good point Bob. I see that the file I link to in my earlier post has
<CR><LF> line terminators (according to the OS X "file" command).
Please let me know if you would like it in other formats, and I will
gladly oblige.
--
Paul Sture
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:36 ` Richard B. Gilbert
2009-08-07 15:46 ` IanMiller
@ 2009-08-08 11:32 ` VAXman-
1 sibling, 0 replies; 105+ messages in thread
From: VAXman- @ 2009-08-08 11:32 UTC (permalink / raw)
In article <leudna-Ksehl1OHXnZ2dnUVZ_sednZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>Malcolm Dunnett wrote:
>> Howard S Shubs wrote:
>>> Anyone know where I can get documentation on this? I've tried HP, and
>>> they've not gotten back to me.
>>>
>>
>> Somewhere around here I have a document which describes the RMS formats.
>> It predates the indexed file compression stuff but other than that it's
>> still relevant.
>>
>> It wasn't a published book, it was something that had been printed off
>> on a line-printer and photocopied (I got it from a local DEC software
>> guy decades ago).
>>
>> If there are specific questions you have I could try to find it (maybe I
>> could fax or snail mail you a section of it).
>>
>> You might be better off asking in comp.os.vms (while RMS was also
>> offered on other DEC OSes it was most significant on VMS) [I'm
>> cross-posting my reply there]
>
>Try "VMS File System Internals" by Kirby McCoy, Digital Press 1990.
>It's probably a rare book but with time, effort, and money you should be
>able to find a copy!
No RMS internals there.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
http://www.quirkfactory.com/popart/asskey/eqn2.png
"Well my son, life is like a beanstalk, isn't it?"
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 17:29 ` Graham Burley
@ 2009-08-08 16:07 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-08 16:07 UTC (permalink / raw)
In article <4a7c648b$0$299$14726298@news.sunsite.dk>,
burley@Encompasserve.org (Graham Burley) wrote:
> Specifically:
>
> http://h71000.www7.hp.com/doc/731final/4506/4506pro_004.html#018_recordformats
Very nice indeed! Thanks.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:06 ` Malcolm Dunnett
` (3 preceding siblings ...)
2009-08-07 21:27 ` P. Sture
@ 2009-08-08 16:08 ` Howard S Shubs
2009-08-09 13:14 ` Hein, Nashua NH
5 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-08 16:08 UTC (permalink / raw)
In article <4a7c4310$1@flight>,
Malcolm Dunnett <nothome@spammers.are.scum> wrote:
> You might be better off asking in comp.os.vms (while RMS was also
> offered on other DEC OSes it was most significant on VMS) [I'm
> cross-posting my reply there]
Dang, I got the wrong newsgroup! I must've unsubbed that one at some
point.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 17:07 ` Bob Koehler
2009-08-07 18:24 ` Malcolm Dunnett
2009-08-07 21:35 ` P. Sture
@ 2009-08-08 16:16 ` Howard S Shubs
2009-08-08 17:42 ` JF Mezei
` (2 more replies)
2 siblings, 3 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-08 16:16 UTC (permalink / raw)
In article <qp3u7N$Vxwze@eisner.encompasserve.org>,
koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> In that case, does it pre-date stm, stmlf, and stmcr? That may be
> what the OP really needs to know.
Not specifically. I'm reading records of whatever length using block
reads and RAB64 to get larger buffers, so I need to parse out the
records myself. The record length I'm specifically working on is over
33000 bytes long. So far, I've managed to do it for UNDEFINED and
VARIABLE records. VARIABLE is the key one since it's being used by FTP
when the user sends the file to the server.
When I had QA send the file via FTP using "binary" mode, I got the file
as written by Windows, including CRLF at the end of each record, which I
didn't consider very useful. Good thing our users apparently won't do
it that way.
But I figure it'd be a Good Idea to implement every record type I can.
Given the link sent earlier, I'm a little concerned about other possible
implementations of VARIABLE records. I'll check that out on Monday to
make sure I've covered remaining bases.
I find it kind of funny. The records I'm receiving alternate. I get
one record of 32767 bytes, then a record of 330 bytes, completing the
*actual* record length. It repeats until I have all the records. Fun!
I'm not assuming it'll always work that way, note.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 19:28 ` Alan Frisbie
@ 2009-08-08 16:20 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-08 16:20 UTC (permalink / raw)
In article <3--dnSSTjqvhHeHXnZ2dnUVZ_hudnZ2d@supernews.com>,
Alan Frisbie <Usenet02_Remove@Flying-Disk.com> wrote:
> I can send you a copy of what I have:
>
> A Brief Overview of RMS-11 Internals
> by Phil Stephensen-Payne
>
> It was written to describe RMS on the PDP-11, but the file
> organizations are the same. True, extensions were added
> for RMS-32, but this will give you almost all of what you need.
>
> The file is the output from the RUNOFF program, and is formatted
> for A4 paper (the author was British). The file is roughly 363KB.
Looks like Paul Sture has already posted a link to this, but thanks!
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 16:16 ` Howard S Shubs
@ 2009-08-08 17:42 ` JF Mezei
2009-08-08 17:57 ` Howard S Shubs
2009-08-08 17:52 ` Arne Vajhøj
2009-08-10 12:38 ` Bob Koehler
2 siblings, 1 reply; 105+ messages in thread
From: JF Mezei @ 2009-08-08 17:42 UTC (permalink / raw)
Howard S Shubs wrote:
> When I had QA send the file via FTP using "binary" mode, I got the file
> as written by Windows, including CRLF at the end of each record,
If a VMS native file didn't have CRLF at the end, but Windows added
them, then it is likely the original VMS->Windows transfer mucked the file.
If you do "type image", it should do a block by block transfer and not
try to interpret the file's content. However, you still lose the actual
file attributes (all the bits that say whether the file is variable
length, the record attributes and all those other bits.
The documentation on the RMS system calls (SYS$OPEN, SYS$READ, SYS$GET
etc) has good description and explanation of each field in the file
header. But if you don't have the file header, there are no bits to
parse so you wouldn't know how to parse just the binary file.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 16:16 ` Howard S Shubs
2009-08-08 17:42 ` JF Mezei
@ 2009-08-08 17:52 ` Arne Vajhøj
2009-08-08 18:03 ` Howard S Shubs
2009-08-10 12:38 ` Bob Koehler
2 siblings, 1 reply; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-08 17:52 UTC (permalink / raw)
Howard S Shubs wrote:
> Not specifically. I'm reading records of whatever length using block
> reads and RAB64 to get larger buffers, so I need to parse out the
> records myself. The record length I'm specifically working on is over
> 33000 bytes long.
In that case it is not a really a valid file.
See:
http://h71000.www7.hp.com/doc/731final/4523/4523pro_006.html#fab_mrs
> But I figure it'd be a Good Idea to implement every record type I can.
> Given the link sent earlier, I'm a little concerned about other possible
> implementations of VARIABLE records. I'll check that out on Monday to
> make sure I've covered remaining bases.
The variable format is welldefined:
2 bytes with length
data butes
0 or 1 bytes to fill to even number of bytes
> I find it kind of funny. The records I'm receiving alternate. I get
> one record of 32767 bytes, then a record of 330 bytes, completing the
> *actual* record length. It repeats until I have all the records. Fun!
> I'm not assuming it'll always work that way, note.
If you have an invalid file, then it is not surprising to see
weird results.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 17:42 ` JF Mezei
@ 2009-08-08 17:57 ` Howard S Shubs
2009-08-10 12:41 ` Bob Koehler
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-08 17:57 UTC (permalink / raw)
In article <0076b30e$0$7155$c3e8da3@news.astraweb.com>,
JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> If a VMS native file didn't have CRLF at the end, but Windows added
> them, then it is likely the original VMS->Windows transfer mucked the file.
Original was Windows->VMS, as the file was created on Windows.
> If you do "type image", it should do a block by block transfer and not
> try to interpret the file's content. However, you still lose the actual
> file attributes (all the bits that say whether the file is variable
> length, the record attributes and all those other bits.
Right, which is what "binary" mode does from a Windows ftp client.
Tried it, kept the Windows CRLF line termination. <shrug>
> The documentation on the RMS system calls (SYS$OPEN, SYS$READ, SYS$GET
> etc) has good description and explanation of each field in the file
> header. But if you don't have the file header, there are no bits to
> parse so you wouldn't know how to parse just the binary file.
I'm doing okay, I just want to cover as many bases as I can.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 17:52 ` Arne Vajhøj
@ 2009-08-08 18:03 ` Howard S Shubs
2009-08-08 18:26 ` Arne Vajhøj
2009-08-10 15:57 ` P. Sture
0 siblings, 2 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-08 18:03 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]
In article <4a7dbb58$0$295$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> In that case it is not a really a valid file.
I'm not sure how you arrive at this result. A file can have any record.
RMS asserts limits which other operating systems do not have to adhere
to. So I've written code which "deals" with RMS' limits.
> See:
> http://h71000.www7.hp.com/doc/731final/4523/4523pro_006.html#fab_mrs
Yes, BTDT. Those are RMS-specific limits. If the file had been
generated on VMS, maybe they'd be relevant. Since the file was
generated elsewhere, they're not. This is a case of VMS being "too
nice" and getting in my way. It happens on occasion.
> > But I figure it'd be a Good Idea to implement every record type I can.
> > Given the link sent earlier, I'm a little concerned about other possible
> > implementations of VARIABLE records. I'll check that out on Monday to
> > make sure I've covered remaining bases.
>
> The variable format is welldefined:
> 2 bytes with length
> data butes
> 0 or 1 bytes to fill to even number of bytes
Yes, and it's that last line I need to account for. Since I only have
one kind of test file, I saw an extra byte at the end of the record and
took it for gospel. Now I know it for padding and will allow for it in
case this record happens to get longer, to an even length, in the
future. The product creating the file is from a 3rd party, out of my
control.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 18:03 ` Howard S Shubs
@ 2009-08-08 18:26 ` Arne Vajhøj
2009-08-08 18:38 ` JF Mezei
2009-08-09 1:59 ` Howard S Shubs
2009-08-10 15:57 ` P. Sture
1 sibling, 2 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-08 18:26 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <4a7dbb58$0$295$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>> In that case it is not a really a valid file.
>
> I'm not sure how you arrive at this result. A file can have any record.
> RMS asserts limits which other operating systems do not have to adhere
> to. So I've written code which "deals" with RMS' limits.
>
>> See:
>> http://h71000.www7.hp.com/doc/731final/4523/4523pro_006.html#fab_mrs
>
> Yes, BTDT. Those are RMS-specific limits. If the file had been
> generated on VMS, maybe they'd be relevant. Since the file was
> generated elsewhere, they're not.
Those limits are relevant.
As soon as you have a file with longer lines and you set the
record type to something other than undefined, then you are
lying to VMS about the content and should be prepared for
weird results by utilities and programs trying to access
the file.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 18:26 ` Arne Vajhøj
@ 2009-08-08 18:38 ` JF Mezei
2009-08-09 2:14 ` Howard S Shubs
2009-08-09 1:59 ` Howard S Shubs
1 sibling, 1 reply; 105+ messages in thread
From: JF Mezei @ 2009-08-08 18:38 UTC (permalink / raw)
OK, I need more info here.
You have files created on Windows. Transfered to VMS in some fashion,
but transfered in binary mode.
And you then want to write an application that can parse the file's
internal structure.
This may soun stupid, but what is wrong with doing standard file IO and
letting RMS parse the file ? This will give you your records and you
don't have to worry about whatever internal structure the file was
stored in.
Also, if, once in production, you always use the same type of file
transfer software, then the files on VMS will always be created the same
way.
For records that are too large to fit in the $GET buffer, if I remember
correctly, you can stecify that the rest of the record be provided in
the next SYS$GET call, or that it be truncated (lost).
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 18:26 ` Arne Vajhøj
2009-08-08 18:38 ` JF Mezei
@ 2009-08-09 1:59 ` Howard S Shubs
2009-08-10 2:11 ` Arne Vajhøj
1 sibling, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-09 1:59 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
In article <4a7dc34a$0$299$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> Those limits are relevant.
Only in the sense that I have to get around them, which is the point. I
can't go to the 3rd party and tell them to get their record length down.
> As soon as you have a file with longer lines and you set the
> record type to something other than undefined, then you are
> lying to VMS about the content and should be prepared for
> weird results by utilities and programs trying to access
> the file.
Which is why I had to write what I've been talking about. My
programmers can now call my routines and get whole records, regardless
of RMS' limitations. I use RMS to get the data. Period. No "record
management" for this, just open the file and hand me so many blocks of
data, so I don't have to do the directory lookup and $QIO to the disk
myself.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 18:38 ` JF Mezei
@ 2009-08-09 2:14 ` Howard S Shubs
2009-08-09 2:35 ` glen herrmannsfeldt
2009-08-09 4:08 ` JF Mezei
0 siblings, 2 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-09 2:14 UTC (permalink / raw)
In article <0036d9be$0$5027$c3e8da3@news.astraweb.com>,
JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> You have files created on Windows. Transfered to VMS in some fashion,
> but transfered in binary mode.
Only after I requested it. They were originally transferred using ASCII
mode, which is what our end users will actually do. With what I saw,
I'm not going to worry about it. If the users transfer using binary
mode, the program they're using just won't work properly. If my client
wants me to fix it, I'm sure they'll let me know.
> And you then want to write an application that can parse the file's
> internal structure.
I've done it for UNDEFINED and VARIABLE, yes.
> This may soun stupid, but what is wrong with doing standard file IO and
> letting RMS parse the file ? This will give you your records and you
> don't have to worry about whatever internal structure the file was
> stored in.
Actual record length of this file is 33097 bytes. I don't know why.
I'm neither the 3rd party who wrote the software emitting it, nor my
programmer who needs to update the software to read it. I'm just trying
to help him out. If I'd understood ahead of time how the records were
being written, I'd have told him, and he'd have dealt with it, but now
I've given him this little library and he doesn't have to mess with it.
> Also, if, once in production, you always use the same type of file
> transfer software, then the files on VMS will always be created the same
> way.
Yes. Twenty-twenty hindsight is wonderful, isn't it? RMS encodes the
long records in a form which I had to figure out. And that's the key.
> For records that are too large to fit in the $GET buffer, if I remember
> correctly, you can stecify that the rest of the record be provided in
> the next SYS$GET call, or that it be truncated (lost).
I suppose we could have done it with two $GETs, yes. Unfortunately,
without knowing for sure how the file was being written by FTP, we
didn't know that. FTP is saving it as two records, one of 32767 bytes,
and one of 330 bytes. I only found that out once I looked at the blocks
while debugging my routines. And I can't be sure it'll always work this
way. We're using MULTINET. What if we switch to UCX (unlikely) and it
does things differently? I like the idea of having a library around
which will read any record length, anyway.
I'd suggest that RMS get with the times, but honestly this is the first
time I can think of where this has been an issue. And RAB64 helped, so
I've got no kick.
The upshot of all this is that I will likely speak to the programmer,
tell him this, and see if he wants to continue using this library or
not. If not, so be it. If so, I'll fix the padding thing. Otherwise,
I'll probably not bother with the rest of the record formats. Either
way, I've had fun writing it, and it seemed like a good idea at the
time. If it ends up being set aside for now, fine.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 2:14 ` Howard S Shubs
@ 2009-08-09 2:35 ` glen herrmannsfeldt
2009-08-09 7:11 ` Howard S Shubs
2009-08-10 12:44 ` Bob Koehler
2009-08-09 4:08 ` JF Mezei
1 sibling, 2 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-09 2:35 UTC (permalink / raw)
In comp.os.vms Howard S Shubs <howard@shubs.net> wrote:
(big snip)
> I suppose we could have done it with two $GETs, yes. Unfortunately,
> without knowing for sure how the file was being written by FTP, we
> didn't know that. FTP is saving it as two records, one of 32767 bytes,
> and one of 330 bytes. I only found that out once I looked at the blocks
> while debugging my routines. And I can't be sure it'll always work this
> way. We're using MULTINET. What if we switch to UCX (unlikely) and it
> does things differently? I like the idea of having a library around
> which will read any record length, anyway.
TCP is a stream protocol, with no record marks. The resulting
file should be independent of anything in the TCP/IP chain.
It might be that changes in RMS could make a difference, though.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 2:14 ` Howard S Shubs
2009-08-09 2:35 ` glen herrmannsfeldt
@ 2009-08-09 4:08 ` JF Mezei
2009-08-09 7:14 ` Howard S Shubs
2009-08-09 9:23 ` R.A.Omond
1 sibling, 2 replies; 105+ messages in thread
From: JF Mezei @ 2009-08-09 4:08 UTC (permalink / raw)
Howard S Shubs wrote:
> Only after I requested it. They were originally transferred using ASCII
> mode, which is what our end users will actually do. With what I saw,
> I'm not going to worry about it. If the users transfer using binary
> mode, the program they're using just won't work properly. If my client
> wants me to fix it, I'm sure they'll let me know.
If your client trasnfered in binary mode, you would have raw data with
CR-LFs terminating records. (or whatever line termination sequence
windows uses). It would be easier to parse since there would be no RMS
interpretation of the data.
Binary/image mode usually results in a file created on VMS with fixed
length 512 byte records (aka: 1 record per block) and no record
attributes. So when you read the data, you get the data uninterpreted by
RMS.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 2:35 ` glen herrmannsfeldt
@ 2009-08-09 7:11 ` Howard S Shubs
2009-08-10 12:44 ` Bob Koehler
1 sibling, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-09 7:11 UTC (permalink / raw)
In article <h5lckr$8h3$1@naig.caltech.edu>,
glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:
> TCP is a stream protocol, with no record marks. The resulting
> file should be independent of anything in the TCP/IP chain.
Yes, TCP is a stream protocol. FTP, OTOH, can impose structure, such as
"ASCII file".
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 4:08 ` JF Mezei
@ 2009-08-09 7:14 ` Howard S Shubs
2009-08-09 17:21 ` Michael Moroney
2009-08-09 9:23 ` R.A.Omond
1 sibling, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-09 7:14 UTC (permalink / raw)
In article <0037589e$0$28455$c3e8da3@news.astraweb.com>,
JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> If your client trasnfered in binary mode, you would have raw data with
> CR-LFs terminating records. (or whatever line termination sequence
> windows uses). It would be easier to parse since there would be no RMS
> interpretation of the data.
>
> Binary/image mode usually results in a file created on VMS with fixed
> length 512 byte records (aka: 1 record per block) and no record
> attributes. So when you read the data, you get the data uninterpreted by
> RMS.
Yes, that's why I asked them to get me a file transferred in binary
mode. I wanted to see what it'd look like to me. Fixed length 512 byte
"records" aside, I'm not sure I want to play the "what terminator are we
looking for today" game. Coming from Windows, that's a pretty easy
game, I'll grant you, but I want to keep this as general as I can.
My code to deal with UNDEFINED is the simplest. It just says, do we
have enough data remaining in the buffer? If yes, copy the next 33097
bytes to the caller's buffer, and return. If it were only that easy all
the time. :-/ (otherwise, copy what remains to the user's buffer,
$READ, then copy the remaining data we need for the user, and return,
always allowing for EOF, of course)
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 4:08 ` JF Mezei
2009-08-09 7:14 ` Howard S Shubs
@ 2009-08-09 9:23 ` R.A.Omond
2009-08-10 16:07 ` P. Sture
2009-08-10 21:04 ` Bob Koehler
1 sibling, 2 replies; 105+ messages in thread
From: R.A.Omond @ 2009-08-09 9:23 UTC (permalink / raw)
JF Mezei wrote:
> If your client transfered in binary mode, you would have raw data with
> CR-LFs terminating records. (or whatever line termination sequence
> windows uses). It would be easier to parse since there would be no RMS
> interpretation of the data.
Oh dear, oh dear ... you've just shown the inherent problem with
mixing binary data with explicit record terminators.
Yes, you probably *will* come across the "record terminator"
that is *not* the record terminator.
One of my big clients got caught by that recently.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-07 15:06 ` Malcolm Dunnett
` (4 preceding siblings ...)
2009-08-08 16:08 ` Howard S Shubs
@ 2009-08-09 13:14 ` Hein, Nashua NH
2009-08-09 14:50 ` Hein, Nashua NH
5 siblings, 1 reply; 105+ messages in thread
From: Hein, Nashua NH @ 2009-08-09 13:14 UTC (permalink / raw)
On Aug 7, 11:06 am, Malcolm Dunnett <noth...@spammers.are.scum> wrote:
> Howard S Shubs wrote:
> > Anyone know where I can get documentation on this? I've tried HP, and
> > they've not gotten back to me.
I thought I missed the original question. On reply to the comp.os.vms
branch I noticed it was posted in comp.sys.dec first, bit that this
was the whole question!
From subsequent replies it appears Howard is mostly(only?) interested
in sequential files, and has it mostly figured out. It ain't rocket
science!.
Later Howard wrote >>Given the link sent earlier, I'm a little
concerned about other >>possible implementations of VARIABLE records.
- The record length words are word aligned, so there may be round-up
bytes (nice place to store a secret message :-)
- There is an MSB variable lenght flavor with the lenght word bytes
swapped. Created to support certain CD's. Never used really.
- Guess you should take care of VFC records as well, and notably
decide whether to interpret PRN/VFC data or pass binary
Malcomn> Somewhere around here I have a document which describes the
RMS formats.
> It predates the indexed file compression stuff but other than that it's
> still relevant.
I have something like that somewhere as well, but can not readily
find it.
Mine was written by Tony Boyer (Bower?) a guy from the UK who worked
for Digital Education Services back in the 80's. Runoff, A4. I'll try
to find it.
Richard Gilbert wrote>> Try "VMS File System Internals" by Kirby
McCoy, Digital Press 1990.
No RMS in there. But McCoy was tasked to write up RMS internals and
did so (DEC Document) but only made it to a single, albeit critical,
chapter describing indexed file with compression and all. I have that,
but only in hard-copy, pre-edits, pre-publish. I'll consider scanning
that in but it is a 'light' printout.
Hope this helps some.
Send Email fro details.
Hein.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 13:14 ` Hein, Nashua NH
@ 2009-08-09 14:50 ` Hein, Nashua NH
2009-08-09 16:53 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Hein, Nashua NH @ 2009-08-09 14:50 UTC (permalink / raw)
Howard wrote,
>>Given the link sent earlier, I'm a little concerned about other
>>possible implementations of VARIABLE records.
> - The record length words are word aligned, so there may be round-up
> bytes (nice place to store a secret message :-)
> - There is an MSB variable lenght flavor with the lenght word bytes
> swapped. Created to support certain CD's. Never used really.
> - Guess you should take care of VFC records as well, and notably
> decide whether to interpret PRN/VFC data or pass binary
Hit 'send' too soon. Meant too add
- If you see a negative length word (-1) then skip to the beginning of
the next block. It that brings you to EOF, then you are done, but it
might be the result of 'un-committed' record in RU-Journalling, or an
application mimicking that. For 'deleted' records crossing block
boundaries, there may be a series of those skip-to-the-next-block
indicators.
Also, the OpenVMS guide to files, chapter 2 should not be ignored
Hein.
:
http://h71000.www7.hp.com/doc/731final/4506/4506pro.html
http://h71000.www7.hp.com/doc/731final/4506/4506pro.html
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 14:50 ` Hein, Nashua NH
@ 2009-08-09 16:53 ` Howard S Shubs
2009-08-09 17:29 ` Arne Vajhøj
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-09 16:53 UTC (permalink / raw)
In article
<5a43c08d-f2cd-4787-a5ca-6a75544262ef@d34g2000vbm.googlegroups.com>,
"Hein, Nashua NH" <heinvandenheuvel@gmail.com> wrote:
> Hit 'send' too soon. Meant too add
>
> - If you see a negative length word (-1) then skip to the beginning of
> the next block. It that brings you to EOF, then you are done, but it
> might be the result of 'un-committed' record in RU-Journalling, or an
> application mimicking that. For 'deleted' records crossing block
> boundaries, there may be a series of those skip-to-the-next-block
> indicators.
>
> Also, the OpenVMS guide to files, chapter 2 should not be ignored
>
> Hein.
> :
> http://h71000.www7.hp.com/doc/731final/4506/4506pro.html
>
>
> http://h71000.www7.hp.com/doc/731final/4506/4506pro.html
That's all excellent! Thanks.
I did start looking at VFC, but had problems with it due to the lack of
a sample file. CONVERT didn't help, unfortunately.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 7:14 ` Howard S Shubs
@ 2009-08-09 17:21 ` Michael Moroney
2009-08-10 6:02 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Michael Moroney @ 2009-08-09 17:21 UTC (permalink / raw)
Howard S Shubs <howard@shubs.net> writes:
>In article <0037589e$0$28455$c3e8da3@news.astraweb.com>,
> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>> If your client trasnfered in binary mode, you would have raw data with
>> CR-LFs terminating records. (or whatever line termination sequence
>> windows uses). It would be easier to parse since there would be no RMS
>> interpretation of the data.
>>
>> Binary/image mode usually results in a file created on VMS with fixed
>> length 512 byte records (aka: 1 record per block) and no record
>> attributes. So when you read the data, you get the data uninterpreted by
>> RMS.
>Yes, that's why I asked them to get me a file transferred in binary
>mode. I wanted to see what it'd look like to me. Fixed length 512 byte
>"records" aside, I'm not sure I want to play the "what terminator are we
>looking for today" game. Coming from Windows, that's a pretty easy
>game, I'll grant you, but I want to keep this as general as I can.
I have to deal with similar problems once in a while.
FTP in ASCII mode will do some interpretation as you have mentioned. If
there is something that looks like a record terminator in the middle of a
record, it'll split the records in two, as well as doing things like
<CR><LF> -> <LF> in stmlf output files. If you can guarantee that there
is nothing that looks like a record terminator in the middle of a record,
you'll be OK except if a new version of TCP/IP software causes a change
in the behavior you saw (records split into one the max size the second
with the remainder) you'll be OK. If you transfer it in binary, you'll
get the bits exactly as they exist on the remote end although the file
format won't usually be correct (VMS->VMS passes extra info and will
recreate the file with proper RMS attributes) so you won't get fooled
by a stray <CR><LF> in the middle of a record.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 16:53 ` Howard S Shubs
@ 2009-08-09 17:29 ` Arne Vajhøj
2009-08-10 5:59 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-09 17:29 UTC (permalink / raw)
Howard S Shubs wrote:
> I did start looking at VFC, but had problems with it due to the lack of
> a sample file. CONVERT didn't help, unfortunately.
You can create a VFC file with DCL OPEN/WRITE !
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 1:59 ` Howard S Shubs
@ 2009-08-10 2:11 ` Arne Vajhøj
2009-08-10 6:00 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 2:11 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <4a7dc34a$0$299$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>> Those limits are relevant.
>
> Only in the sense that I have to get around them, which is the point. I
> can't go to the 3rd party and tell them to get their record length down.
>
>> As soon as you have a file with longer lines and you set the
>> record type to something other than undefined, then you are
>> lying to VMS about the content and should be prepared for
>> weird results by utilities and programs trying to access
>> the file.
>
> Which is why I had to write what I've been talking about. My
> programmers can now call my routines and get whole records, regardless
> of RMS' limitations. I use RMS to get the data. Period. No "record
> management" for this, just open the file and hand me so many blocks of
> data, so I don't have to do the directory lookup and $QIO to the disk
> myself.
Yes, but you should use UNDEFINED. By specifying anything else
the actual content is invalid for the record format specified.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 17:29 ` Arne Vajhøj
@ 2009-08-10 5:59 ` Howard S Shubs
2009-08-10 22:29 ` Arne Vajhøj
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-10 5:59 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 714 bytes --]
In article <4a7f075d$0$302$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> Howard S Shubs wrote:
> > I did start looking at VFC, but had problems with it due to the lack of
> > a sample file. CONVERT didn't help, unfortunately.
>
> You can create a VFC file with DCL OPEN/WRITE !
I was making test files from the original using CONVERT.
I might just try your method, just for the heck of it. It's just that
I'll be talking with the programmer involved in a few hours, after I get
up, and if he's having any problem with the library, I'll tell him about
the two-reads method, obviating the library.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 2:11 ` Arne Vajhøj
@ 2009-08-10 6:00 ` Howard S Shubs
2009-08-10 22:33 ` Arne Vajhøj
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-10 6:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 378 bytes --]
In article <4a7f81ec$0$302$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> Yes, but you should use UNDEFINED. By specifying anything else
> the actual content is invalid for the record format specified.
How do I get an UNDEFINED from FTP? Binary and ASCII don't do it.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 17:21 ` Michael Moroney
@ 2009-08-10 6:02 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-10 6:02 UTC (permalink / raw)
In article <h5n0i0$vpo$1@pcls4.std.com>,
moroney@world.std.spaamtrap.com (Michael Moroney) wrote:
> If you can guarantee that there
> is nothing that looks like a record terminator in the middle of a record,
> you'll be OK
Yes, until the file creating program changes again, which it does about
every three months or so. Feh. :-d
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 16:16 ` Howard S Shubs
2009-08-08 17:42 ` JF Mezei
2009-08-08 17:52 ` Arne Vajhøj
@ 2009-08-10 12:38 ` Bob Koehler
2009-08-10 17:10 ` JF Mezei
2009-08-10 22:27 ` Arne Vajhøj
2 siblings, 2 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 12:38 UTC (permalink / raw)
In article <howard-D036D1.12162808082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> In article <qp3u7N$Vxwze@eisner.encompasserve.org>,
> koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
>
>> In that case, does it pre-date stm, stmlf, and stmcr? That may be
>> what the OP really needs to know.
>
> Not specifically. I'm reading records of whatever length using block
> reads and RAB64 to get larger buffers, so I need to parse out the
> records myself.
So you're skipping RMS and trying to rewrite it yourself? Sounds
self defeating. Anything you can get that way that you can't get
by increasing the buffer size?
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 17:57 ` Howard S Shubs
@ 2009-08-10 12:41 ` Bob Koehler
2009-08-10 14:11 ` Howard S Shubs
2009-08-10 22:34 ` Arne Vajhøj
0 siblings, 2 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 12:41 UTC (permalink / raw)
In article <howard-E4439F.13574308082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> In article <0076b30e$0$7155$c3e8da3@news.astraweb.com>,
> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>
>> If a VMS native file didn't have CRLF at the end, but Windows added
>> them, then it is likely the original VMS->Windows transfer mucked the file.
>
> Original was Windows->VMS, as the file was created on Windows.
>
Sounds like it simply should have been transfered as a text file.
Are you trying to compensate for all the mistakes the user could
make? It isn't really an RMS function to fix those, you're kind of
rolling on your own.
Of course, the quick fix in this case is "set file/attributes", or
maybe just changing the realvent FAB or RAB fields after doing an
$OPEN. But then you have to know what was done wrong by the user.
In general, how are you going to determine what mistake the user
made?
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 2:35 ` glen herrmannsfeldt
2009-08-09 7:11 ` Howard S Shubs
@ 2009-08-10 12:44 ` Bob Koehler
2009-08-10 13:57 ` Richard B. Gilbert
2009-08-10 18:32 ` glen herrmannsfeldt
1 sibling, 2 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 12:44 UTC (permalink / raw)
In article <h5lckr$8h3$1@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
> In comp.os.vms Howard S Shubs <howard@shubs.net> wrote:
> (big snip)
>
>> I suppose we could have done it with two $GETs, yes. Unfortunately,
>> without knowing for sure how the file was being written by FTP, we
>> didn't know that. FTP is saving it as two records, one of 32767 bytes,
>> and one of 330 bytes. I only found that out once I looked at the blocks
>> while debugging my routines. And I can't be sure it'll always work this
>> way. We're using MULTINET. What if we switch to UCX (unlikely) and it
>> does things differently? I like the idea of having a library around
>> which will read any record length, anyway.
>
> TCP is a stream protocol, with no record marks. The resulting
> file should be independent of anything in the TCP/IP chain.
FTP imposes a standard CRLF pair at the end of each line of text,
when transfering as a text file. Of course, TCP doesn't need to
know about this.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 12:44 ` Bob Koehler
@ 2009-08-10 13:57 ` Richard B. Gilbert
2009-08-10 18:47 ` glen herrmannsfeldt
2009-08-10 21:00 ` Bob Koehler
2009-08-10 18:32 ` glen herrmannsfeldt
1 sibling, 2 replies; 105+ messages in thread
From: Richard B. Gilbert @ 2009-08-10 13:57 UTC (permalink / raw)
Bob Koehler wrote:
> In article <h5lckr$8h3$1@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
>> In comp.os.vms Howard S Shubs <howard@shubs.net> wrote:
>> (big snip)
>>
>>> I suppose we could have done it with two $GETs, yes. Unfortunately,
>>> without knowing for sure how the file was being written by FTP, we
>>> didn't know that. FTP is saving it as two records, one of 32767 bytes,
>>> and one of 330 bytes. I only found that out once I looked at the blocks
>>> while debugging my routines. And I can't be sure it'll always work this
>>> way. We're using MULTINET. What if we switch to UCX (unlikely) and it
>>> does things differently? I like the idea of having a library around
>>> which will read any record length, anyway.
>> TCP is a stream protocol, with no record marks. The resulting
>> file should be independent of anything in the TCP/IP chain.
>
> FTP imposes a standard CRLF pair at the end of each line of text,
> when transfering as a text file. Of course, TCP doesn't need to
> know about this.
>
That's not quite true! FTP appends the LOCAL LINE TERMINATOR in text
mode. Unix destinations get <LF>. DOS/Windows get <CR><LF>. I think
there's something that uses <CR> by itself but I can't recall what it
is; maybe Apple/Mac. VMS gets "counted strings".
It's handled on the receiving end.
--
draco vulgaris
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 12:41 ` Bob Koehler
@ 2009-08-10 14:11 ` Howard S Shubs
2009-08-10 14:49 ` Hein, Nashua NH
2009-08-10 21:02 ` Bob Koehler
2009-08-10 22:34 ` Arne Vajhøj
1 sibling, 2 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-10 14:11 UTC (permalink / raw)
In article <sNgXXOeOf4sD@eisner.encompasserve.org>,
koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> Sounds like it simply should have been transfered as a text file.
> Are you trying to compensate for all the mistakes the user could
> make? It isn't really an RMS function to fix those, you're kind of
> rolling on your own.
>
> Of course, the quick fix in this case is "set file/attributes", or
> maybe just changing the realvent FAB or RAB fields after doing an
> $OPEN. But then you have to know what was done wrong by the user.
>
> In general, how are you going to determine what mistake the user
> made?
You're working on an incorrect assumption. I suggest you read the
thread.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 14:11 ` Howard S Shubs
@ 2009-08-10 14:49 ` Hein, Nashua NH
2009-08-11 15:09 ` Howard S Shubs
2009-08-10 21:02 ` Bob Koehler
1 sibling, 1 reply; 105+ messages in thread
From: Hein, Nashua NH @ 2009-08-10 14:49 UTC (permalink / raw)
On Aug 10, 10:11 am, Howard S Shubs <how...@shubs.net> wrote:
> In article <sNgXXOeOf...@eisner.encompasserve.org>,
> koeh...@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
:
> > Of course, the quick fix in this case is "set file/attributes", or
> > maybe just changing the realvent FAB or RAB fields after doing an
> > $OPEN. But then you have to know what was done wrong by the user.
:
> You're working on an incorrect assumption. I suggest you read the thread.
Not so quick Howard. Bob's suggestion has merit.
Yeah you can readily read through the file with $READ (or $QIO).
But are you going to add multi-buffering, read-ahead and such?
If you change the file to 'undefined', or fixed-512 or such, then you
can use RMS $GET and have RMS do the multi buffering ( RAB$V_RAH ) and
AST /WAIT support and such.
Using SYS$MODIFY you can do that on the fly, after the open.
You could even start out with regular gets, in case it is a regular
file, and switch to undefined and your private cut & paste segments
algorithms if and when you determine that is needed ($GET error).
Admittedly the RMS record-io buffers will be limited to 127 blocks,
so you can do bigger=better with SYS$READ and a RAB64 or QIO
fwiw,
Hein.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-08 18:03 ` Howard S Shubs
2009-08-08 18:26 ` Arne Vajhøj
@ 2009-08-10 15:57 ` P. Sture
2009-08-11 15:16 ` Howard S Shubs
1 sibling, 1 reply; 105+ messages in thread
From: P. Sture @ 2009-08-10 15:57 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]
In article <howard-7A9971.14031208082009@news.newsguy.com>,
Howard S Shubs <howard@shubs.net> wrote:
> In article <4a7dbb58$0$295$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>
> > In that case it is not a really a valid file.
>
> I'm not sure how you arrive at this result. A file can have any record.
> RMS asserts limits which other operating systems do not have to adhere
> to. So I've written code which "deals" with RMS' limits.
>
>
> > See:
> > http://h71000.www7.hp.com/doc/731final/4523/4523pro_006.html#fab_mrs
>
> Yes, BTDT. Those are RMS-specific limits. If the file had been
> generated on VMS, maybe they'd be relevant. Since the file was
> generated elsewhere, they're not. This is a case of VMS being "too
> nice" and getting in my way. It happens on occasion.
Before VMS COBOL had the ability to produce non-VFC REPORT files, it
used the fixed part of the record to insert line and form feeds. This
was fine if you were outputting to a VMS printer, but not if you wanted
to transfer the file to a PC and print from there.
I did a similar exercise with those files in the early 1990s, reading by
block and unpacking the records myself. IIRC the only problem I ran
into was that I hadn't realised that records with an odd number of bytes
were padded with a null filler byte, presumably so that each record
started on a word boundary.
--
Paul Sture
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 9:23 ` R.A.Omond
@ 2009-08-10 16:07 ` P. Sture
2009-08-10 21:04 ` Bob Koehler
1 sibling, 0 replies; 105+ messages in thread
From: P. Sture @ 2009-08-10 16:07 UTC (permalink / raw)
In article <4a7e95ac$0$300$14726298@news.sunsite.dk>,
"R.A.Omond" <Roy.Omond@BlueBubble.UK.Com> wrote:
> JF Mezei wrote:
>
> > If your client transfered in binary mode, you would have raw data with
> > CR-LFs terminating records. (or whatever line termination sequence
> > windows uses). It would be easier to parse since there would be no RMS
> > interpretation of the data.
>
> Oh dear, oh dear ... you've just shown the inherent problem with
> mixing binary data with explicit record terminators.
>
> Yes, you probably *will* come across the "record terminator"
> that is *not* the record terminator.
>
> One of my big clients got caught by that recently.
And "interestingly" I recently discovered that Apple's spreadsheet
"Numbers" outputs CSV records with a <CR><LF> terminator, but the odd
embedded <LF> can fool various OS X utilities into thinking the records
are <LF> terminated.
I've written my own utility to sort that out. Oh, and despite a
recommendation to use UTF8 I found somewhere in the Apple development
documentation, TextEdit and various other apps default to MacOSRoman.
--
Paul Sture
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 12:38 ` Bob Koehler
@ 2009-08-10 17:10 ` JF Mezei
2009-08-10 21:06 ` Bob Koehler
` (2 more replies)
2009-08-10 22:27 ` Arne Vajhøj
1 sibling, 3 replies; 105+ messages in thread
From: JF Mezei @ 2009-08-10 17:10 UTC (permalink / raw)
Bob Koehler wrote:
> So you're skipping RMS and trying to rewrite it yourself? Sounds
> self defeating. Anything you can get that way that you can't get
> by increasing the buffer size?
The way I understand it, his data consists of records greater than 32k.
As I understand it, the "length" is a signed 2 byte value (is that
correct) which makes the record size limit 32k. So his records cannot be
represented as variable length records. The FTP server thus splits them
into 2 records when transfered as text (which generates variable length
records).
Can the FTP server be told to create text files as stream/stmlf instead
of variable length ? That might be a solution.
The other solution is to have the files transfers binary, preserving
whatever line termination they had on windows, then use SET
FILE/ATTR=RFM=STMLF (or whatever "stream" variation matches that of
windows). At that point, RMS should be able to read the records,
assuming buffquota is big enough.
But if the "size" argument of a descriptor is also just 2 bytes and they
are signed, then he will have the same problem. (It's been a while since
I looked at the descriptor stuff, is the size 2 or 4 bytes ?).
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 12:44 ` Bob Koehler
2009-08-10 13:57 ` Richard B. Gilbert
@ 2009-08-10 18:32 ` glen herrmannsfeldt
2009-08-10 20:35 ` Rich Alderson
2009-08-10 21:32 ` Stefaan A Eeckels
1 sibling, 2 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-10 18:32 UTC (permalink / raw)
In comp.os.vms Bob Koehler <koehler@eisner.nospam.encompasserve.org> wrote:
(snip, I wrote)
<> TCP is a stream protocol, with no record marks. The resulting
<> file should be independent of anything in the TCP/IP chain.
< FTP imposes a standard CRLF pair at the end of each line of text,
< when transfering as a text file. Of course, TCP doesn't need to
< know about this.
More specifically an ASCII CRLF pair. The text will be in ASCII
even if the source and/or destination machine do not use ASCII.
With binary mode, no line terminating characters will be added
or removed. If you transfer fixed length files from IBM mainframes,
they come through without any record marks, but you know where they
are supposed to be. (You know the LRECL.) If you transfer variable
length (VB or VBS) files there are no record marks and you often
don't know where they are supposed to be.
I believe that there is also an FTP option specifically for 36 bit
systems, but I don't remember how that works.
For my original comment, I was thinking that the ftp program
was separate from the underlying TCP/IP system, but maybe that
isn't true. I believe I used multinet about 20 years ago, but
not since then.
Otherwise, there is always SET FILE/ATTRIBUTES to fix up
some of the problems.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 13:57 ` Richard B. Gilbert
@ 2009-08-10 18:47 ` glen herrmannsfeldt
2009-08-10 21:00 ` Bob Koehler
1 sibling, 0 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-10 18:47 UTC (permalink / raw)
In comp.os.vms Richard B. Gilbert <rgilbert88@comcast.net> wrote:
(snip, someone wrote)
<> FTP imposes a standard CRLF pair at the end of each line of text,
<> when transfering as a text file. Of course, TCP doesn't need to
<> know about this.
< That's not quite true! FTP appends the LOCAL LINE TERMINATOR in text
< mode. Unix destinations get <LF>. DOS/Windows get <CR><LF>. I think
< there's something that uses <CR> by itself but I can't recall what it
< is; maybe Apple/Mac. VMS gets "counted strings".
That is for the receiving end. For the sending end, the local
line terminators are converted to CRLF.
If you transfer non-text files between unix systems in text mode,
any CRLF pairs in the original file will be converted to LF at
the receiving end. I believe that done right the receiving end
on a unix system does CRLF --> LF conversion, instead of just
removing CR, reducing the probability of damage, but not
eliminating it.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 18:32 ` glen herrmannsfeldt
@ 2009-08-10 20:35 ` Rich Alderson
2009-08-10 21:32 ` Stefaan A Eeckels
1 sibling, 0 replies; 105+ messages in thread
From: Rich Alderson @ 2009-08-10 20:35 UTC (permalink / raw)
glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
> I believe that there is also an FTP option specifically for 36 bit
> systems, but I don't remember how that works.
I think that you're thinking of the TOPS-20 specific appendix to RFC 959,
pp. 60-61. Although exactly the same kind of thing would work for other
page-oriented file systems, I don't believe that anyone else ever used this.
(Note that the "NLS" in the text is Doug Engelbart's "oNLine System", which
is part of (and/or ancestral to) Augment, his magnum opus.)
APPENDIX I - PAGE STRUCTURE
The need for FTP to support page structure derives principally from
the need to support efficient transmission of files between TOPS-20
systems, particularly the files used by NLS.
The file system of TOPS-20 is based on the concept of pages. The
operating system is most efficient at manipulating files as pages.
The operating system provides an interface to the file system so that
many applications view files as sequential streams of characters.
However, a few applications use the underlying page structures
directly, and some of these create holey files.
A TOPS-20 disk file consists of four things: a pathname, a page
table, a (possibly empty) set of pages, and a set of attributes.
The pathname is specified in the RETR or STOR command. It includes
the directory name, file name, file name extension, and generation
number.
The page table contains up to 2**18 entries. Each entry may be
EMPTY, or may point to a page. If it is not empty, there are also
some page-specific access bits; not all pages of a file need have the
same access protection.
A page is a contiguous set of 512 words of 36 bits each.
The attributes of the file, in the File Descriptor Block (FDB),
contain such things as creation time, write time, read time, writer's
byte-size, end-of-file pointer, count of reads and writes, backup
system tape numbers, etc.
Note that there is NO requirement that entries in the page table be
contiguous. There may be empty page table slots between occupied
ones. Also, the end of file pointer is simply a number. There is no
requirement that it in fact point at the "last" datum in the file.
Ordinary sequential I/O calls in TOPS-20 will cause the end of file
pointer to be left after the last datum written, but other operations
may cause it not to be so, if a particular programming system so
requires.
In fact, in both of these special cases, "holey" files and
end-of-file pointers NOT at the end of the file, occur with NLS data
files.
The TOPS-20 paged files can be sent with the FTP transfer parameters:
TYPE L 36, STRU P, and MODE S (in fact, any mode could be used).
Each page of information has a header. Each header field, which is a
logical byte, is a TOPS-20 word, since the TYPE is L 36.
The header fields are:
Word 0: Header Length.
The header length is 5.
Word 1: Page Index.
If the data is a disk file page, this is the number of that
page in the file's page map. Empty pages (holes) in the file
are simply not sent. Note that a hole is NOT the same as a
page of zeros.
Word 2: Data Length.
The number of data words in this page, following the header.
Thus, the total length of the transmission unit is the Header
Length plus the Data Length.
Word 3: Page Type.
A code for what type of chunk this is. A data page is type 3,
the FDB page is type 2.
Word 4: Page Access Control.
The access bits associated with the page in the file's page
map. (This full word quantity is put into AC2 of an SPACS by
the program reading from net to disk.)
After the header are Data Length data words. Data Length is
currently either 512 for a data page or 31 for an FDB. Trailing
zeros in a disk file page may be discarded, making Data Length less
than 512 in that case.
--
Rich Alderson "You get what anybody gets. You get a lifetime."
news@alderson.users.panix.com --Death, of the Endless
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 13:57 ` Richard B. Gilbert
2009-08-10 18:47 ` glen herrmannsfeldt
@ 2009-08-10 21:00 ` Bob Koehler
1 sibling, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 21:00 UTC (permalink / raw)
In article <1sednbLLk8nJuh3XnZ2dnUVZ_sOdnZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>
> That's not quite true! FTP appends the LOCAL LINE TERMINATOR in text
> mode.
FTP imposes a standard CRLF during transmission of files in ASCII
mode. What the client and server do with it is none of the FTP
standard's business. For example, a VMS client or server sending
a variable length, stmcr, or stmlf file in ASCII mode will replace
those separators with CRLF before transmiting (most likely by using
RMS to read the lines as records and then appending the CRLF). As
a matter of fact, any record oriented file could be transfered
in ASCII mode this way, although the other end might not know
anything usefull to do with it.
Continuing the example, typically VMS clients and servers receiving
a file in ASCII mode strip the CRLF and save the file as records in
a variable length record format. In Multinet, you can alternatively
tell the Multinet client or server to save them as fixed length records.
UNIX, Windows, MacOS, ... all do the appropriate thing when saving
or reading files transfered in ASCII mode. But FTP only standardizes
the transmission format.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 14:11 ` Howard S Shubs
2009-08-10 14:49 ` Hein, Nashua NH
@ 2009-08-10 21:02 ` Bob Koehler
2009-08-11 14:58 ` Howard S Shubs
1 sibling, 1 reply; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 21:02 UTC (permalink / raw)
In article <howard-8CDD6A.10111210082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> In article <sNgXXOeOf4sD@eisner.encompasserve.org>,
> koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
>
>> Sounds like it simply should have been transfered as a text file.
>> Are you trying to compensate for all the mistakes the user could
>> make? It isn't really an RMS function to fix those, you're kind of
>> rolling on your own.
>>
>> Of course, the quick fix in this case is "set file/attributes", or
>> maybe just changing the realvent FAB or RAB fields after doing an
>> $OPEN. But then you have to know what was done wrong by the user.
>>
>> In general, how are you going to determine what mistake the user
>> made?
>
> You're working on an incorrect assumption. I suggest you read the
> thread.
OK, caught up on the rest of the thread (out of order). Doesn't
sound like an RMS internals issue unless soeone is planning to change
RMS to handle longer records. More like a "this is what the other
system can send me" issue.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-09 9:23 ` R.A.Omond
2009-08-10 16:07 ` P. Sture
@ 2009-08-10 21:04 ` Bob Koehler
1 sibling, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 21:04 UTC (permalink / raw)
In article <paul.nospam-FEC4B6.18072710082009@mac.sture.ch>, "P. Sture" <paul.nospam@sture.ch> writes:
>
> And "interestingly" I recently discovered that Apple's spreadsheet
> "Numbers" outputs CSV records with a <CR><LF> terminator, but the odd
> embedded <LF> can fool various OS X utilities into thinking the records
> are <LF> terminated.
Alpha was a classic app that was an editor that was good at messing
with files having different line terminators, even mixed up ones.
I haven't found a native OS X version.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 17:10 ` JF Mezei
@ 2009-08-10 21:06 ` Bob Koehler
2009-08-10 22:59 ` Michael Moroney
2009-08-11 15:22 ` Howard S Shubs
2 siblings, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-10 21:06 UTC (permalink / raw)
In article <002e652e$0$3042$c3e8da3@news.astraweb.com>, JF Mezei <jfmezei.spamnot@vaxination.ca> writes:
>
> Can the FTP server be told to create text files as stream/stmlf instead
> of variable length ? That might be a solution.
>
I'd consider writing an application specific FTP server, hung off
a special port, to provide that capability. Or modify a fully
functional server like MG to add that capability.
There's no reason an FTP client or server for VMS can't write
files in any RMS format, just lack of implementation.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 18:32 ` glen herrmannsfeldt
2009-08-10 20:35 ` Rich Alderson
@ 2009-08-10 21:32 ` Stefaan A Eeckels
1 sibling, 0 replies; 105+ messages in thread
From: Stefaan A Eeckels @ 2009-08-10 21:32 UTC (permalink / raw)
On Mon, 10 Aug 2009 18:32:56 +0000 (UTC)
glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:
> For my original comment, I was thinking that the ftp program
> was separate from the underlying TCP/IP system, but maybe that
> isn't true. I believe I used multinet about 20 years ago, but
> not since then.
FTP predates TCP/IP by quite a number of years. It is first described in
RFC 114 from 1971. In 1973, after many an RFC, the TCP protocol was
essentially as we know it now - but running on top of NCP and not
TCP/IP (which dates from 1980).
--
Stefaan A Eeckels
--
...one of the chief advantages of a CLI over a GUI: people who are
truly clueless are more likely to give up and walk away before they
mess things up too badly. --Logan Shaw
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 12:38 ` Bob Koehler
2009-08-10 17:10 ` JF Mezei
@ 2009-08-10 22:27 ` Arne Vajhøj
1 sibling, 0 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 22:27 UTC (permalink / raw)
Bob Koehler wrote:
> In article <howard-D036D1.12162808082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
>> In article <qp3u7N$Vxwze@eisner.encompasserve.org>,
>> koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
>>
>>> In that case, does it pre-date stm, stmlf, and stmcr? That may be
>>> what the OP really needs to know.
>> Not specifically. I'm reading records of whatever length using block
>> reads and RAB64 to get larger buffers, so I need to parse out the
>> records myself.
>
> So you're skipping RMS and trying to rewrite it yourself? Sounds
> self defeating. Anything you can get that way that you can't get
> by increasing the buffer size?
His records are invalid (>32K long) so RMS will not read them.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 5:59 ` Howard S Shubs
@ 2009-08-10 22:29 ` Arne Vajhøj
2009-08-11 15:24 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 22:29 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <4a7f075d$0$302$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>> Howard S Shubs wrote:
>>> I did start looking at VFC, but had problems with it due to the lack of
>>> a sample file. CONVERT didn't help, unfortunately.
>> You can create a VFC file with DCL OPEN/WRITE !
>
> I was making test files from the original using CONVERT.
>
> I might just try your method, just for the heck of it.
$ open/write vfc.fil vfc.fil
$ close vfc.fil
$ append real.fil vfc.fil
should do it.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 6:00 ` Howard S Shubs
@ 2009-08-10 22:33 ` Arne Vajhøj
2009-08-11 15:13 ` Howard S Shubs
` (2 more replies)
0 siblings, 3 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 22:33 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <4a7f81ec$0$302$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>> Yes, but you should use UNDEFINED. By specifying anything else
>> the actual content is invalid for the record format specified.
>
> How do I get an UNDEFINED from FTP? Binary and ASCII don't do it.
My suggestion: binary transfer that gives a fixed 512 file and
then change it from fixed 512 to undefined.
Then the file meta data matches the actual content.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 12:41 ` Bob Koehler
2009-08-10 14:11 ` Howard S Shubs
@ 2009-08-10 22:34 ` Arne Vajhøj
2009-08-10 22:39 ` Arne Vajhøj
` (2 more replies)
1 sibling, 3 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 22:34 UTC (permalink / raw)
Bob Koehler wrote:
> In article <howard-E4439F.13574308082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
>> In article <0076b30e$0$7155$c3e8da3@news.astraweb.com>,
>> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>
>>> If a VMS native file didn't have CRLF at the end, but Windows added
>>> them, then it is likely the original VMS->Windows transfer mucked the file.
>> Original was Windows->VMS, as the file was created on Windows.
>>
> Sounds like it simply should have been transfered as a text file.
> Are you trying to compensate for all the mistakes the user could
> make? It isn't really an RMS function to fix those, you're kind of
> rolling on your own.
He is trying to solve the problem that most non-VMS files has valid
text files with rec len > 32K, but VMS does not.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:34 ` Arne Vajhøj
@ 2009-08-10 22:39 ` Arne Vajhøj
2009-08-11 15:26 ` Howard S Shubs
2009-08-10 22:43 ` glen herrmannsfeldt
2009-08-11 2:58 ` Richard B. Gilbert
2 siblings, 1 reply; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 22:39 UTC (permalink / raw)
Arne Vajh�j wrote:
> Bob Koehler wrote:
>> In article <howard-E4439F.13574308082009@news.newsguy.com>, Howard S
>> Shubs <howard@shubs.net> writes:
>>> In article <0076b30e$0$7155$c3e8da3@news.astraweb.com>,
>>> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>>
>>>> If a VMS native file didn't have CRLF at the end, but Windows added
>>>> them, then it is likely the original VMS->Windows transfer mucked
>>>> the file.
>>> Original was Windows->VMS, as the file was created on Windows.
>>>
>> Sounds like it simply should have been transfered as a text file.
>> Are you trying to compensate for all the mistakes the user could
>> make? It isn't really an RMS function to fix those, you're kind of
>> rolling on your own.
>
> He is trying to solve the problem that most non-VMS files has valid
> text files with rec len > 32K, but VMS does not.
Give the size of data today and the need for moving files between
VMS and various non-VMS systems, then what about:
- changing the 32K limit to a 16M limit
- have VAR and VFC use 4 byte length both before and after data
- if there are any compatibility issues then keep the existing
RFM's and add BIGVAR, BIGVFC, BIGSTM, BIGSTMLF, BIGSTMCR and BIGFIX
?
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:34 ` Arne Vajhøj
2009-08-10 22:39 ` Arne Vajhøj
@ 2009-08-10 22:43 ` glen herrmannsfeldt
2009-08-10 22:56 ` Arne Vajhøj
2009-08-11 2:58 ` Richard B. Gilbert
2 siblings, 1 reply; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-10 22:43 UTC (permalink / raw)
In comp.os.vms Arne Vajh?j <arne@vajhoej.dk> wrote:
(snip)
> He is trying to solve the problem that most non-VMS files has valid
> text files with rec len > 32K, but VMS does not.
As far as I know, IBM's MVS and VM/CMS still have the limitation
for native mode files.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:43 ` glen herrmannsfeldt
@ 2009-08-10 22:56 ` Arne Vajhøj
0 siblings, 0 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-10 22:56 UTC (permalink / raw)
glen herrmannsfeldt wrote:
> In comp.os.vms Arne Vajh?j <arne@vajhoej.dk> wrote:
> (snip)
>> He is trying to solve the problem that most non-VMS files has valid
>> text files with rec len > 32K, but VMS does not.
>
> As far as I know, IBM's MVS and VM/CMS still have the limitation
> for native mode files.
I have never worked with IBM mainframe.
But there are a few *nix and Win* systems out in the world
as well.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 17:10 ` JF Mezei
2009-08-10 21:06 ` Bob Koehler
@ 2009-08-10 22:59 ` Michael Moroney
2009-08-11 15:23 ` Howard S Shubs
2009-08-11 15:22 ` Howard S Shubs
2 siblings, 1 reply; 105+ messages in thread
From: Michael Moroney @ 2009-08-10 22:59 UTC (permalink / raw)
In article <002e652e$0$3042$c3e8da3@news.astraweb.com>, JF Mezei <jfmezei.spamnot@vaxination.ca> writes:
>
> Can the FTP server be told to create text files as stream/stmlf instead
> of variable length ? That might be a solution.
Since two VMS systems can and will FTP files to each other while
maintaining all RMS attributes, the answer is yes. It's just a matter of
the correct FTP incantation to tell the VMS system to create the file as
stream/stmlf or whatever you want.
I don't know the incantation.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:34 ` Arne Vajhøj
2009-08-10 22:39 ` Arne Vajhøj
2009-08-10 22:43 ` glen herrmannsfeldt
@ 2009-08-11 2:58 ` Richard B. Gilbert
2009-08-11 4:05 ` glen herrmannsfeldt
` (2 more replies)
2 siblings, 3 replies; 105+ messages in thread
From: Richard B. Gilbert @ 2009-08-11 2:58 UTC (permalink / raw)
Arne Vajh�j wrote:
> Bob Koehler wrote:
>> In article <howard-E4439F.13574308082009@news.newsguy.com>, Howard S
>> Shubs <howard@shubs.net> writes:
>>> In article <0076b30e$0$7155$c3e8da3@news.astraweb.com>,
>>> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>>
>>>> If a VMS native file didn't have CRLF at the end, but Windows added
>>>> them, then it is likely the original VMS->Windows transfer mucked
>>>> the file.
>>> Original was Windows->VMS, as the file was created on Windows.
>>>
>> Sounds like it simply should have been transfered as a text file.
>> Are you trying to compensate for all the mistakes the user could
>> make? It isn't really an RMS function to fix those, you're kind of
>> rolling on your own.
>
> He is trying to solve the problem that most non-VMS files has valid
> text files with rec len > 32K, but VMS does not.
>
> Arne
>
Just because other systems allow records greater than 32K does not mean
that files have to be written with records that big.
The only format that is close to being universal is fixed length 80 byte
records. Many systems can block and/or deblock those fixed length records.
Either the tapes must be written with record lengths < 32K or they must
be read on another system!!
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 2:58 ` Richard B. Gilbert
@ 2009-08-11 4:05 ` glen herrmannsfeldt
2009-08-11 18:02 ` P. Sture
2009-08-11 13:00 ` Bob Koehler
2009-08-12 1:00 ` Arne Vajhøj
2 siblings, 1 reply; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-11 4:05 UTC (permalink / raw)
In comp.os.vms Richard B. Gilbert <rgilbert88@comcast.net> wrote:
(snip)
> Just because other systems allow records greater than 32K does not mean
> that files have to be written with records that big.
> The only format that is close to being universal is fixed length 80 byte
> records. Many systems can block and/or deblock those fixed length records.
The 80 byte records are especially popular with IBM systems, though
the block size is usually more. Many compilers can only read 80
byte records. The second most popular is 133, for 132 character
printers plus carriage control.
For disks on MVS, the user also chooses the block size, similar
to the way it works on tapes on other systems. Normally the block
size must be less than or equal to the track length.
> Either the tapes must be written with record lengths < 32K or they must
> be read on another system!!
There was a story of someone writing a whole tape as one block using
data chaining on S/360. If the channel is fast enough, or the device
is slow enough, you can write a single block with multiple channel
commands (CCWs). Otherwise, OS/360 and successors have a maximum
of 32767. (Signed 16 bit arithmetic.)
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 2:58 ` Richard B. Gilbert
2009-08-11 4:05 ` glen herrmannsfeldt
@ 2009-08-11 13:00 ` Bob Koehler
2009-08-11 13:36 ` Richard B. Gilbert
2009-08-11 18:38 ` glen herrmannsfeldt
2009-08-12 1:00 ` Arne Vajhøj
2 siblings, 2 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-11 13:00 UTC (permalink / raw)
In article <08SdnQzp4dLrQx3XnZ2dnUVZ_o2dnZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>
> The only format that is close to being universal is fixed length 80 byte
> records. Many systems can block and/or deblock those fixed length records.
Once upon a time I was told that the "universal" format was 800 BPI
9-tracks written in unblocked 80 byte EBCDIC records.
Fortunately, when we got our second 11/780 some nice DECcie gave us
a program to translate to/from EBCDIC while moving files to/from
tape.
But the only 9-tracks drives know I can find are out of commision, in
the basement of a friend who would like to find parts for them.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 13:00 ` Bob Koehler
@ 2009-08-11 13:36 ` Richard B. Gilbert
2009-08-11 15:29 ` Howard S Shubs
` (2 more replies)
2009-08-11 18:38 ` glen herrmannsfeldt
1 sibling, 3 replies; 105+ messages in thread
From: Richard B. Gilbert @ 2009-08-11 13:36 UTC (permalink / raw)
Bob Koehler wrote:
> In article <08SdnQzp4dLrQx3XnZ2dnUVZ_o2dnZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>> The only format that is close to being universal is fixed length 80 byte
>> records. Many systems can block and/or deblock those fixed length records.
>
> Once upon a time I was told that the "universal" format was 800 BPI
> 9-tracks written in unblocked 80 byte EBCDIC records.
>
> Fortunately, when we got our second 11/780 some nice DECcie gave us
> a program to translate to/from EBCDIC while moving files to/from
> tape.
>
> But the only 9-tracks drives know I can find are out of commision, in
> the basement of a friend who would like to find parts for them.
>
I wish him luck. But what is he going to do with them if he does find
the parts needed to fix them? I believe that technology to be back in
the stone age somewhere! Maybe you can still buy reel-to-reel tapes
but you may have to go to an antique dealer to find them.
I think that the moral may be to copy that old data to new media and
technology every few years. Failing that you may have pay a museum a
small fortune for the privilege of using their exhibits to recover your
data.
Are reel-to-reel nine track tape drives still in use anywhere? Seven
track? How about TK50 drives and cartridges?
Old data may not be as valuable as you might think. A few years ago I
was working for a company that was upgrading to new hardware. There was
NO WAY we could have copied all the old data during the long weekend.
We decided that anyone who hadn't bought anything for the last three
years was no longer a customer. Pruning these inactive customers
reduced the database to a size we could move during a three day weekend.
We kept an offline backup of the former customers that were pruned from
the live data base. We kept those backup tapes for about three years
and nobody *ever* asked asked for any of that old data.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 21:02 ` Bob Koehler
@ 2009-08-11 14:58 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 14:58 UTC (permalink / raw)
In article <mmjsMKHeMBMu@eisner.encompasserve.org>,
koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> OK, caught up on the rest of the thread (out of order). Doesn't
> sound like an RMS internals issue unless soeone is planning to change
> RMS to handle longer records. More like a "this is what the other
> system can send me" issue.
Agreed, it's not so much an internals issue as I was thinking at first,
as much as a research issue, which y'all have helped me with.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 14:49 ` Hein, Nashua NH
@ 2009-08-11 15:09 ` Howard S Shubs
2009-08-11 20:51 ` Hein, Nashua NH
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:09 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2422 bytes --]
In article
<1e27ffb3-e228-450c-aead-22d23950f110@d23g2000vbm.googlegroups.com>,
"Hein, Nashua NH" <heinvandenheuvel@gmail.com> wrote:
> On Aug 10, 10:11�am, Howard S Shubs <how...@shubs.net> wrote:
> > In article <sNgXXOeOf...@eisner.encompasserve.org>,
> > �koeh...@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> :
> > > � �Of course, the quick fix in this case is "set file/attributes", or
> > > � �maybe just changing the realvent FAB or RAB fields after doing an
> > > � �$OPEN. �But then you have to know what was done wrong by the user.
> :
> > You're working on an incorrect assumption. �I suggest you read the thread.
>
> Not so quick Howard. Bob's suggestion has merit.
I was keying on the "was done wrong by the user", which he seems to have
understood from his reply, thankfully.
> Yeah you can readily read through the file with $READ (or $QIO).
> But are you going to add multi-buffering, read-ahead and such?
> If you change the file to 'undefined', or fixed-512 or such, then you
> can use RMS $GET and have RMS do the multi buffering ( RAB$V_RAH ) and
> AST /WAIT support and such.
I'm not sure what you're getting at. I'm just looking at a simple
situation of "read it, give the data to the caller". I'm using $READ
and $OPEN (and $CLOSE) so I don't have to open the file by hand, which
would require me to play with ODS-2 myself, I expect. Disk $QIOs would
be new to me, as well. Might be interesting, but I prefer to do
something more practical (read: maintainable) for my client with this
situation.
> Using SYS$MODIFY you can do that on the fly, after the open.
> You could even start out with regular gets, in case it is a regular
> file, and switch to undefined and your private cut & paste segments
> algorithms if and when you determine that is needed ($GET error).
I'm not seeing $MODIFY in either the System Services Reference or the
RMS reference. What is it, please?
> Admittedly the RMS record-io buffers will be limited to 127 blocks,
> so you can do bigger=better with SYS$READ and a RAB64 or QIO
I'm reading up to 512 blocks at a time, or 3*recordsize rounded up to
the next block size, whichever is bigger. Since the record involved
isn't THAT big, 512 blocks at a time is what's actually happening. A
256KB read is fairly modest, I figure.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:33 ` Arne Vajhøj
@ 2009-08-11 15:13 ` Howard S Shubs
2009-08-11 17:08 ` Bob Koehler
2009-08-12 14:21 ` Bob Koehler
2 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:13 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 446 bytes --]
In article <4a80a031$0$303$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> My suggestion: binary transfer that gives a fixed 512 file and
> then change it from fixed 512 to undefined.
>
> Then the file meta data matches the actual content.
Almost. If you do a binary transfer, the Windows line termination has
been transferred intact.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 15:57 ` P. Sture
@ 2009-08-11 15:16 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:16 UTC (permalink / raw)
In article <paul.nospam-F6EADB.17570510082009@mac.sture.ch>,
"P. Sture" <paul.nospam@sture.ch> wrote:
> I did a similar exercise with those files in the early 1990s, reading by
> block and unpacking the records myself. IIRC the only problem I ran
> into was that I hadn't realised that records with an odd number of bytes
> were padded with a null filler byte, presumably so that each record
> started on a word boundary.
Yes, which I took note of earlier in the thread. I worked on it a bit
yesterday and unfortunately left my scratch copy with an unknown bug in
it. :-o I'll continue on it today. :-)
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 17:10 ` JF Mezei
2009-08-10 21:06 ` Bob Koehler
2009-08-10 22:59 ` Michael Moroney
@ 2009-08-11 15:22 ` Howard S Shubs
2 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:22 UTC (permalink / raw)
In article <002e652e$0$3042$c3e8da3@news.astraweb.com>,
JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> Can the FTP server be told to create text files as stream/stmlf instead
> of variable length ? That might be a solution.
It'd require me to have the users change their production behavior. I'm
trying to avoid that. Users often have problems with change, which is
unlikely to be news to you.
> The other solution is to have the files transfers binary, preserving
> whatever line termination they had on windows, then use SET
> FILE/ATTR=RFM=STMLF (or whatever "stream" variation matches that of
> windows). At that point, RMS should be able to read the records,
> assuming buffquota is big enough.
There doesn't seem to be a STREAM CRLF variant. :-D
> But if the "size" argument of a descriptor is also just 2 bytes and they
> are signed, then he will have the same problem. (It's been a while since
> I looked at the descriptor stuff, is the size 2 or 4 bytes ?).
(String) descriptors exist with bigger length fields, but regular string
descriptors are still what they always were, for compatibility purposes.
See
<http://h71000.www7.hp.com/doc/82final/5973/5973pro_019.html#arg_desc_for
mats_chap> for details.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:59 ` Michael Moroney
@ 2009-08-11 15:23 ` Howard S Shubs
2009-08-11 17:12 ` Bob Koehler
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:23 UTC (permalink / raw)
In article <h5q8pc$vvg$1@pcls6.std.com>,
moroney@world.std.spaamtrap.com (Michael Moroney) wrote:
> I don't know the incantation.
I suspect it's implementation-specific. In UCX, I think it was IMAGE
mode.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:29 ` Arne Vajhøj
@ 2009-08-11 15:24 ` Howard S Shubs
2009-08-12 1:05 ` Arne Vajhøj
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:24 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
In article <4a809f46$0$303$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> Howard S Shubs wrote:
> > I might just try your method, just for the heck of it.
>
> $ open/write vfc.fil vfc.fil
> $ close vfc.fil
> $ append real.fil vfc.fil
>
> should do it.
LOL. Arne, I'm not deficient in DCL, but thanks. :-) I meant, try it
with my code, not the other. :-d
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:39 ` Arne Vajhøj
@ 2009-08-11 15:26 ` Howard S Shubs
2009-08-12 1:06 ` Arne Vajhøj
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:26 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
In article <4a80a1bb$0$299$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> Give the size of data today and the need for moving files between
> VMS and various non-VMS systems, then what about:
> - changing the 32K limit to a 16M limit
> - have VAR and VFC use 4 byte length both before and after data
> - if there are any compatibility issues then keep the existing
> RFM's and add BIGVAR, BIGVFC, BIGSTM, BIGSTMLF, BIGSTMCR and BIGFIX
> ?
Easier said than done. Getting HP to make this change would be
significant, and would take time. I need this ready in a week for this
client. My programmer is already using it, though I've told him of the
bug I found.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 13:36 ` Richard B. Gilbert
@ 2009-08-11 15:29 ` Howard S Shubs
2009-08-11 17:17 ` Richard B. Gilbert
2009-08-11 17:04 ` Bob Koehler
2009-08-12 16:45 ` Michael Moroney
2 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-11 15:29 UTC (permalink / raw)
In article <_7idnTheDPJv7hzXnZ2dnUVZ_gGdnZ2d@giganews.com>,
"Richard B. Gilbert" <rgilbert88@comcast.net> wrote:
> We decided that anyone who hadn't bought anything for the last three
> years was no longer a customer. Pruning these inactive customers
> reduced the database to a size we could move during a three day weekend.
> We kept an offline backup of the former customers that were pruned from
> the live data base. We kept those backup tapes for about three years
> and nobody *ever* asked asked for any of that old data.
As usual, it's a situation dependent question. Some apps are required
to keep data for 7, 10, 25, 35, or 50 years, if not longer. I've
encountered one requiring 40 years of archiving, IIRC, at a nuclear
power plant.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 13:36 ` Richard B. Gilbert
2009-08-11 15:29 ` Howard S Shubs
@ 2009-08-11 17:04 ` Bob Koehler
2009-08-12 16:45 ` Michael Moroney
2 siblings, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-11 17:04 UTC (permalink / raw)
In article <_7idnTheDPJv7hzXnZ2dnUVZ_gGdnZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
> Bob Koehler wrote:
>> In article <08SdnQzp4dLrQx3XnZ2dnUVZ_o2dnZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>>> The only format that is close to being universal is fixed length 80 byte
>>> records. Many systems can block and/or deblock those fixed length records.
>>
>> Once upon a time I was told that the "universal" format was 800 BPI
>> 9-tracks written in unblocked 80 byte EBCDIC records.
>>
>> Fortunately, when we got our second 11/780 some nice DECcie gave us
>> a program to translate to/from EBCDIC while moving files to/from
>> tape.
>>
>> But the only 9-tracks drives know I can find are out of commision, in
>> the basement of a friend who would like to find parts for them.
>>
>
> I wish him luck. But what is he going to do with them if he does find
> the parts needed to fix them?
His hobby is collecting old computers and getting them to run.
Peripherals are part of the hobby. His cats don't mind.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:33 ` Arne Vajhøj
2009-08-11 15:13 ` Howard S Shubs
@ 2009-08-11 17:08 ` Bob Koehler
2009-08-12 3:18 ` Howard S Shubs
2009-08-12 14:21 ` Bob Koehler
2 siblings, 1 reply; 105+ messages in thread
From: Bob Koehler @ 2009-08-11 17:08 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 844 bytes --]
In article <howard-31B589.11132911082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> In article <4a80a031$0$303$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>
>> My suggestion: binary transfer that gives a fixed 512 file and
>> then change it from fixed 512 to undefined.
>>
>> Then the file meta data matches the actual content.
>
> Almost. If you do a binary transfer, the Windows line termination has
> been transferred intact.
If the OP knows it's a Windows CRLF file and transfers it binary,
he can then use SET FILE/ATTRIBUTES to tell RMS it's really an
stm file, as long as the file then does not exceed any RMS limits.
But I thought the 32K limit he was up against is applicable to any
record type. A 16 bit length field in the RAB data is a 16 bit
length field.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 15:23 ` Howard S Shubs
@ 2009-08-11 17:12 ` Bob Koehler
0 siblings, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-11 17:12 UTC (permalink / raw)
In article <howard-0A06A3.11234711082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
> In article <h5q8pc$vvg$1@pcls6.std.com>,
> moroney@world.std.spaamtrap.com (Michael Moroney) wrote:
>
>> I don't know the incantation.
>
> I suspect it's implementation-specific. In UCX, I think it was IMAGE
> mode.
There are two methods of sending files from VMS to VMS and preserving
VMS meta data. One passes the FDL as text (MODE VMS, IIRC), the other
passes the RAB (STRU VMS).
Anyone can write to these and generate the appropriate FDL or RAB
information to tell VMS what to do, even if they're not on a VMS
system, but don't look for too many existing UNIX or Windows FTP
clients with that feature already implemented.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 15:29 ` Howard S Shubs
@ 2009-08-11 17:17 ` Richard B. Gilbert
2009-08-12 3:04 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Richard B. Gilbert @ 2009-08-11 17:17 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <_7idnTheDPJv7hzXnZ2dnUVZ_gGdnZ2d@giganews.com>,
> "Richard B. Gilbert" <rgilbert88@comcast.net> wrote:
>
>> We decided that anyone who hadn't bought anything for the last three
>> years was no longer a customer. Pruning these inactive customers
>> reduced the database to a size we could move during a three day weekend.
>> We kept an offline backup of the former customers that were pruned from
>> the live data base. We kept those backup tapes for about three years
>> and nobody *ever* asked asked for any of that old data.
>
> As usual, it's a situation dependent question. Some apps are required
> to keep data for 7, 10, 25, 35, or 50 years, if not longer. I've
> encountered one requiring 40 years of archiving, IIRC, at a nuclear
> power plant.
>
I hope that 50 year app doesn't generate a lot of data!
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 4:05 ` glen herrmannsfeldt
@ 2009-08-11 18:02 ` P. Sture
0 siblings, 0 replies; 105+ messages in thread
From: P. Sture @ 2009-08-11 18:02 UTC (permalink / raw)
In article <h5qqmq$psp$1@naig.caltech.edu>,
glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:
> There was a story of someone writing a whole tape as one block using
> data chaining on S/360.
That is the case for seismological survey tapes. Specialized hardware
is need to read them. Those tapes are also kept for many years, copied
to newer tapes (tape life), and re-analyzed along the way.
--
Paul Sture
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 13:00 ` Bob Koehler
2009-08-11 13:36 ` Richard B. Gilbert
@ 2009-08-11 18:38 ` glen herrmannsfeldt
2009-08-11 18:55 ` Al Kossow
2009-08-12 13:39 ` Bob Koehler
1 sibling, 2 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-11 18:38 UTC (permalink / raw)
In comp.os.vms Bob Koehler <koehler@eisner.nospam.encompasserve.org> wrote:
<
< Once upon a time I was told that the "universal" format was 800 BPI
< 9-tracks written in unblocked 80 byte EBCDIC records.
I believe more common is 80 bytes blocked into 800 byte blocks.
80 was just too small, even in 1964.
< Fortunately, when we got our second 11/780 some nice DECcie gave us
< a program to translate to/from EBCDIC while moving files to/from
< tape.
I remember reading EBCDIC tapes on the PDP-10, and then VAX.
Finally after some time I managed to convince OS/VS2 to write
an AL (ANSI label) tape with ASCII data, just like VAX/VMS liked.
< But the only 9-tracks drives know I can find are out of commision, in
< the basement of a friend who would like to find parts for them.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 18:38 ` glen herrmannsfeldt
@ 2009-08-11 18:55 ` Al Kossow
2009-08-11 19:30 ` Richard B. Gilbert
` (3 more replies)
2009-08-12 13:39 ` Bob Koehler
1 sibling, 4 replies; 105+ messages in thread
From: Al Kossow @ 2009-08-11 18:55 UTC (permalink / raw)
> < But the only 9-tracks drives know I can find are out of commision, in
> < the basement of a friend who would like to find parts for them.
>
which model?
Having read literally thousands of 9-tracks, 800bpi is problematic in 2009.
1600 and 6250 can be MUCH more reliably read today than 800.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 18:55 ` Al Kossow
@ 2009-08-11 19:30 ` Richard B. Gilbert
2009-08-11 19:55 ` glen herrmannsfeldt
2009-08-11 19:46 ` glen herrmannsfeldt
` (2 subsequent siblings)
3 siblings, 1 reply; 105+ messages in thread
From: Richard B. Gilbert @ 2009-08-11 19:30 UTC (permalink / raw)
Al Kossow wrote:
>
>> < But the only 9-tracks drives know I can find are out of commision, in
>> < the basement of a friend who would like to find parts for them.
>>
>
> which model?
>
> Having read literally thousands of 9-tracks, 800bpi is problematic in 2009.
> 1600 and 6250 can be MUCH more reliably read today than 800.
I think a better grade of tape was used for 1600 and 6250. I no longer
recall if there were TWO better grades of tape; one 1600 and another for
6250 bpi. It has been many long years since I last used reel to reel tape!
It has been almost ten years since I've even seen reel to reel tape or a
reel to reel drive. My former employer had a pair of DEC drives. I
think they were 1600 BPI. They were decommissioned and hauled away
shortly after I joined the organization. From that point it was all DLT
or 8mm cartridges.
We got a robot that handled about 100 DLT tapes and that was used for
all the Windows, Novell, and Unix servers. Eventually we got client
software for VMS. . . .
We had damned near everything. I once counted something like seven
hardware platforms, and ten different operating systems. Everything
from Windows to O/S 370. The company had grown by acquisition and it
showed!
Eventually the whole enterprise was acquired by Deluxe which used Novell
Netware for EVERYTHING. My services were no longer required.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 18:55 ` Al Kossow
2009-08-11 19:30 ` Richard B. Gilbert
@ 2009-08-11 19:46 ` glen herrmannsfeldt
2009-08-12 13:40 ` Bob Koehler
2009-08-12 13:44 ` Bob Koehler
3 siblings, 0 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-11 19:46 UTC (permalink / raw)
In comp.os.vms Al Kossow <aek@bitsavers.org> wrote:
> Having read literally thousands of 9-tracks, 800bpi is problematic in 2009.
> 1600 and 6250 can be MUCH more reliably read today than 800.
It looks like nothing is now. 800 BPI was problematic in the 1970s,
and 1980's, and likely in the 1960's. If you read on the same drive
it was written on, without changing the head alignment, you have a
good chance of reading it back. Otherwise, change the head azimuth
until it works.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 19:30 ` Richard B. Gilbert
@ 2009-08-11 19:55 ` glen herrmannsfeldt
0 siblings, 0 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-11 19:55 UTC (permalink / raw)
In comp.os.vms Richard B. Gilbert <rgilbert88@comcast.net> wrote:
> I think a better grade of tape was used for 1600 and 6250. I no longer
> recall if there were TWO better grades of tape; one 1600 and another for
> 6250 bpi. It has been many long years since I last used reel to reel tape!
It might have been better tape, but that didn't help for 800.
For 800, NRZI code, all the tracks clock together. There either is
or isn't a transition on a track for a 1 or 0. It has to be odd
parity or you can't have all data bits 0. If the head azimuth
alignment is different than the tape was written on then the tracks
don't clock together (close enough) and data errors result.
For 1600 (phase encoded) each track clocks separately. Logic in
the drive puts the bits back together again, but they can be read
even if the head azimuth is off. (The flux transitions can be
up to two per bit, so 3200 FCPI.)
At 6250 they are GCR, with the actual bit density (flux transitions)
being somewhat higher. Not twice as high (as for 1600) but
maybe around 9000 FCPI with the extra going to error detection
and correction.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 15:09 ` Howard S Shubs
@ 2009-08-11 20:51 ` Hein, Nashua NH
2009-08-24 15:49 ` P. Sture
0 siblings, 1 reply; 105+ messages in thread
From: Hein, Nashua NH @ 2009-08-11 20:51 UTC (permalink / raw)
On Aug 11, 11:09 am, Howard S Shubs <how...@shubs.net> wrote:
> "Hein, Nashua NH" <heinvandenheu...@gmail.com> wrote:
>
> I'm not sure what you're getting at. I'm just looking at a simple
> situation of "read it, give the data to the caller". I'm using $READ
> and $OPEN (and $CLOSE) so I don't have to open the file by hand, which
> would require me to play with ODS-2 myself, I expect.
Which is just fine for a few MB. For larger volumes and higher
performance requirements you might want double/multy-buffering. RMS
record mode gives that for free, albeit with a 127 block IO size
limitation.
>> Disk $QIOs would be new to me, as well.
Not too tricky, but no need to go there. If you do, skip QIO and go
fro IO_PERFORM :-)
> I'm not seeing $MODIFY in either the System Services Reference or the
> RMS reference. What is it, please?
Correct. You started with the word 'internal'. :-)
It is an undocumented system service primarily used by the linker/
debugger to switch form the fixed-length 512 image records to the
variable length system table section in the image file.
The (few) option are in RMEDEF.
One of its usages is to change the record format (RFM) on the fly.
If the file is opened for write, and you leave teh new setting, it
will become permanent.
Silly example usage to (potentially) 'fix' a broken backup saveset:
#include <stdio>
#include <rms>
#include <rmedef>
main (int argc, char *argv[])
{
struct FAB fab;
int s;
fab = cc$rms_fab; /* Make this a real FAB (bid
and bln) */
fab.fab$b_fac = FAB$M_PUT;
fab.fab$l_fna = argv[1];
fab.fab$b_fns = STRLEN( argv[1] );
s = sys$open(&fab);
if (!(s & 1)) return s;
fab.fab$l_ctx = RME$C_SETRFM;
fab.fab$v_esc = 1;
if (argc > 2) { sscanf(argv[2], "%d", &fab.fab$w_mrs );
} else fab.fab$w_mrs = 32256;
fab.fab$b_rfm = FAB$C_FIX;
s=sys$modify(&fab);
if (!(s & 1)) return s;
return sys$close(&fab);
}
> I'm reading up to 512 blocks at a time, or 3*recordsize rounded up to
> the next block size, whichever is bigger.
Nice!
> A 256KB read is fairly modest, I figure.
Agreed. The SCSI protocol may still fragment it, but you did the best
you could :-). Out of your hands.
In a different reply Howard wrote:
> There doesn't seem to be a STREAM CRLF variant. :-D
There is. It is plain 'stream' aka STM.
But be careful... it comes with some surprise semantics (to be RSTS/E
compatible?)
RMS REF MAN: FAB$B_RFM ... "Records are delimited by FF, VT, LF, or CR
LF,
and all leading zeros are ignored."
Hein.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 2:58 ` Richard B. Gilbert
2009-08-11 4:05 ` glen herrmannsfeldt
2009-08-11 13:00 ` Bob Koehler
@ 2009-08-12 1:00 ` Arne Vajhøj
2 siblings, 0 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-12 1:00 UTC (permalink / raw)
Richard B. Gilbert wrote:
> Arne Vajh�j wrote:
>> Bob Koehler wrote:
>>> In article <howard-E4439F.13574308082009@news.newsguy.com>, Howard S
>>> Shubs <howard@shubs.net> writes:
>>>> In article <0076b30e$0$7155$c3e8da3@news.astraweb.com>,
>>>> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>>>> If a VMS native file didn't have CRLF at the end, but Windows added
>>>>> them, then it is likely the original VMS->Windows transfer mucked
>>>>> the file.
>>>> Original was Windows->VMS, as the file was created on Windows.
>>>>
>>> Sounds like it simply should have been transfered as a text file.
>>> Are you trying to compensate for all the mistakes the user could
>>> make? It isn't really an RMS function to fix those, you're kind of
>>> rolling on your own.
>>
>> He is trying to solve the problem that most non-VMS files has valid
>> text files with rec len > 32K, but VMS does not.
>
> Just because other systems allow records greater than 32K does not mean
> that files have to be written with records that big.
No. But a lot of apps does. And if those files need to be moved onto a
VMS system, then we have the problem.
> The only format that is close to being universal is fixed length 80 byte
> records. Many systems can block and/or deblock those fixed length records.
>
> Either the tapes must be written with record lengths < 32K or they must
> be read on another system!!
HTTP or FTP is more likely than tape these days.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 15:24 ` Howard S Shubs
@ 2009-08-12 1:05 ` Arne Vajhøj
2009-08-12 3:01 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-12 1:05 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <4a809f46$0$303$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>> Howard S Shubs wrote:
>>> I might just try your method, just for the heck of it.
>> $ open/write vfc.fil vfc.fil
>> $ close vfc.fil
>> $ append real.fil vfc.fil
>>
>> should do it.
>
> LOL. Arne, I'm not deficient in DCL, but thanks. :-) I meant, try it
> with my code, not the other. :-d
Somewhere several emails back you wrote:
# I did start looking at VFC, but had problems with it due to the lack of
# a sample file. CONVERT didn't help, unfortunately.
And:
#I was making test files from the original using CONVERT.
The above converts real.fil in VAR format to vfc.fil
in VFC format without using CONVERT.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 15:26 ` Howard S Shubs
@ 2009-08-12 1:06 ` Arne Vajhøj
0 siblings, 0 replies; 105+ messages in thread
From: Arne Vajhøj @ 2009-08-12 1:06 UTC (permalink / raw)
Howard S Shubs wrote:
> In article <4a80a1bb$0$299$14726298@news.sunsite.dk>,
> Arne Vajh�j <arne@vajhoej.dk> wrote:
>> Give the size of data today and the need for moving files between
>> VMS and various non-VMS systems, then what about:
>> - changing the 32K limit to a 16M limit
>> - have VAR and VFC use 4 byte length both before and after data
>> - if there are any compatibility issues then keep the existing
>> RFM's and add BIGVAR, BIGVFC, BIGSTM, BIGSTMLF, BIGSTMCR and BIGFIX
>> ?
>
> Easier said than done. Getting HP to make this change would be
> significant, and would take time. I need this ready in a week for this
> client. My programmer is already using it, though I've told him of the
> bug I found.
That comment was not intended as a solution for you - just some
general thoughts about the topic.
Arne
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-12 1:05 ` Arne Vajhøj
@ 2009-08-12 3:01 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-12 3:01 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 349 bytes --]
In article <4a82153b$0$303$14726298@news.sunsite.dk>,
Arne Vajh�j <arne@vajhoej.dk> wrote:
> The above converts real.fil in VAR format to vfc.fil
> in VFC format without using CONVERT.
Yes, but not from my source file. As I said, I'll have to try it anyway.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 17:17 ` Richard B. Gilbert
@ 2009-08-12 3:04 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-12 3:04 UTC (permalink / raw)
In article <SaSdnVrNAYAqOhzXnZ2dnUVZ_q2dnZ2d@giganews.com>,
"Richard B. Gilbert" <rgilbert88@comcast.net> wrote:
> I hope that 50 year app doesn't generate a lot of data!
Depends on your definition of "a lot". The machine the nuke plant had
just installed when I got there in 1997 had *10* RZ29 4GB drives! 40GB!
HUGE storage.... I thought. They were filled in a few months.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 17:08 ` Bob Koehler
@ 2009-08-12 3:18 ` Howard S Shubs
2009-08-13 16:05 ` P. Sture
0 siblings, 1 reply; 105+ messages in thread
From: Howard S Shubs @ 2009-08-12 3:18 UTC (permalink / raw)
In article <57apIjJaLEOL@eisner.encompasserve.org>,
koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
> But I thought the 32K limit he was up against is applicable to any
> record type. A 16 bit length field in the RAB data is a 16 bit
> length field.
It is, unless it's an UNSIGNED 16-bit length field, which this isn't.
I'm the OP.
If you have a CRLF-terminated ASCII file and put it raw on VMS, then
declare it a STREAM (either CR or LF), you'll end up with an extra
character which you need to account for in the programming. Either way,
there's an extra step.
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 18:38 ` glen herrmannsfeldt
2009-08-11 18:55 ` Al Kossow
@ 2009-08-12 13:39 ` Bob Koehler
2009-08-12 17:55 ` glen herrmannsfeldt
1 sibling, 1 reply; 105+ messages in thread
From: Bob Koehler @ 2009-08-12 13:39 UTC (permalink / raw)
In article <h5sdqe$bvq$3@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
>
> I remember reading EBCDIC tapes on the PDP-10, and then VAX.
> Finally after some time I managed to convince OS/VS2 to write
> an AL (ANSI label) tape with ASCII data, just like VAX/VMS liked.
I'm not sure what OS we were running on our 360/75, but when I
told it to generate AL tapes it put an EOV label at the end which
convinced VMS 3.x that there was another tape to follow.
But if I made the tape on VMS and told the 360 it was AL, it read
it fine.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 18:55 ` Al Kossow
2009-08-11 19:30 ` Richard B. Gilbert
2009-08-11 19:46 ` glen herrmannsfeldt
@ 2009-08-12 13:40 ` Bob Koehler
2009-08-12 13:44 ` Bob Koehler
3 siblings, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-12 13:40 UTC (permalink / raw)
In article <h5sf9k$f4k$1@news.eternal-september.org>, Al Kossow <aek@bitsavers.org> writes:
>
>> < But the only 9-tracks drives know I can find are out of commision, in
>> < the basement of a friend who would like to find parts for them.
>>
>
> which model?
>
> Having read literally thousands of 9-tracks, 800bpi is problematic in 2009.
> 1600 and 6250 can be MUCH more reliably read today than 800.
I think he's got a couple of TU45 and maybe a TE16.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 18:55 ` Al Kossow
` (2 preceding siblings ...)
2009-08-12 13:40 ` Bob Koehler
@ 2009-08-12 13:44 ` Bob Koehler
3 siblings, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-12 13:44 UTC (permalink / raw)
In article <IbOdnZLqFu92WxzXnZ2dnUVZ_uGdnZ2d@giganews.com>, "Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>
> I think a better grade of tape was used for 1600 and 6250. I no longer
> recall if there were TWO better grades of tape; one 1600 and another for
> 6250 bpi. It has been many long years since I last used reel to reel tape!
We used the same tapes for 800, 1600, and 6250 BPI. The only problem
was trying to do 800 BPI on our TU45. We had a requirement to
produce 1600 BPI tapes on those systems and a hard time tuning the
TU45 to do both 800 and 1600 correctly, so we fine tuned 1600 at the
cost of often not really having 800.
And tapes done in either ANSI/ASCII labels or VMS BACKUP were much
more usefull in that shop (lots of VAXen, a couple PDP-11, and two
DECSYSTEM-20), so I stopped using unblocked 80 byte EBCDIC records
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-10 22:33 ` Arne Vajhøj
2009-08-11 15:13 ` Howard S Shubs
2009-08-11 17:08 ` Bob Koehler
@ 2009-08-12 14:21 ` Bob Koehler
2 siblings, 0 replies; 105+ messages in thread
From: Bob Koehler @ 2009-08-12 14:21 UTC (permalink / raw)
In article <howard-F668D8.23181211082009@news.newsguy.com>, Howard S Shubs <howard@shubs.net> writes:
>
> If you have a CRLF-terminated ASCII file and put it raw on VMS, then
> declare it a STREAM (either CR or LF), you'll end up with an extra
> character which you need to account for in the programming. Either way,
> there's an extra step.
IIRC stmcr would have an extra LF, and stmlf would have an extra CR,
but stm expects CRLF.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 13:36 ` Richard B. Gilbert
2009-08-11 15:29 ` Howard S Shubs
2009-08-11 17:04 ` Bob Koehler
@ 2009-08-12 16:45 ` Michael Moroney
2 siblings, 0 replies; 105+ messages in thread
From: Michael Moroney @ 2009-08-12 16:45 UTC (permalink / raw)
Richard Gilbert writes:
> Are reel-to-reel nine track tape drives still in use anywhere? Seven
> track? How about TK50 drives and cartridges?
I am actually involved right now in a project to replace a procedure where
data files are written onto 9 track tape by a Unisys system and
transferred over to a VAX about twice a month, with a procedure using FTP
from the Unisys to an Itanic running VMS. (the main application already
runs on the Itanic). This is so the VAX and the tape drives can go away.
There are custom programs on the VAX that mounts the tapes and translates
the data from some bizarre format to its own bizarre format.
The Unisys looks like a blast from the past or something from a bad movie,
with 5 reel-to-reel full height drive cabinets.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-12 13:39 ` Bob Koehler
@ 2009-08-12 17:55 ` glen herrmannsfeldt
0 siblings, 0 replies; 105+ messages in thread
From: glen herrmannsfeldt @ 2009-08-12 17:55 UTC (permalink / raw)
In comp.os.vms Bob Koehler <koehler@eisner.nospam.encompasserve.org> wrote:
< In article <h5sdqe$bvq$3@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
<> I remember reading EBCDIC tapes on the PDP-10, and then VAX.
<> Finally after some time I managed to convince OS/VS2 to write
<> an AL (ANSI label) tape with ASCII data, just like VAX/VMS liked.
< I'm not sure what OS we were running on our 360/75, but when I
< told it to generate AL tapes it put an EOV label at the end which
< convinced VMS 3.x that there was another tape to follow.
I don't remember that problem. Well, it would have been early 1980,
so maybe before VMS 3.x. The problems I remember were with ASP
(what became JES3) not recognizing AL tapes. The solution which
someone else found for me was deferred mounting.
< But if I made the tape on VMS and told the 360 it was AL, it read
< it fine.
I probably did some tapes that direction, but mostly the other way.
-- glen
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-12 3:18 ` Howard S Shubs
@ 2009-08-13 16:05 ` P. Sture
2009-08-14 1:13 ` Howard S Shubs
0 siblings, 1 reply; 105+ messages in thread
From: P. Sture @ 2009-08-13 16:05 UTC (permalink / raw)
In article <howard-F668D8.23181211082009@news.newsguy.com>,
Howard S Shubs <howard@shubs.net> wrote:
> In article <57apIjJaLEOL@eisner.encompasserve.org>,
> koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote:
>
> > But I thought the 32K limit he was up against is applicable to any
> > record type. A 16 bit length field in the RAB data is a 16 bit
> > length field.
>
> It is, unless it's an UNSIGNED 16-bit length field, which this isn't.
> I'm the OP.
>
> If you have a CRLF-terminated ASCII file and put it raw on VMS, then
> declare it a STREAM (either CR or LF), you'll end up with an extra
> character which you need to account for in the programming. Either way,
> there's an extra step.
Instead, try this for <CR><LF> terminated records
$ SET FILE /ATTR=RFM:STM <filename>
It certainly worked for my last set of Hobbyist licenses.
--
Paul Sture
Attention:
If you run Firefox as a non-privileged user, you won't be notified of
security updates.
See <http://www.sture.ch/content/firefox-security-flaw-non-admin-users>
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-13 16:05 ` P. Sture
@ 2009-08-14 1:13 ` Howard S Shubs
0 siblings, 0 replies; 105+ messages in thread
From: Howard S Shubs @ 2009-08-14 1:13 UTC (permalink / raw)
In article <paul.nospam-A41E14.18052013082009@mac.sture.ch>,
"P. Sture" <paul.nospam@sture.ch> wrote:
> Instead, try this for <CR><LF> terminated records
>
> $ SET FILE /ATTR=RFM:STM <filename>
>
> It certainly worked for my last set of Hobbyist licenses.
Yes, I saw that in the docs today. Neat!
--
Don't bother with piddly crap like "gun control".
Life is 100% fatal. Ban it.
^ permalink raw reply [flat|nested] 105+ messages in thread
* Re: RMS internals?
2009-08-11 20:51 ` Hein, Nashua NH
@ 2009-08-24 15:49 ` P. Sture
0 siblings, 0 replies; 105+ messages in thread
From: P. Sture @ 2009-08-24 15:49 UTC (permalink / raw)
In article
<22c754f4-872f-4703-b97a-f107e62a99e9@j21g2000yqe.googlegroups.com>,
"Hein, Nashua NH" <heinvandenheuvel@gmail.com> wrote:
> In a different reply Howard wrote:
> > There doesn't seem to be a STREAM CRLF variant. :-D
>
> There is. It is plain 'stream' aka STM.
> But be careful... it comes with some surprise semantics (to be RSTS/E
> compatible?)
>
> RMS REF MAN: FAB$B_RFM ... "Records are delimited by FF, VT, LF, or CR
> LF,
> and all leading zeros are ignored."
I vaguely remember something like that in RT-11, where IIRC binary
zeroes were ignored in certain (long forgotten) circumstances.
--
Paul Sture
^ permalink raw reply [flat|nested] 105+ messages in thread
end of thread, other threads:[~2009-08-24 15:49 UTC | newest]
Thread overview: 105+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-07 13:20 RMS internals? Howard S Shubs
2009-08-07 14:04 ` Bob Koehler
2009-08-07 14:09 ` Howard S Shubs
2009-08-07 14:25 ` R.A.Omond
2009-08-07 17:29 ` Graham Burley
2009-08-08 16:07 ` Howard S Shubs
2009-08-07 15:06 ` Malcolm Dunnett
2009-08-07 15:36 ` Richard B. Gilbert
2009-08-07 15:46 ` IanMiller
2009-08-07 17:57 ` JF Mezei
2009-08-08 11:32 ` VAXman-
2009-08-07 17:07 ` Bob Koehler
2009-08-07 18:24 ` Malcolm Dunnett
2009-08-07 21:35 ` P. Sture
2009-08-08 16:16 ` Howard S Shubs
2009-08-08 17:42 ` JF Mezei
2009-08-08 17:57 ` Howard S Shubs
2009-08-10 12:41 ` Bob Koehler
2009-08-10 14:11 ` Howard S Shubs
2009-08-10 14:49 ` Hein, Nashua NH
2009-08-11 15:09 ` Howard S Shubs
2009-08-11 20:51 ` Hein, Nashua NH
2009-08-24 15:49 ` P. Sture
2009-08-10 21:02 ` Bob Koehler
2009-08-11 14:58 ` Howard S Shubs
2009-08-10 22:34 ` Arne Vajhøj
2009-08-10 22:39 ` Arne Vajhøj
2009-08-11 15:26 ` Howard S Shubs
2009-08-12 1:06 ` Arne Vajhøj
2009-08-10 22:43 ` glen herrmannsfeldt
2009-08-10 22:56 ` Arne Vajhøj
2009-08-11 2:58 ` Richard B. Gilbert
2009-08-11 4:05 ` glen herrmannsfeldt
2009-08-11 18:02 ` P. Sture
2009-08-11 13:00 ` Bob Koehler
2009-08-11 13:36 ` Richard B. Gilbert
2009-08-11 15:29 ` Howard S Shubs
2009-08-11 17:17 ` Richard B. Gilbert
2009-08-12 3:04 ` Howard S Shubs
2009-08-11 17:04 ` Bob Koehler
2009-08-12 16:45 ` Michael Moroney
2009-08-11 18:38 ` glen herrmannsfeldt
2009-08-11 18:55 ` Al Kossow
2009-08-11 19:30 ` Richard B. Gilbert
2009-08-11 19:55 ` glen herrmannsfeldt
2009-08-11 19:46 ` glen herrmannsfeldt
2009-08-12 13:40 ` Bob Koehler
2009-08-12 13:44 ` Bob Koehler
2009-08-12 13:39 ` Bob Koehler
2009-08-12 17:55 ` glen herrmannsfeldt
2009-08-12 1:00 ` Arne Vajhøj
2009-08-08 17:52 ` Arne Vajhøj
2009-08-08 18:03 ` Howard S Shubs
2009-08-08 18:26 ` Arne Vajhøj
2009-08-08 18:38 ` JF Mezei
2009-08-09 2:14 ` Howard S Shubs
2009-08-09 2:35 ` glen herrmannsfeldt
2009-08-09 7:11 ` Howard S Shubs
2009-08-10 12:44 ` Bob Koehler
2009-08-10 13:57 ` Richard B. Gilbert
2009-08-10 18:47 ` glen herrmannsfeldt
2009-08-10 21:00 ` Bob Koehler
2009-08-10 18:32 ` glen herrmannsfeldt
2009-08-10 20:35 ` Rich Alderson
2009-08-10 21:32 ` Stefaan A Eeckels
2009-08-09 4:08 ` JF Mezei
2009-08-09 7:14 ` Howard S Shubs
2009-08-09 17:21 ` Michael Moroney
2009-08-10 6:02 ` Howard S Shubs
2009-08-09 9:23 ` R.A.Omond
2009-08-10 16:07 ` P. Sture
2009-08-10 21:04 ` Bob Koehler
2009-08-09 1:59 ` Howard S Shubs
2009-08-10 2:11 ` Arne Vajhøj
2009-08-10 6:00 ` Howard S Shubs
2009-08-10 22:33 ` Arne Vajhøj
2009-08-11 15:13 ` Howard S Shubs
2009-08-11 17:08 ` Bob Koehler
2009-08-12 3:18 ` Howard S Shubs
2009-08-13 16:05 ` P. Sture
2009-08-14 1:13 ` Howard S Shubs
2009-08-12 14:21 ` Bob Koehler
2009-08-10 15:57 ` P. Sture
2009-08-11 15:16 ` Howard S Shubs
2009-08-10 12:38 ` Bob Koehler
2009-08-10 17:10 ` JF Mezei
2009-08-10 21:06 ` Bob Koehler
2009-08-10 22:59 ` Michael Moroney
2009-08-11 15:23 ` Howard S Shubs
2009-08-11 17:12 ` Bob Koehler
2009-08-11 15:22 ` Howard S Shubs
2009-08-10 22:27 ` Arne Vajhøj
2009-08-07 19:28 ` Alan Frisbie
2009-08-08 16:20 ` Howard S Shubs
2009-08-07 21:27 ` P. Sture
2009-08-08 16:08 ` Howard S Shubs
2009-08-09 13:14 ` Hein, Nashua NH
2009-08-09 14:50 ` Hein, Nashua NH
2009-08-09 16:53 ` Howard S Shubs
2009-08-09 17:29 ` Arne Vajhøj
2009-08-10 5:59 ` Howard S Shubs
2009-08-10 22:29 ` Arne Vajhøj
2009-08-11 15:24 ` Howard S Shubs
2009-08-12 1:05 ` Arne Vajhøj
2009-08-12 3:01 ` Howard S Shubs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox