Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

In 1869 the waffle iron was invented for people who had wrinkled waffles.


computers / comp.os.vms / Re: COBOL, <gack!> again! Return status.

SubjectAuthor
* COBOL, <gack!> again! Return status.Brian Schenkenberger
+* Re: COBOL, <gack!> again! Return status.bill
|+* Re: COBOL, <gack!> again! Return status.gah4
||`* Re: COBOL, <gack!> again! Return status.Robert A. Brooks
|| `- Re: COBOL, <gack!> again! Return status.gah4
|+- Re: COBOL, <gack!> again! Return status.gah4
|+* Re: COBOL, <gack!> again! Return status.Brian Schenkenberger
||+- Re: COBOL, <gack!> again! Return status.Arne Vajhøj
||`- Re: COBOL, <gack!> again! Return status.bill
|`* Re: COBOL, <gack!> again! Return status.bill
| `* Re: COBOL, <gack!> again! Return status.Chris Townley
|  `* Re: COBOL, <gack!> again! Return status.bill
|   +- Re: COBOL, <gack!> again! Return status.Arne Vajhøj
|   `* Re: COBOL, <gack!> again! Return status.Phil Howell
|    `* Re: COBOL, <gack!> again! Return status.bill
|     `* Re: COBOL, <gack!> again! Return status.Johnny Billquist
|      +- Re: COBOL, <gack!> again! Return status.bill
|      `* Re: COBOL, <gack!> again! Return status.Scott Dorsey
|       `* Re: COBOL, <gack!> again! Return status.Jake Hamby (Solid State Jake)
|        `- Re: COBOL, <gack!> again! Return status.Phil Howell
+* Re: COBOL, <gack!> again! Return status.Arne Vajhøj
|+* Re: COBOL, <gack!> again! Return status.Brian Schenkenberger
||+* Re: COBOL, <gack!> again! Return status.Arne Vajhøj
|||`- Re: COBOL, <gack!> again! Return status.Arne Vajhøj
||`- Re: COBOL, <gack!> again! Return status.bill
|`* Re: COBOL, <gack!> again! Return status.bill
| `- Re: COBOL, <gack!> again! Return status.Brian Schenkenberger
+* Re: COBOL, <gack!> again! Return status.Hein RMS van den Heuvel
|`* Re: COBOL, <gack!> again! Return status.bill
| `* Re: COBOL, <gack!> again! Return status.bill
|  `* Re: COBOL, <gack!> again! Return status.Jan-Erik Söderholm
|   `* Re: COBOL, <gack!> again! Return status.bill
|    +- Re: COBOL, <gack!> again! Return status.abrsvc
|    `- Re: COBOL, <gack!> again! Return status.bill
`* Re: COBOL, <gack!> again! Return status.Stephen Hoffman
 `- Re: COBOL, <gack!> again! Return status.Brian Schenkenberger

Pages:12
Re: COBOL, <gack!> again! Return status.

<kmhlp6Fcg04U3@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: Thu, 14 Sep 2023 20:11:18 -0400
Lines: 48
Message-ID: <kmhlp6Fcg04U3@mid.individual.net>
References: <udno66$15p49$1@dont-email.me> <km993mF8emlU21@mid.individual.net>
<kmhg06Fcg06U1@mid.individual.net> <ue0418$2ss52$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net MmEP9YwEKmA0e9wTzysUiQOnP34cY3+G+u8+1nUIH/+z+ltB5o
Cancel-Lock: sha1:6MxV3lKwMo6rLcwU2AGQRPnDOLY= sha256:S7KmDqzHngHOZ5oyNd/X+Jpc13jsF7m1u3KsZbERvi0=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <ue0418$2ss52$1@dont-email.me>
 by: bill - Fri, 15 Sep 2023 00:11 UTC

On 9/14/2023 7:12 PM, Chris Townley wrote:
> On 14/09/2023 23:32, bill wrote:
>> On 9/11/2023 3:45 PM, bill wrote:
>>> On 9/11/2023 3:01 PM, Brian Schenkenberger wrote:
>>>> How does a COBOL program return a status (ie. R0) to a calling
>>>> program? I found a reference to RETURN-CODE but compiler balks at that.
>>>>
>>>
>>> In Unix ending the program with:
>>>
>>>      STOP RUN RETURNING {literal-1}
>>>                         {identifier-1}
>>>
>>>
>>> will make a return code available to the shell.
>>>
>>> If you want a status returned to DCL I expect that would do it.
>>>
>>> bill
>>>
>>> {I really need to get a VMS system running here again.}
>>>
>>
>> OK, in case anyone is still interested in any of this.
>>
>> OpenVMS COBOL does not support the RETURNING clause on a STOP RUN.
>>
>> If you wish to pass a STATUS back to DCL you have to put the
>> desired value in the predefined variable RETURN-CODE before
>> using STOP RUN.
>>
>> I tried it and it works fine.
>>
>> I really miss doing COBOL.  Kinda miss Fortran, too, but not
>> as much.  And then there was Pascal.  A shame we lost all the
>> good languages.
>>
>> bill
>>
>
> Pascal IS available for x86
>

I have Pascal on pretty much every system I still run here at home.
What I lack is Pascal Programs to work on. :-)

bill

Re: COBOL, <gack!> again! Return status.

<ue08ku$2thu4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: Thu, 14 Sep 2023 20:31:26 -0400
Organization: HoffmanLabs LLC
Lines: 15
Message-ID: <ue08ku$2thu4$1@dont-email.me>
References: <udno66$15p49$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="90e82cba5b03138f6f0de4665d3acc06";
logging-data="3065796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/rxL/U3359q53ygufRI7BB0tF+X1Nrc0="
User-Agent: Unison/2.2
Cancel-Lock: sha1:+4niHHuM3i7rwHOq14iOIWopo9s=
 by: Stephen Hoffman - Fri, 15 Sep 2023 00:31 UTC

On 2023-09-11 19:01:26 +0000, Brian Schenkenberger said:

> How does a COBOL program return a status (ie. R0) to a calling program?
> I found a reference to RETURN-CODE but compiler balks at that.

If it doesn't need to be portable COBOL, which seems likely given SYS$MGBLSC...

CALL "SYS$EXIT" USING BY VALUE RETURN-STATUS
And for errors...

CALL "LIB$SIGNAL" USING BY VALUE ERROR-STATUS

--
Pure Personal Opinion | HoffmanLabs LLC

Re: COBOL, <gack!> again! Return status.

<ue09s6$2tjrj$1@dont-email.me>

  copy mid

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

  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: COBOL, <gack!> again! Return status.
Date: Thu, 14 Sep 2023 20:52:22 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ue09s6$2tjrj$1@dont-email.me>
References: <udno66$15p49$1@dont-email.me> <km993mF8emlU21@mid.individual.net>
<kmhg06Fcg06U1@mid.individual.net> <ue0418$2ss52$1@dont-email.me>
<kmhlp6Fcg04U3@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Sep 2023 00:52:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="397fa998cb57c1f8840f0ff815896edf";
logging-data="3067763"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193Ia5dw0n6KrycJELdcsACqMYShYSrNx0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:knZVk4L2IO5Y/Bgi6q7HSHFVNU4=
In-Reply-To: <kmhlp6Fcg04U3@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 15 Sep 2023 00:52 UTC

On 9/14/2023 8:11 PM, bill wrote:
> On 9/14/2023 7:12 PM, Chris Townley wrote:
>> On 14/09/2023 23:32, bill wrote:
>>> I really miss doing COBOL.  Kinda miss Fortran, too, but not
>>> as much.  And then there was Pascal.  A shame we lost all the
>>> good languages.
>>
>> Pascal IS available for x86
>
> I have Pascal on pretty much every system I still run here at home.
> What I lack is Pascal Programs to work on.  :-)

There are still some custom Pascal application running on VMS.

But Pascal is pretty rare in the open source world.

Anyway a quick google gave one good candidate:

https://github.com/HeidiSQL/HeidiSQL

Easy task : port to Lazarus.

Difficult task : port to VMS Pascal using X for GUI.

Arne

Re: COBOL, <gack!> again! Return status.

<9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:9b4:b0:656:28ed:c502 with SMTP id du20-20020a05621409b400b0065628edc502mr28982qvb.4.1694774763864;
Fri, 15 Sep 2023 03:46:03 -0700 (PDT)
X-Received: by 2002:a05:6870:93d5:b0:1cc:6816:bd85 with SMTP id
c21-20020a05687093d500b001cc6816bd85mr456618oal.2.1694774763522; Fri, 15 Sep
2023 03:46:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 15 Sep 2023 03:46:03 -0700 (PDT)
In-Reply-To: <kmhlp6Fcg04U3@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=159.196.170.190; posting-account=ljjXiAgAAAA3eWtNZYnEiwKxkHjOOX9r
NNTP-Posting-Host: 159.196.170.190
References: <udno66$15p49$1@dont-email.me> <km993mF8emlU21@mid.individual.net>
<kmhg06Fcg06U1@mid.individual.net> <ue0418$2ss52$1@dont-email.me> <kmhlp6Fcg04U3@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
Subject: Re: COBOL, <gack!> again! Return status.
From: phow9...@gmail.com (Phil Howell)
Injection-Date: Fri, 15 Sep 2023 10:46:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Phil Howell - Fri, 15 Sep 2023 10:46 UTC

On Friday, 15 September 2023 at 10:11:23 am UTC+10, bill wrote:
> I have Pascal on pretty much every system I still run here at home.
> What I lack is Pascal Programs to work on. :-)
>
> bill
Well someone needs to port QIX.PAS (and associated support files) to x86 vms
The (vms) world is waiting...
Phil

Re: COBOL, <gack!> again! Return status.

<kmj27cFcg06U2@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: Fri, 15 Sep 2023 08:49:47 -0400
Lines: 17
Message-ID: <kmj27cFcg06U2@mid.individual.net>
References: <udno66$15p49$1@dont-email.me> <km993mF8emlU21@mid.individual.net>
<kmhg06Fcg06U1@mid.individual.net> <ue0418$2ss52$1@dont-email.me>
<kmhlp6Fcg04U3@mid.individual.net>
<9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net TN4BGHqxWgN1N0oCNa19BAVT0qPt5VmyG4tW6MR+Ik64bui8E/
Cancel-Lock: sha1:Ijf4vi0/zFMS10t+Z/wHlL2F2sY= sha256:6iidCKz03SXWCw+2YbCO0ee1tsuNxHFrdeGUgFGj7qY=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
 by: bill - Fri, 15 Sep 2023 12:49 UTC

On 9/15/2023 6:46 AM, Phil Howell wrote:
> On Friday, 15 September 2023 at 10:11:23 am UTC+10, bill wrote:
>> I have Pascal on pretty much every system I still run here at home.
>> What I lack is Pascal Programs to work on. :-)
>>
>> bill
> Well someone needs to port QIX.PAS (and associated support files) to x86 vms
> The (vms) world is waiting...
> Phil

I do not have x86 VMS and don't anticipate having it any time
soon, if ever. Is it not running on Alpha VMS? If it is won't
it take nothing more than a recompile?

bill
[ As a side note, I have no idea what QIX is or means.]

Re: COBOL, <gack!> again! Return status.

<ue1um5$ub2$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.213.180.184.10!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: Fri, 15 Sep 2023 17:53:41 +0200
Organization: MGT Consulting
Message-ID: <ue1um5$ub2$1@news.misty.com>
References: <udno66$15p49$1@dont-email.me> <km993mF8emlU21@mid.individual.net>
<kmhg06Fcg06U1@mid.individual.net> <ue0418$2ss52$1@dont-email.me>
<kmhlp6Fcg04U3@mid.individual.net>
<9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
<kmj27cFcg06U2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Sep 2023 15:53:41 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="213.180.184.10";
logging-data="31074"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.15.1
In-Reply-To: <kmj27cFcg06U2@mid.individual.net>
 by: Johnny Billquist - Fri, 15 Sep 2023 15:53 UTC

On 2023-09-15 14:49, bill wrote:
> On 9/15/2023 6:46 AM, Phil Howell wrote:
>> On Friday, 15 September 2023 at 10:11:23 am UTC+10, bill wrote:
>>> I have Pascal on pretty much every system I still run here at home.
>>> What I lack is Pascal Programs to work on. :-)
>>>
>>> bill
>> Well someone needs to port QIX.PAS (and associated support files) to
>> x86 vms
>> The (vms) world is waiting...
>> Phil
>
> I do not have x86 VMS and don't anticipate having it any time
> soon, if ever.  Is it not running on Alpha VMS?  If it is won't
> it take nothing more than a recompile?
>
> bill
> [ As a side note, I have no idea what QIX is or means.]

Probably https://en.wikipedia.org/wiki/Qix. I have some vague
recollection of seeing an implementation running on a VT100.

Johnny

Re: COBOL, <gack!> again! Return status.

<kmjfcdFcg04U4@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: Fri, 15 Sep 2023 12:34:20 -0400
Lines: 29
Message-ID: <kmjfcdFcg04U4@mid.individual.net>
References: <udno66$15p49$1@dont-email.me> <km993mF8emlU21@mid.individual.net>
<kmhg06Fcg06U1@mid.individual.net> <ue0418$2ss52$1@dont-email.me>
<kmhlp6Fcg04U3@mid.individual.net>
<9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
<kmj27cFcg06U2@mid.individual.net> <ue1um5$ub2$1@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net k5RFVP7Lsjme99Es1J6NoAgL69BHzOxEoMDJ01dK5kK7j5q+mI
Cancel-Lock: sha1:Rf5w7vPyhkJiWr6E23fzN9bOIdQ= sha256:PbvvghSdTKc47NDgnUJlUhSfwesHrb9nfPMcytw/sF8=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <ue1um5$ub2$1@news.misty.com>
 by: bill - Fri, 15 Sep 2023 16:34 UTC

On 9/15/2023 11:53 AM, Johnny Billquist wrote:
> On 2023-09-15 14:49, bill wrote:
>> On 9/15/2023 6:46 AM, Phil Howell wrote:
>>> On Friday, 15 September 2023 at 10:11:23 am UTC+10, bill wrote:
>>>> I have Pascal on pretty much every system I still run here at home.
>>>> What I lack is Pascal Programs to work on. :-)
>>>>
>>>> bill
>>> Well someone needs to port QIX.PAS (and associated support files) to
>>> x86 vms
>>> The (vms) world is waiting...
>>> Phil
>>
>> I do not have x86 VMS and don't anticipate having it any time
>> soon, if ever.  Is it not running on Alpha VMS?  If it is won't
>> it take nothing more than a recompile?
>>
>> bill
>> [ As a side note, I have no idea what QIX is or means.]
>
> Probably https://en.wikipedia.org/wiki/Qix. I have some vague
> recollection of seeing an implementation running on a VT100.
>

I see. I don;t waste my time on games.

bill

Re: COBOL, <gack!> again! Return status.

<ue7a2k$nt8$1@panix2.panix.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix2.panix.com!panix2.panix.com!not-for-mail
From: klu...@panix.com (Scott Dorsey)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: 17 Sep 2023 16:38:44 -0000
Organization: Former users of Netcom shell (1989-2000)
Lines: 13
Message-ID: <ue7a2k$nt8$1@panix2.panix.com>
References: <udno66$15p49$1@dont-email.me> <9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com> <kmj27cFcg06U2@mid.individual.net> <ue1um5$ub2$1@news.misty.com>
Injection-Info: reader2.panix.com; posting-host="panix2.panix.com:166.84.1.2";
logging-data="18737"; mail-complaints-to="abuse@panix.com"
 by: Scott Dorsey - Sun, 17 Sep 2023 16:38 UTC

Johnny Billquist <bqt@softjar.se> wrote:
>Probably https://en.wikipedia.org/wiki/Qix. I have some vague
>recollection of seeing an implementation running on a VT100.

I wrote an implementation that ran under VWS on VMS 5.4 or so, I think. And
it was called qix.pas. If anyone is still running VWS today, I might have a
tape somewhere. It wasn't actually very good, but it got passed around on
net.sources I think.
--scott

--
"C'est un Nagra. C'est suisse, et tres, tres precis."

Re: COBOL, <gack!> again! Return status.

<uec7ft$2c477$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mai...@SendSpamHere.ORG (Brian Schenkenberger)
Newsgroups: comp.os.vms
Subject: Re: COBOL, <gack!> again! Return status.
Date: Tue, 19 Sep 2023 09:25:17 -0400
Organization: Tmesis Software
Lines: 22
Message-ID: <uec7ft$2c477$1@dont-email.me>
References: <udno66$15p49$1@dont-email.me> <ue08ku$2thu4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="384a310b8e591af6a9a56202b03ad0ac";
logging-data="2494695"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18r3zYwDeB7A1j6HqtzjXZW"
User-Agent: Unison/2.2
Cancel-Lock: sha1:AzapCS+PMANbua9XT5ZSoJ9xnCQ=
 by: Brian Schenkenberger - Tue, 19 Sep 2023 13:25 UTC

On 2023-09-15 00:31:26 +0000, Stephen Hoffman said:

> On 2023-09-11 19:01:26 +0000, Brian Schenkenberger said:
>
>> How does a COBOL program return a status (ie. R0) to a calling program?
>> I found a reference to RETURN-CODE but compiler balks at that.
>
> If it doesn't need to be portable COBOL, which seems likely given SYS$MGBLSC...
>
> CALL "SYS$EXIT" USING BY VALUE RETURN-STATUS
> And for errors...
>
> CALL "LIB$SIGNAL" USING BY VALUE ERROR-STATUS

Those would have stopped everything. I was writing a program in COBOL
for a customer which they could call to access data in a global
section. Sure, I could have witten it in a real language but I thought
I'd give them some "food for thought" and show them how to call VMS
system services and RTLs.

This exercise was something I hope I don't have to repeat. ;)

Re: COBOL, <gack!> again! Return status.

<191dc5a3-db3f-4d58-95aa-8040a0e01fbbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:4ba5:0:b0:66c:f356:898 with SMTP id i5-20020ad44ba5000000b0066cf3560898mr45382qvw.1.1696972993135;
Tue, 10 Oct 2023 14:23:13 -0700 (PDT)
X-Received: by 2002:a05:6808:208a:b0:3ae:11ee:b66f with SMTP id
s10-20020a056808208a00b003ae11eeb66fmr10571003oiw.3.1696972992934; Tue, 10
Oct 2023 14:23:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 10 Oct 2023 14:23:12 -0700 (PDT)
In-Reply-To: <ue7a2k$nt8$1@panix2.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:46b0:abc0:31aa:2f79:3e99:1405;
posting-account=OGFVHQoAAAASiNAamRQec8BtkuXxYFnQ
NNTP-Posting-Host: 2600:1700:46b0:abc0:31aa:2f79:3e99:1405
References: <udno66$15p49$1@dont-email.me> <9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
<kmj27cFcg06U2@mid.individual.net> <ue1um5$ub2$1@news.misty.com> <ue7a2k$nt8$1@panix2.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <191dc5a3-db3f-4d58-95aa-8040a0e01fbbn@googlegroups.com>
Subject: Re: COBOL, <gack!> again! Return status.
From: jake.ha...@gmail.com (Jake Hamby (Solid State Jake))
Injection-Date: Tue, 10 Oct 2023 21:23:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2721
 by: Jake Hamby (Solid St - Tue, 10 Oct 2023 21:23 UTC

On Sunday, September 17, 2023 at 9:38:48 AM UTC-7, Scott Dorsey wrote:
> Johnny Billquist <b...@softjar.se> wrote:
> >Probably https://en.wikipedia.org/wiki/Qix. I have some vague
> >recollection of seeing an implementation running on a VT100.
> I wrote an implementation that ran under VWS on VMS 5.4 or so, I think. And
> it was called qix.pas. If anyone is still running VWS today, I might have a
> tape somewhere. It wasn't actually very good, but it got passed around on
> net.sources I think.
> --scott

Speaking of COBOL, VMS, and games, I found a Tetris clone written in COBOL for VMS (using SMG$ calls) on GitHub!

https://github.com/pikapokec/OpenVMSCobolTetris

One of my classmates at Cal Poly Pomona had written a PacMan clone in DEC Ada called AdaMan (naturally). I think he also used SMG$ calls because I remember being a little surprised he had docs for the VMS APIs.

This was in the late 1990s, so we couldn't download PDFs of the docs, but there were bound copies of all the OpenVMS manuals in the computer lab, so in retrospect, I think he must've found "RTL Screen Management (SMG$) Manual" and used that with the Ada bindings, much like the author of the Tetris game used them with COBOL. Hooray for cross-language calling standard compatibility!

Regards,
Jake Hamby

Re: COBOL, <gack!> again! Return status.

<ec49467b-0000-46c1-a4a9-4348781a4d9dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:8e4:b0:66c:ffe5:1984 with SMTP id dr4-20020a05621408e400b0066cffe51984mr78331qvb.6.1697023268929;
Wed, 11 Oct 2023 04:21:08 -0700 (PDT)
X-Received: by 2002:a05:622a:2d6:b0:40d:4c6:bce6 with SMTP id
a22-20020a05622a02d600b0040d04c6bce6mr325571qtx.7.1697023268615; Wed, 11 Oct
2023 04:21:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 11 Oct 2023 04:21:08 -0700 (PDT)
In-Reply-To: <191dc5a3-db3f-4d58-95aa-8040a0e01fbbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=159.196.169.92; posting-account=ljjXiAgAAAA3eWtNZYnEiwKxkHjOOX9r
NNTP-Posting-Host: 159.196.169.92
References: <udno66$15p49$1@dont-email.me> <9201367e-9fc3-40df-bb54-420e0436ef45n@googlegroups.com>
<kmj27cFcg06U2@mid.individual.net> <ue1um5$ub2$1@news.misty.com>
<ue7a2k$nt8$1@panix2.panix.com> <191dc5a3-db3f-4d58-95aa-8040a0e01fbbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ec49467b-0000-46c1-a4a9-4348781a4d9dn@googlegroups.com>
Subject: Re: COBOL, <gack!> again! Return status.
From: phow9...@gmail.com (Phil Howell)
Injection-Date: Wed, 11 Oct 2023 11:21:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Phil Howell - Wed, 11 Oct 2023 11:21 UTC

On Wednesday, 11 October 2023 at 8:23:14 am UTC+11, Jake Hamby (Solid State Jake) wrote:
> On Sunday, September 17, 2023 at 9:38:48 AM UTC-7, Scott Dorsey wrote:
> > Johnny Billquist <b...@softjar.se> wrote:
> > >Probably https://en.wikipedia.org/wiki/Qix. I have some vague
> > >recollection of seeing an implementation running on a VT100.
> > I wrote an implementation that ran under VWS on VMS 5.4 or so, I think. And
> > it was called qix.pas. If anyone is still running VWS today, I might have a
> > tape somewhere. It wasn't actually very good, but it got passed around on
> > net.sources I think.
> > --scott
> Speaking of COBOL, VMS, and games, I found a Tetris clone written in COBOL for VMS (using SMG$ calls) on GitHub!
>
> https://github.com/pikapokec/OpenVMSCobolTetris
>
A local user on the ACMS Retro Computer group (Facebook) has just posted screen shots of Tetris running
in a CDE session on an alpha running vms 7.3
There are instructions around about how to get Tetris from digiater.nl

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor