Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The meek shall inherit the earth; the rest of us, the Universe.


computers / comp.os.vms / Re: Example of random access by record number on an RMS fixed record size, relative organization file?

SubjectAuthor
* Example of random access by record number on an RMS fixed record size, relative T. Kurt Bond
+* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
|`* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| +* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |`* Re: Example of random access by record number on an RMS fixed recordgah4
| | +* Re: Example of random access by record number on an RMS fixed recordHein RMS van den Heuvel
| | |+- Re: Example of random access by record number on an RMS fixed recordgah4
| | |`* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | | `* Re: Example of random access by record number on an RMS fixed recordHein RMS van den Heuvel
| | |  `- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | +* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | |`* Re: Example of random access by record number on an RMS fixed record size, relatSimon Clubley
| | | +- Re: Example of random access by record number on an RMS fixed recordgah4
| | | `* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | |  `* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | |   `- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | `* Re: Example of random access by record number on an RMS fixed recordbill
| |  `* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |   +* Re: Example of random access by record number on an RMS fixed recordHein RMS van den Heuvel
| |   |+- Re: Example of random access by record number on an RMS fixed recordgah4
| |   |`- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |   `* Re: Example of random access by record number on an RMS fixed recordbill
| |    +* Re: Example of random access by record number on an RMS fixed recordgah4
| |    |+* Re: Example of random access by record number on an RMS fixed recordDave Froble
| |    ||`* Re: Example of random access by record number on an RMS fixed recordgah4
| |    || `* Re: Example of random access by record number on an RMS fixed recordDavid Jones
| |    ||  `* Re: Example of random access by record number on an RMS fixed recordgah4
| |    ||   `- Re: Example of random access by record number on an RMS fixed recordJohnny Billquist
| |    |`* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |    | +- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |    | `- Re: Example of random access by record number on an RMS fixed recordgah4
| |    `- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| +- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| +* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |`* Re: Example of random access by record number on an RMS fixed recordDave Froble
| | +* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | |`* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | | `* Re: Example of random access by record number on an RMS fixed recordDave Froble
| | |  `* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | |   +- Re: Example of random access by record number on an RMS fixed recordgah4
| | |   +* Re: Example of random access by record number on an RMS fixed recordJohnny Billquist
| | |   |`- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | |   `* Re: Example of random access by record number on an RMS fixed recordDave Froble
| | |    `- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| | `* Re: Example of random access by record number on an RMS fixed record size, relatSimon Clubley
| |  +- Re: Example of random access by record number on an RMS fixed recordHein RMS van den Heuvel
| |  `* Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| |   `* Re: Example of random access by record number on an RMS fixed record size, relatSimon Clubley
| |    +* Re: Example of random access by record number on an RMS fixed recordChris Townley
| |    |`- Re: Example of random access by record number on an RMS fixed record size, relatSimon Clubley
| |    `- Re: Example of random access by record number on an RMS fixed recordDave Froble
| +- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| +- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
| `- Re: Example of random access by record number on an RMS fixed recordArne Vajhøj
+- Re: Example of random access by record number on an RMS fixed recordDave Froble
+* Re: Example of random access by record number on an RMS fixed record size, relatBob Gezelter
|`- Re: Example of random access by record number on an RMS fixed recordgah4
+- Re: Example of random access by record number on an RMS fixed record size, relatNeil Rieck
+* Re: Example of random access by record number on an RMS fixed record size, relatT. Kurt Bond
|`* Re: Example of random access by record number on an RMS fixed record size, relatDennis Boone
| `- Re: Example of random access by record number on an RMS fixed recordbill
`- Re: Example of random access by record number on an RMS fixed record size, relatBrian Schenkenberger

Pages:123
Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<ueinr4$3op2f$5@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30076&group=comp.os.vms#30076

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Thu, 21 Sep 2023 20:41:08 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <ueinr4$3op2f$5@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueeoac$2u101$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Sep 2023 00:41:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3ee00c18b9b3d7ac8be29eb687c6df0b";
logging-data="3957839"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dPbRRYN3QyF25bTbGki8TM5CVBe/heo4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3ibobTF0hi8tv9iuOiA1XYQf8TE=
In-Reply-To: <ueeoac$2u101$2@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 22 Sep 2023 00:41 UTC

On 9/20/2023 8:24 AM, Simon Clubley wrote:
> On 2023-09-20, Dave Froble <davef@tsoft-inc.com> wrote:
>> Is it just me, or, was my Basic example shorter and easier to read than your
>> Cobol, Fortran, and C examples?
>
> Arne could always add a Macro-32 example to that list... :-)

I just added Cobol, Basic and Macro-32.

And note that the Macro-32 code is shorter than the C code.

Macro-32 initialization of FAB and RAB blocks are much shorter/easier
than the C same.

Arne

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<ueip74$3p1sm$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30077&group=comp.os.vms#30077

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Thu, 21 Sep 2023 21:05:33 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <ueip74$3p1sm$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 01:04:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="39be64886bb7402e5353c3c1b18296a3";
logging-data="3966870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tZ8ldhyJ8L/Litnorn9Bm3pPfVzX4cmI="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:0/RuaZ/eDVUWGBhoKQJSdnAvrYw=
In-Reply-To: <ueinnv$3op2f$4@dont-email.me>
 by: Dave Froble - Fri, 22 Sep 2023 01:05 UTC

On 9/21/2023 8:39 PM, Arne Vajhøj wrote:
> On 9/20/2023 7:15 AM, Arne Vajhøj wrote:
>> On 9/20/2023 12:02 AM, Dave Froble wrote:
>>> On 9/19/2023 8:50 PM, Arne Vajhøj wrote:
>>>> On 9/19/2023 8:44 PM, Arne Vajhøj wrote:
>>>>> On 9/16/2023 4:16 PM, Arne Vajhøj wrote:
>>>>>> I don't think I have ever used ORG=REL.
>>>>>
>>>>> But then I could start now!
>>>>
>>>> C / RMS:
>>>
>>> Is it just me, or, was my Basic example shorter and easier to read than your
>>> Cobol, Fortran, and C examples?
>>
>> The Basic code was a bit shorter than the Fortran and Pascal code.
>> No so surprising VMS Basic is pretty good in expressing logic
>> in few lines.
>>
>> The Basic code was a lot shorter than the C code, because
>> that was using RMS calls and not language specific statement -
>> working with RMS Calls and FAB & RAB blocks always require
>> way more code than language specific statements.
>
> The stats for my code:
>
> Fortran: 13 + 11 + 12 = 36
> Basic: 13 + 16 + 13 = 42
> Pascal: 23 + 22 + 22 = 67
> Cobol: 32 + 28 + 29 = 89
> Macro-32: 34 + 38 + 43 = 115
> C: 57 + 55 + 57 = 169
>
> Obviously the result depends a little on coding style - and
> mine is just mine.
>
> Arne
>
>

What are those stats?

I believe my example both created and populated the file, then allowed the user
to select and display records. 14 lines of code, if I counted correctly.

If we're looking for minimum code ...

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<ueipls$3orlj$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30078&group=comp.os.vms#30078

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Thu, 21 Sep 2023 21:12:28 -0400
Organization: A noiseless patient Spider
Lines: 68
Message-ID: <ueipls$3orlj$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me> <ueip74$3p1sm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 01:12:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3ee00c18b9b3d7ac8be29eb687c6df0b";
logging-data="3960499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198RXw9eFoPgBlPVMk56DN8IdOTZmnNYTI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VC4RzPAhxpSpbWYVKh5G8j1yykg=
In-Reply-To: <ueip74$3p1sm$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 22 Sep 2023 01:12 UTC

On 9/21/2023 9:05 PM, Dave Froble wrote:
> On 9/21/2023 8:39 PM, Arne Vajhøj wrote:
>> On 9/20/2023 7:15 AM, Arne Vajhøj wrote:
>>> On 9/20/2023 12:02 AM, Dave Froble wrote:
>>>> On 9/19/2023 8:50 PM, Arne Vajhøj wrote:
>>>>> On 9/19/2023 8:44 PM, Arne Vajhøj wrote:
>>>>>> On 9/16/2023 4:16 PM, Arne Vajhøj wrote:
>>>>>>> I don't think I have ever used ORG=REL.
>>>>>>
>>>>>> But then I could start now!
>>>>>
>>>>> C / RMS:
>>>>
>>>> Is it just me, or, was my Basic example shorter and easier to read
>>>> than your
>>>> Cobol, Fortran, and C examples?
>>>
>>> The Basic code was a bit shorter than the Fortran and Pascal code.
>>> No so surprising VMS Basic is pretty good in expressing logic
>>> in few lines.
>>>
>>> The Basic code was a lot shorter than the C code, because
>>> that was using RMS calls and not language specific statement -
>>> working with RMS Calls and FAB & RAB blocks always require
>>> way more code than language specific statements.
>>
>> The stats for my code:
>>
>> Fortran: 13 + 11 + 12 = 36
>> Basic: 13 + 16 + 13 = 42
>> Pascal: 23 + 22 + 22 = 67
>> Cobol: 32 + 28 + 29 = 89
>> Macro-32: 34 + 38 + 43 = 115
>> C: 57 + 55 + 57 = 169
>>
>> Obviously the result depends a little on coding style - and
>> mine is just mine.
>
> What are those stats?

For each language I did 3 programs:
* write
* read sequential
* read by record number

The numbers are lines.

> I believe my example both created and populated the file, then allowed
> the user to select and display records.  14 lines of code, if I counted
> correctly.
>
> If we're looking for minimum code ...

So my Basic examples were 13, 16 and 13 lines.

I think the main difference are that I had program statement at top,
declared variables instead of using type suffix and looped over
all records when reading.

And then maybe that I know little about VMS Basic.

BTW, my basic code has a difference from the other languages as
I was not able to put leading zeroes in the 4 digits line number.
How does one get an integer formatted to a given width with leading
zeros in VMS basic??

Arne

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<c98f5fb1-f31c-4ea1-b5c0-b5da2bb7a24en@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30079&group=comp.os.vms#30079

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:3c0b:b0:773:a327:38df with SMTP id tn11-20020a05620a3c0b00b00773a32738dfmr74332qkn.2.1695346243955;
Thu, 21 Sep 2023 18:30:43 -0700 (PDT)
X-Received: by 2002:a05:6870:9550:b0:1c5:538a:d34a with SMTP id
v16-20020a056870955000b001c5538ad34amr3028089oal.11.1695346243595; Thu, 21
Sep 2023 18:30:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 21 Sep 2023 18:30:43 -0700 (PDT)
In-Reply-To: <ueipls$3orlj$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:4179:596f:be65:1c44;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:4179:596f:be65:1c44
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me> <ueip74$3p1sm$1@dont-email.me> <ueipls$3orlj$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c98f5fb1-f31c-4ea1-b5c0-b5da2bb7a24en@googlegroups.com>
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
From: gah...@u.washington.edu (gah4)
Injection-Date: Fri, 22 Sep 2023 01:30:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 15
 by: gah4 - Fri, 22 Sep 2023 01:30 UTC

On Thursday, September 21, 2023 at 6:12:33 PM UTC-7, Arne Vajhøj wrote:

(snip)

> BTW, my basic code has a difference from the other languages as
> I was not able to put leading zeroes in the 4 digits line number.
> How does one get an integer formatted to a given width with leading
> zeros in VMS basic??

BASIC formatted output is PRINT USING.

The actual syntax is different for different systems.

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uejpu7$mcc$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30081&group=comp.os.vms#30081

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Fri, 22 Sep 2023 12:23:03 +0200
Organization: MGT Consulting
Message-ID: <uejpu7$mcc$1@news.misty.com>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me> <ueip74$3p1sm$1@dont-email.me>
<ueipls$3orlj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 10:23:04 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="22924"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <ueipls$3orlj$1@dont-email.me>
 by: Johnny Billquist - Fri, 22 Sep 2023 10:23 UTC

On 2023-09-22 03:12, Arne Vajhøj wrote:
> BTW, my basic code has a difference from the other languages as
> I was not able to put leading zeroes in the 4 digits line number.
> How does one get an integer formatted to a given width with leading
> zeros in VMS basic??

BASIC2

print format$(1, "Line _#<0>####_!")

Line #00001!

BASIC2

(See HELP STA PRIN USI NUM for more details, I think...)
(And yes, I used BASIC+2 and not VMS BASIC. But as far as I can
remember, they are the same in this, and most other things.)

Johnny

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uejsht$60l2$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30082&group=comp.os.vms#30082

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Fri, 22 Sep 2023 07:08:38 -0400
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uejsht$60l2$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me> <ueip74$3p1sm$1@dont-email.me>
<ueipls$3orlj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 11:07:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="39be64886bb7402e5353c3c1b18296a3";
logging-data="197282"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WsQYV+F8hkC/IQ4uhp+v5jQQ4ncDvCMU="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:QlkTsmhF2m/NeQPSTACSTuH/HXk=
In-Reply-To: <ueipls$3orlj$1@dont-email.me>
 by: Dave Froble - Fri, 22 Sep 2023 11:08 UTC

On 9/21/2023 9:12 PM, Arne Vajhøj wrote:

> BTW, my basic code has a difference from the other languages as
> I was not able to put leading zeroes in the 4 digits line number.
> How does one get an integer formatted to a given width with leading
> zeros in VMS basic??

First, HELP/LIBRARY=SYS$HELP:BASICHELP is your friend.

Then look at "PRINT USING" for capabilities.

print format$(123.45,"<0>###.##")
0123.45

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uek0pk$7g73$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30084&group=comp.os.vms#30084

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record size, relative organization file?
Date: Fri, 22 Sep 2023 12:20:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uek0pk$7g73$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me> <uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me> <uedqqs$2p2ng$1@dont-email.me> <ueeoac$2u101$2@dont-email.me> <ueinr4$3op2f$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 12:20:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="005686f4b2b8f59ee93746f24f014551";
logging-data="245987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JWAR3eIM0e0j/aJVl4AI5eCCttr+K45g="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:MEL2IlqaxhAlS/Q+Y2BTq4YnkSI=
 by: Simon Clubley - Fri, 22 Sep 2023 12:20 UTC

On 2023-09-21, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 9/20/2023 8:24 AM, Simon Clubley wrote:
>> On 2023-09-20, Dave Froble <davef@tsoft-inc.com> wrote:
>>> Is it just me, or, was my Basic example shorter and easier to read than your
>>> Cobol, Fortran, and C examples?
>>
>> Arne could always add a Macro-32 example to that list... :-)
>
> I just added Cobol, Basic and Macro-32.
>
> And note that the Macro-32 code is shorter than the C code.
>
> Macro-32 initialization of FAB and RAB blocks are much shorter/easier
> than the C same.
>

Erm, people, my suggestion of using Macro-32 for an application program
was _supposed_ to be a joke. :-)

I thought everyone here knew what I thought of _that_ idea by now... :-)

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uek19f$7dp2$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30085&group=comp.os.vms#30085

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Fri, 22 Sep 2023 08:28:32 -0400
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uek19f$7dp2$2@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me> <ueip74$3p1sm$1@dont-email.me>
<ueipls$3orlj$1@dont-email.me> <uejsht$60l2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 12:28:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3ee00c18b9b3d7ac8be29eb687c6df0b";
logging-data="243490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eymDppuWfc1FQG6JtdJI/mxOmqjCG0hw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:wnBI4LItYcJyDgjnmI4VuF0LWrI=
Content-Language: en-US
In-Reply-To: <uejsht$60l2$1@dont-email.me>
 by: Arne Vajhøj - Fri, 22 Sep 2023 12:28 UTC

On 9/22/2023 7:08 AM, Dave Froble wrote:
> On 9/21/2023 9:12 PM, Arne Vajhøj wrote:
>> BTW, my basic code has a difference from the other languages as
>> I was not able to put leading zeroes in the 4 digits line number.
>> How does one get an integer formatted to a given width with leading
>> zeros in VMS basic??
>
> First, HELP/LIBRARY=SYS$HELP:BASICHELP is your friend.
>
> Then look at "PRINT USING" for capabilities.
>
> print format$(123.45,"<0>###.##")
> 0123.45

Works great. Thanks.

Arne

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uek1bm$7dp2$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30086&group=comp.os.vms#30086

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Fri, 22 Sep 2023 08:29:43 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uek1bm$7dp2$3@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueek9a$2teef$1@dont-email.me>
<ueinnv$3op2f$4@dont-email.me> <ueip74$3p1sm$1@dont-email.me>
<ueipls$3orlj$1@dont-email.me> <uejpu7$mcc$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 12:29:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3ee00c18b9b3d7ac8be29eb687c6df0b";
logging-data="243490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hxwbwPPHcHUZla1cIuEFLzmT0+PAmQmE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OzFwYOg5dEiZD2C1OHR1WGpeEsY=
In-Reply-To: <uejpu7$mcc$1@news.misty.com>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 22 Sep 2023 12:29 UTC

On 9/22/2023 6:23 AM, Johnny Billquist wrote:
> On 2023-09-22 03:12, Arne Vajhøj wrote:
>> BTW, my basic code has a difference from the other languages as
>> I was not able to put leading zeroes in the 4 digits line number.
>> How does one get an integer formatted to a given width with leading
>> zeros in VMS basic??
>
> BASIC2
>
> print format$(1, "Line _#<0>####_!")
>
>
> Line #00001!
>
> BASIC2
>
>
> (See HELP STA PRIN USI NUM for more details, I think...)
> (And yes, I used BASIC+2 and not VMS BASIC. But as far as I can
> remember, they are the same in this, and most other things.)

Works great. Thanks.

Arne

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uek3fp$582d$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30087&group=comp.os.vms#30087

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Fri, 22 Sep 2023 14:06:00 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <uek3fp$582d$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueeoac$2u101$2@dont-email.me>
<ueinr4$3op2f$5@dont-email.me> <uek0pk$7g73$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 13:06:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ddb19feffaff499f4877cb0368634c9b";
logging-data="172109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/eMiTNCwfRLiq1ibenKz+JnQuYB6t7nM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:TcbyqrKpNdsc7gH8LfnE4Z61sqA=
Content-Language: en-GB
In-Reply-To: <uek0pk$7g73$1@dont-email.me>
 by: Chris Townley - Fri, 22 Sep 2023 13:06 UTC

On 22/09/2023 13:20, Simon Clubley wrote:
> On 2023-09-21, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 9/20/2023 8:24 AM, Simon Clubley wrote:
>>> On 2023-09-20, Dave Froble <davef@tsoft-inc.com> wrote:
>>>> Is it just me, or, was my Basic example shorter and easier to read than your
>>>> Cobol, Fortran, and C examples?
>>>
>>> Arne could always add a Macro-32 example to that list... :-)
>>
>> I just added Cobol, Basic and Macro-32.
>>
>> And note that the Macro-32 code is shorter than the C code.
>>
>> Macro-32 initialization of FAB and RAB blocks are much shorter/easier
>> than the C same.
>>
>
> Erm, people, my suggestion of using Macro-32 for an application program
> was _supposed_ to be a joke. :-)
>
> I thought everyone here knew what I thought of _that_ idea by now... :-)
>
> Simon.
>

I thought you were the joke!

--
Chris

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uek3h4$8dql$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30088&group=comp.os.vms#30088

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record
size, relative organization file?
Date: Fri, 22 Sep 2023 09:07:41 -0400
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uek3h4$8dql$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me>
<uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me>
<uedqqs$2p2ng$1@dont-email.me> <ueeoac$2u101$2@dont-email.me>
<ueinr4$3op2f$5@dont-email.me> <uek0pk$7g73$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Sep 2023 13:06:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="39be64886bb7402e5353c3c1b18296a3";
logging-data="276309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qIwlvo/tltIzm5oil/iK8z/3WfVIo980="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:1t7LoPl3cv/FMh1F9YZWTuRqLq8=
In-Reply-To: <uek0pk$7g73$1@dont-email.me>
 by: Dave Froble - Fri, 22 Sep 2023 13:07 UTC

On 9/22/2023 8:20 AM, Simon Clubley wrote:
> On 2023-09-21, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 9/20/2023 8:24 AM, Simon Clubley wrote:
>>> On 2023-09-20, Dave Froble <davef@tsoft-inc.com> wrote:
>>>> Is it just me, or, was my Basic example shorter and easier to read than your
>>>> Cobol, Fortran, and C examples?
>>>
>>> Arne could always add a Macro-32 example to that list... :-)
>>
>> I just added Cobol, Basic and Macro-32.
>>
>> And note that the Macro-32 code is shorter than the C code.
>>
>> Macro-32 initialization of FAB and RAB blocks are much shorter/easier
>> than the C same.
>>
>
> Erm, people, my suggestion of using Macro-32 for an application program
> was _supposed_ to be a joke. :-)
>
> I thought everyone here knew what I thought of _that_ idea by now... :-)
>
> Simon.
>

I don't consider the example an application. It is rather examples on how to
perform a specific task in most or all the languages available on VMS.

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Example of random access by record number on an RMS fixed record size, relative organization file?

<uekjmd$bi0r$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30091&group=comp.os.vms#30091

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Example of random access by record number on an RMS fixed record size, relative organization file?
Date: Fri, 22 Sep 2023 17:42:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uekjmd$bi0r$1@dont-email.me>
References: <m25y49uca2.fsf@gmail.com> <ue52ev$3vimm$1@dont-email.me> <uedf9t$2jhca$1@dont-email.me> <uedfkq$2jhca$4@dont-email.me> <uedqqs$2p2ng$1@dont-email.me> <ueeoac$2u101$2@dont-email.me> <ueinr4$3op2f$5@dont-email.me> <uek0pk$7g73$1@dont-email.me> <uek3fp$582d$1@dont-email.me>
Injection-Date: Fri, 22 Sep 2023 17:42:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="005686f4b2b8f59ee93746f24f014551";
logging-data="378907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199OHC7wh/dqlTk2gHpDN3knuVbv4YVio8="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:THBId2j+qnnwBvBSAH9IauPPpRE=
 by: Simon Clubley - Fri, 22 Sep 2023 17:42 UTC

On 2023-09-22, Chris Townley <news@cct-net.co.uk> wrote:
> On 22/09/2023 13:20, Simon Clubley wrote:
>>
>> Erm, people, my suggestion of using Macro-32 for an application program
>> was _supposed_ to be a joke. :-)
>>
>> I thought everyone here knew what I thought of _that_ idea by now... :-)
>>
>> Simon.
>>
>
> I thought you were the joke!
>

Hey!!! :-)

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor