Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If you think the system is working, ask someone who's waiting for a prompt.


computers / comp.os.vms / Re: Calling $CREPRC in COBOL

SubjectAuthor
* Calling $CREPRC in COBOLVAXman-
+* Re: Calling $CREPRC in COBOLCraig A. Berry
|+- Re: Calling $CREPRC in COBOLCraig A. Berry
|`* Re: Calling $CREPRC in COBOLBill Gunshannon
| `* Re: Calling $CREPRC in COBOLCraig A. Berry
|  +* Re: Calling $CREPRC in COBOLVAXman-
|  |+* Re: Calling $CREPRC in COBOLBill Gunshannon
|  ||`* Re: Calling $CREPRC in COBOLabrsvc
|  || `- Re: Calling $CREPRC in COBOLCraig A. Berry
|  |`- Re: Calling $CREPRC in COBOLRich Alderson
|  `* Re: Calling $CREPRC in COBOLBill Gunshannon
|   +* Re: Calling $CREPRC in COBOLCraig A. Berry
|   |+- Re: Calling $CREPRC in COBOLBill Gunshannon
|   |`* Re: Calling $CREPRC in COBOLDave Froble
|   | +* Re: Calling $CREPRC in COBOLRichard Maher
|   | |`- Re: Calling $CREPRC in COBOLRichard Maher
|   | `* Re: Calling $CREPRC in COBOLVAXman-
|   |  `* Re: Calling $CREPRC in COBOLDave Froble
|   |   `* Re: Calling $CREPRC in COBOLRichard Maher
|   |    `* Re: Calling $CREPRC in COBOLDave Froble
|   |     +* Re: Calling $CREPRC in COBOLRichard Maher
|   |     |`* Re: Calling $CREPRC in COBOLDave Froble
|   |     | +* Re: Calling $CREPRC in COBOLStephen Hoffman
|   |     | |+* Re: Calling $CREPRC in COBOLRichard Maher
|   |     | ||`- Re: Calling $CREPRC in COBOLSimon Clubley
|   |     | |`* Re: Calling $CREPRC in COBOLDavid Jones
|   |     | | `* Re: Calling $CREPRC in COBOLStephen Hoffman
|   |     | |  `* Re: Calling $CREPRC in COBOLSimon Clubley
|   |     | |   +* Re: Calling $CREPRC in COBOLDave Froble
|   |     | |   |+* Re: Calling $CREPRC in COBOLSimon Clubley
|   |     | |   ||`- Re: Calling $CREPRC in COBOLDave Froble
|   |     | |   |`* Re: Calling $CREPRC in COBOLStephen Hoffman
|   |     | |   | `* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     | |   |  `* Re: Calling $CREPRC in COBOLCraig A. Berry
|   |     | |   |   `* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     | |   |    `* Re: Calling $CREPRC in COBOLseasoned_geek
|   |     | |   |     +* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     | |   |     |`* Re: Calling $CREPRC in COBOLseasoned_geek
|   |     | |   |     | `* Re: Calling $CREPRC in COBOLDave Froble
|   |     | |   |     |  +- Re: Calling $CREPRC in COBOLBill Gunshannon
|   |     | |   |     |  `- Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     | |   |     +- Re: Calling $CREPRC in COBOLStephen Hoffman
|   |     | |   |     `- Re: Calling $CREPRC in COBOLVAXman-
|   |     | |   +- Re: Calling $CREPRC in COBOLSingle Stage to Orbit
|   |     | |   +- Re: Calling $CREPRC in COBOLStephen Hoffman
|   |     | |   `- Re: Calling $CREPRC in COBOLDennis Boone
|   |     | `* Re: Calling $CREPRC in COBOLRichard Maher
|   |     |  `* Re: Calling $CREPRC in COBOLDave Froble
|   |     |   `- Re: Calling $CREPRC in COBOLRichard Maher
|   |     +* Re: Calling $CREPRC in COBOLDavid Jones
|   |     |+* Re: Calling $CREPRC in COBOLDave Froble
|   |     ||`- Re: Calling $CREPRC in COBOLseasoned_geek
|   |     |`* Re: Calling $CREPRC in COBOLseasoned_geek
|   |     | +- Re: Calling $CREPRC in COBOLDavid Jones
|   |     | `* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |  `* Re: Calling $CREPRC in COBOLseasoned_geek
|   |     |   +- Re: Calling $CREPRC in COBOLDave Froble
|   |     |   `* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |    +* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |    |+* Re: Calling $CREPRC in COBOLRichard Maher
|   |     |    ||`- Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |    |`* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |    | `* Re: Calling $CREPRC in COBOLDave Froble
|   |     |    |  `- Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |    `* Re: Calling $CREPRC in COBOLVAXman-
|   |     |     `* Re: Calling $CREPRC in COBOLRichard Maher
|   |     |      `* Re: Calling $CREPRC in COBOLArne Vajhøj
|   |     |       `- Re: Calling $CREPRC in COBOLRichard Maher
|   |     `- Re: Calling $CREPRC in COBOLseasoned_geek
|   `- Re: Calling $CREPRC in COBOLArne Vajhøj
+- Re: Calling $CREPRC in COBOLArne Vajhøj
`* Re: Calling $CREPRC in COBOLRichard Maher
 +* Re: Calling $CREPRC in COBOLabrsvc
 |`- Re: Calling $CREPRC in COBOLRichard Maher
 +* Re: Calling $CREPRC in COBOLRichard Maher
 |`* Re: Calling $CREPRC in COBOLPhil Howell
 | `- Re: Calling $CREPRC in COBOLRichard Maher
 `* Re: Calling $CREPRC in COBOLVAXman-
  +- Re: Calling $CREPRC in COBOLRichard Maher
  `* Re: Calling $CREPRC in COBOLSimon Clubley
   +* Re: Calling $CREPRC in COBOLVAXman-
   |`- Re: Calling $CREPRC in COBOLSimon Clubley
   +* Re: Calling $CREPRC in COBOLDennis Boone
   |+* Re: Calling $CREPRC in COBOLSingle Stage to Orbit
   ||`- Re: Calling $CREPRC in COBOLSimon Clubley
   |`- Re: Calling $CREPRC in COBOLSimon Clubley
   `* Re: Calling $CREPRC in COBOLBill Gunshannon
    +- Re: Calling $CREPRC in COBOLArne Vajhøj
    `* Re: Calling $CREPRC in COBOLseasoned_geek
     `* Re: Calling $CREPRC in COBOLVAXman-
      `- Re: Calling $CREPRC in COBOLJohnny Billquist

Pages:1234
Calling $CREPRC in COBOL

<00B76057.ECCFCF4E@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 17:39:08 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B76057.ECCFCF4E@SendSpamHere.ORG>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="30542"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Fri, 10 Jun 2022 17:39 UTC

10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
...............^
%COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
data-item

How do you put PQL$ items in to a COBOL "byte"?

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.

Re: Calling $CREPRC in COBOL

<t801pc$gd7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 13:16:12 -0500
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <t801pc$gd7$1@dont-email.me>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 10 Jun 2022 18:16:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e8e4ea25c7b060917d104516ccad77e7";
logging-data="16807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LpQp/uDJBbP74u5rmtzGj7+AmdqCYkTM="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:elZWUaISEQ7UPLO6gcti4pVprpw=
In-Reply-To: <00B76057.ECCFCF4E@SendSpamHere.ORG>
Content-Language: en-US
 by: Craig A. Berry - Fri, 10 Jun 2022 18:16 UTC

On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
> ..............^
> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
> data-item
>
> How do you put PQL$ items in to a COBOL "byte"?

I never knew much COBOL and haven't looked at any in decades, but I
would think for a one-byte integer it would be "PIC 9(1)" rather than
"PIC X(1)".

Re: Calling $CREPRC in COBOL

<t80264$mr1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 13:23:00 -0500
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <t80264$mr1$1@dont-email.me>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 10 Jun 2022 18:23:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e8e4ea25c7b060917d104516ccad77e7";
logging-data="23393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sBPG2gUOkGhoEGfWcuW/gyt1VBIl6rBM="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:z/I2YrdxvOoEOcDl2+BFpr5sU6U=
In-Reply-To: <t801pc$gd7$1@dont-email.me>
Content-Language: en-US
 by: Craig A. Berry - Fri, 10 Jun 2022 18:23 UTC

On 6/10/22 1:16 PM, Craig A. Berry wrote:
> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>> ..............^
>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>> data-item
>>
>> How do you put PQL$ items in to a COBOL "byte"?
>
> I never knew much COBOL and haven't looked at any in decades, but I
> would think for a one-byte integer it would be "PIC 9(1)" rather than
> "PIC X(1)".

And based on an error message telling you to use COMP, perhaps follow
its advice? Something like this:

ENQ-TYPE PIC 9(1) USAGE IS COMP VALUE EXTERNAL PQL$_ENQLM.

just a guess from a non-COBOL person.

Re: Calling $CREPRC in COBOL

<jghgpaF5vgoU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 14:27:54 -0400
Lines: 20
Message-ID: <jghgpaF5vgoU1@mid.individual.net>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$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 hmCDmx7JzBSeRMNdi18qRQtH0RUIDLnQJbwwLpxQU6zlg7S7Jp
Cancel-Lock: sha1:thv5WdQltsnLfrTz/oXsV91d0FE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <t801pc$gd7$1@dont-email.me>
 by: Bill Gunshannon - Fri, 10 Jun 2022 18:27 UTC

On 6/10/22 14:16, Craig A. Berry wrote:
> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>> ..............^
>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>> data-item
>>
>> How do you put PQL$ items in to a COBOL "byte"?
>
> I never knew much COBOL and haven't looked at any in decades, but I
> would think for a one-byte integer it would be "PIC 9(1)" rather than
> "PIC X(1)".

PIC X(1) would be more likely to be a byte than PIC 9(1) as
PIC 9(1) is one decimal digit and PIC X(1) is one character.

But neither is correct.

bill

Re: Calling $CREPRC in COBOL

<t804ht$a69$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 14:03:23 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <t804ht$a69$1@dont-email.me>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 10 Jun 2022 19:03:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e8e4ea25c7b060917d104516ccad77e7";
logging-data="10441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Cdu6v5nLz4+ZfnU1SMXEwbOGUVBBLPcg="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:zWO/qHJKp54daUnw5Ma0gt3Em5A=
In-Reply-To: <jghgpaF5vgoU1@mid.individual.net>
Content-Language: en-US
 by: Craig A. Berry - Fri, 10 Jun 2022 19:03 UTC

On 6/10/22 1:27 PM, Bill Gunshannon wrote:
> On 6/10/22 14:16, Craig A. Berry wrote:
>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>> ..............^
>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>> data-item
>>>
>>> How do you put PQL$ items in to a COBOL "byte"?
>>
>> I never knew much COBOL and haven't looked at any in decades, but I
>> would think for a one-byte integer it would be "PIC 9(1)" rather than
>> "PIC X(1)".
>
> PIC X(1) would be more likely to be a byte than PIC 9(1) as
> PIC 9(1) is one decimal digit and PIC X(1) is one character.
>
> But neither is correct.

So, since you frequently brag about your COBOL prowess here, why not
give the correct answer?

I did forget that "size" doesn't actually mean size but rather display
digits or something. "PIC 9(9) COMP" is a 4-byte integer, "PIC 9(4)
COMP" is a 2-byte integer. By extension, "PIC 9(3) COMP" *might* be a
1-byte integer, but I couldn't quickly find any documentation on it.

Re: Calling $CREPRC in COBOL

<00B76066.60EA3E42@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 19:22:36 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B76066.60EA3E42@SendSpamHere.ORG>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me> <jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="48983"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Fri, 10 Jun 2022 19:22 UTC

In article <t804ht$a69$1@dont-email.me>, "Craig A. Berry" <craigberry@nospam.mac.com> writes:
>
>On 6/10/22 1:27 PM, Bill Gunshannon wrote:
>> On 6/10/22 14:16, Craig A. Berry wrote:
>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>> ..............^
>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>>> data-item
>>>>
>>>> How do you put PQL$ items in to a COBOL "byte"?
>>>
>>> I never knew much COBOL and haven't looked at any in decades, but I
>>> would think for a one-byte integer it would be "PIC 9(1)" rather than
>>> "PIC X(1)".
>>
>> PIC X(1) would be more likely to be a byte than PIC 9(1) as
>> PIC 9(1) is one decimal digit and PIC X(1) is one character.
>>
>> But neither is correct.
>
>So, since you frequently brag about your COBOL prowess here, why not
>give the correct answer?
>
>I did forget that "size" doesn't actually mean size but rather display
>digits or something. "PIC 9(9) COMP" is a 4-byte integer, "PIC 9(4)
>COMP" is a 2-byte integer. By extension, "PIC 9(3) COMP" *might* be a
>1-byte integer, but I couldn't quickly find any documentation on it.

You and Bill know more than I about COBOL. It doesnt even look like code to
me.

The customer said that they got this code many years ago. The problem is that
without defining those quotas, a process can not run a new piece of code. They
don't understand it and call it "SPAWNing" which is how they do most of their
COBOL (COBOL writes .COM, LIB$SPAWN runs it). Fugly.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.

Re: Calling $CREPRC in COBOL

<jghm0uF6rbqU1@mid.individual.net>

  copy mid

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

  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 Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 15:57:17 -0400
Lines: 42
Message-ID: <jghm0uF6rbqU1@mid.individual.net>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$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 iEVnwWGOxniMmevW7jk7UAFJydcBmwvgMezsm6RqBsDwS5TC6B
Cancel-Lock: sha1:XwePBbmH+OMUEfDloLN8EE5LQBQ=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <t804ht$a69$1@dont-email.me>
 by: Bill Gunshannon - Fri, 10 Jun 2022 19:57 UTC

On 6/10/22 15:03, Craig A. Berry wrote:
>
> On 6/10/22 1:27 PM, Bill Gunshannon wrote:
>> On 6/10/22 14:16, Craig A. Berry wrote:
>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>> ..............^
>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>>> data-item
>>>>
>>>> How do you put PQL$ items in to a COBOL "byte"?
>>>
>>> I never knew much COBOL and haven't looked at any in decades, but I
>>> would think for a one-byte integer it would be "PIC 9(1)" rather than
>>> "PIC X(1)".
>>
>> PIC X(1) would be more likely to be a byte than PIC 9(1) as
>> PIC 9(1) is one decimal digit and PIC X(1) is one character.
>>
>> But neither is correct.
>
> So, since you frequently brag about your COBOL prowess here, why not
> give the correct answer?

I haven't touched VMS COBOL in 2 decades since they threw both COBOL
and VMS out the door at the University of Scranton. But, in any event
I have no idea what POL$_ENOLM means or what he is trying to do with it.
A rough guess would be rather than declaring it external he needs to
use some VMS Specific function to grab the value and load it into
ENO-TYPE.

>
> I did forget that "size" doesn't actually mean size but rather display
> digits or something.  "PIC 9(9) COMP" is a 4-byte integer, "PIC 9(4)
> COMP" is a 2-byte integer.  By extension, "PIC 9(3) COMP" *might* be a
> 1-byte integer, but I couldn't quickly find any documentation on it.

Possible. I no longer have my Grey Wall or I wold look it up. :-)

bill

Re: Calling $CREPRC in COBOL

<jghm68F6rbqU2@mid.individual.net>

  copy mid

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

  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 Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 16:00:07 -0400
Lines: 45
Message-ID: <jghm68F6rbqU2@mid.individual.net>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
<00B76066.60EA3E42@SendSpamHere.ORG>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ABXymWz4Ln00Jf1LDIb7tgr9a0DgX5gISy1s6GItmskc2cG19y
Cancel-Lock: sha1:/LC77junblpvdYPLb6bdxk5e+7g=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <00B76066.60EA3E42@SendSpamHere.ORG>
 by: Bill Gunshannon - Fri, 10 Jun 2022 20:00 UTC

On 6/10/22 15:22, VAXman-@SendSpamHere.ORG wrote:
> In article <t804ht$a69$1@dont-email.me>, "Craig A. Berry" <craigberry@nospam.mac.com> writes:
>>
>> On 6/10/22 1:27 PM, Bill Gunshannon wrote:
>>> On 6/10/22 14:16, Craig A. Berry wrote:
>>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>>> ..............^
>>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>>>> data-item
>>>>>
>>>>> How do you put PQL$ items in to a COBOL "byte"?
>>>>
>>>> I never knew much COBOL and haven't looked at any in decades, but I
>>>> would think for a one-byte integer it would be "PIC 9(1)" rather than
>>>> "PIC X(1)".
>>>
>>> PIC X(1) would be more likely to be a byte than PIC 9(1) as
>>> PIC 9(1) is one decimal digit and PIC X(1) is one character.
>>>
>>> But neither is correct.
>>
>> So, since you frequently brag about your COBOL prowess here, why not
>> give the correct answer?
>>
>> I did forget that "size" doesn't actually mean size but rather display
>> digits or something. "PIC 9(9) COMP" is a 4-byte integer, "PIC 9(4)
>> COMP" is a 2-byte integer. By extension, "PIC 9(3) COMP" *might* be a
>> 1-byte integer, but I couldn't quickly find any documentation on it.
>
> You and Bill know more than I about COBOL. It doesnt even look like code to
> me.
>
> The customer said that they got this code many years ago. The problem is that
> without defining those quotas, a process can not run a new piece of code. They
> don't understand it and call it "SPAWNing" which is how they do most of their
> COBOL (COBOL writes .COM, LIB$SPAWN runs it). Fugly.
>

To each his own. I think PHP and Python are ugly. :-)

I don't suppose the program has any documentation. :-)

bill

Re: Calling $CREPRC in COBOL

<859534de-bf27-45f6-9f21-addd44d1a30an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:2807:b0:6a6:6ef1:fb9d with SMTP id f7-20020a05620a280700b006a66ef1fb9dmr32108854qkp.146.1654891526581;
Fri, 10 Jun 2022 13:05:26 -0700 (PDT)
X-Received: by 2002:ac8:5f10:0:b0:304:feff:7e50 with SMTP id
x16-20020ac85f10000000b00304feff7e50mr15108108qta.578.1654891526443; Fri, 10
Jun 2022 13:05:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.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: Fri, 10 Jun 2022 13:05:26 -0700 (PDT)
In-Reply-To: <jghm68F6rbqU2@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=96.230.211.194; posting-account=Ysq9BAoAAACGX1EcMMPkdNg4YcTg0TxG
NNTP-Posting-Host: 96.230.211.194
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
<00B76066.60EA3E42@SendSpamHere.ORG> <jghm68F6rbqU2@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <859534de-bf27-45f6-9f21-addd44d1a30an@googlegroups.com>
Subject: Re: Calling $CREPRC in COBOL
From: dansabrs...@yahoo.com (abrsvc)
Injection-Date: Fri, 10 Jun 2022 20:05:26 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3513
 by: abrsvc - Fri, 10 Jun 2022 20:05 UTC

On Friday, June 10, 2022 at 4:00:11 PM UTC-4, Bill Gunshannon wrote:
> On 6/10/22 15:22, VAX...@SendSpamHere.ORG wrote:
> > In article <t804ht$a69$1...@dont-email.me>, "Craig A. Berry" <craig...@nospam.mac.com> writes:
> >>
> >> On 6/10/22 1:27 PM, Bill Gunshannon wrote:
> >>> On 6/10/22 14:16, Craig A. Berry wrote:
> >>>> On 6/10/22 12:39 PM, VAX...@SendSpamHere.ORG wrote:
> >>>>> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
> >>>>> ..............^
> >>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
> >>>>> data-item
> >>>>>
> >>>>> How do you put PQL$ items in to a COBOL "byte"?
> >>>>
> >>>> I never knew much COBOL and haven't looked at any in decades, but I
> >>>> would think for a one-byte integer it would be "PIC 9(1)" rather than
> >>>> "PIC X(1)".
> >>>
> >>> PIC X(1) would be more likely to be a byte than PIC 9(1) as
> >>> PIC 9(1) is one decimal digit and PIC X(1) is one character.
> >>>
> >>> But neither is correct.
> >>
> >> So, since you frequently brag about your COBOL prowess here, why not
> >> give the correct answer?
> >>
> >> I did forget that "size" doesn't actually mean size but rather display
> >> digits or something. "PIC 9(9) COMP" is a 4-byte integer, "PIC 9(4)
> >> COMP" is a 2-byte integer. By extension, "PIC 9(3) COMP" *might* be a
> >> 1-byte integer, but I couldn't quickly find any documentation on it.
> >
> > You and Bill know more than I about COBOL. It doesnt even look like code to
> > me.
> >
> > The customer said that they got this code many years ago. The problem is that
> > without defining those quotas, a process can not run a new piece of code. They
> > don't understand it and call it "SPAWNing" which is how they do most of their
> > COBOL (COBOL writes .COM, LIB$SPAWN runs it). Fugly.
> >
> To each his own. I think PHP and Python are ugly. :-)
>
> I don't suppose the program has any documentation. :-)
>
> bill

A quick look in my "Programming VAX-11 Cobol" student workbook shows:

PIC 9(5) COMP is a word
PIC 9(9) COMP is a longword

Knowing what system service is being called that requires the PQL$_ENQLM would help to provide the correct Cobol line.

Dan

Re: Calling $CREPRC in COBOL

<mddtu8s2s2r.fsf@panix5.panix.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: 10 Jun 2022 16:15:24 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 63
Sender: alderson+news@panix5.panix.com
Message-ID: <mddtu8s2s2r.fsf@panix5.panix.com>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me> <jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me> <00B76066.60EA3E42@SendSpamHere.ORG>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="14189"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Fri, 10 Jun 2022 20:15 UTC

Yes, I do know about things other than PDP-10s...

VAXman- @SendSpamHere.ORG writes:

> In article <t804ht$a69$1@dont-email.me>, "Craig A. Berry"
> <craigberry@nospam.mac.com> writes:

>> On 6/10/22 1:27 PM, Bill Gunshannon wrote:

>>> On 6/10/22 14:16, Craig A. Berry wrote:

>>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:

>>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>>> ..............^
>>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>>>> data-item

>>>>> How do you put PQL$ items in to a COBOL "byte"?

>>>> I never knew much COBOL and haven't looked at any in decades, but I would
>>>> think for a one-byte integer it would be "PIC 9(1)" rather than "PIC
>>>> X(1)".

>>> PIC X(1) would be more likely to be a byte than PIC 9(1) as
>>> PIC 9(1) is one decimal digit and PIC X(1) is one character.

>>> But neither is correct.

>> So, since you frequently brag about your COBOL prowess here, why not
>> give the correct answer?

>> I did forget that "size" doesn't actually mean size but rather display
>> digits or something. "PIC 9(9) COMP" is a 4-byte integer, "PIC 9(4)
>> COMP" is a 2-byte integer. By extension, "PIC 9(3) COMP" *might* be a
>> 1-byte integer, but I couldn't quickly find any documentation on it.

> You and Bill know more than I about COBOL. It doesnt even look like code to
> me.

> The customer said that they got this code many years ago. The problem is
> that without defining those quotas, a process can not run a new piece of
> code. They don't understand it and call it "SPAWNing" which is how they do
> most of their COBOL (COBOL writes .COM, LIB$SPAWN runs it). Fugly.

https://support.hpe.com/hpesc/public/docDisplay?docId=c04621339&docLocale=en_US

See page 5-99 and pages 5-138 to 5-149 of the HPE COBOL Reference Manual. The
appropriate incantation would appear to be

10 ENQ-TYPE PIC X USAGE IS COMP-5 VALUE EXTERNAL PQL$_ENQLM.
^^^^^^^^^^^^^^^

Possibly use COMP-X instead of COMP-5. Note that these USAGEs are only
available on Alpha or Itanium processors.

Also note that "X(1)" is redundant; "X" is a single byte specification.

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: Calling $CREPRC in COBOL

<t808ui$4ro$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 15:18:25 -0500
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <t808ui$4ro$1@dont-email.me>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
<00B76066.60EA3E42@SendSpamHere.ORG> <jghm68F6rbqU2@mid.individual.net>
<859534de-bf27-45f6-9f21-addd44d1a30an@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 10 Jun 2022 20:18:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e8e4ea25c7b060917d104516ccad77e7";
logging-data="4984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WVq2yyw+eepUi4al/mvqRfjaA2PrRCOE="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:JdDRYmwMNx9WoJCem0aVE0H3XBM=
In-Reply-To: <859534de-bf27-45f6-9f21-addd44d1a30an@googlegroups.com>
Content-Language: en-US
 by: Craig A. Berry - Fri, 10 Jun 2022 20:18 UTC

On 6/10/22 3:05 PM, abrsvc wrote:

> Knowing what system service is being called that requires the PQL$_ENQLM would help to provide the correct Cobol line.

Um, $CREPRC is in the subject line. And PQL$_ENQLM only makes sense for
the quota parameter:

https://wiki.vmssoftware.com/$CREPRC

Re: Calling $CREPRC in COBOL

<t809sr$m83$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 15:34:34 -0500
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <t809sr$m83$1@dont-email.me>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
<jghm0uF6rbqU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 10 Jun 2022 20:34:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e8e4ea25c7b060917d104516ccad77e7";
logging-data="22787"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sqOR8v75XkYliOK5rOQvs8hD4PTY2iaQ="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:XfD9VgvrPi6XnMz44g/OXtBbOiE=
In-Reply-To: <jghm0uF6rbqU1@mid.individual.net>
Content-Language: en-US
 by: Craig A. Berry - Fri, 10 Jun 2022 20:34 UTC

On 6/10/22 2:57 PM, Bill Gunshannon wrote:
> On 6/10/22 15:03, Craig A. Berry wrote:
>>
>> On 6/10/22 1:27 PM, Bill Gunshannon wrote:
>>> On 6/10/22 14:16, Craig A. Berry wrote:
>>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>>> ..............^
>>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>>>> data-item
>>>>>
>>>>> How do you put PQL$ items in to a COBOL "byte"?

> I have no idea what POL$_ENOLM means or what he is trying to do with it.
> A rough guess would be rather than declaring it external he needs to
> use some VMS Specific function to grab the value and load it into
> ENO-TYPE.

If SDL produces COBOL text libraries and there is a way to include them
(some variant of COPY?) then yes, he might be able to do the equivalent
of "#include <pqldef.h>" and not need the external declaration. But the
external declaration is an ancient hack that at one time was more
reliable than depending on the existence of programmer-friendly
definitions, and also, if you were willing to link at installation time,
could insulate against version-specific changes to the symbol value.

Re: Calling $CREPRC in COBOL

<jghp30F7bieU1@mid.individual.net>

  copy mid

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

  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 Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Fri, 10 Jun 2022 16:49:35 -0400
Lines: 47
Message-ID: <jghp30F7bieU1@mid.individual.net>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
<jghm0uF6rbqU1@mid.individual.net> <t809sr$m83$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 OktA80TUaYAelaRytfNF6w6r/V1pdIH3i1GWFk793NwKvOLAKH
Cancel-Lock: sha1:GAL1aK28nY0a+LDg7/4UNJPE3Bo=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-US
In-Reply-To: <t809sr$m83$1@dont-email.me>
 by: Bill Gunshannon - Fri, 10 Jun 2022 20:49 UTC

On 6/10/22 16:34, Craig A. Berry wrote:
>
> On 6/10/22 2:57 PM, Bill Gunshannon wrote:
>> On 6/10/22 15:03, Craig A. Berry wrote:
>>>
>>> On 6/10/22 1:27 PM, Bill Gunshannon wrote:
>>>> On 6/10/22 14:16, Craig A. Berry wrote:
>>>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>>>> ..............^
>>>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on
>>>>>> COMP
>>>>>> data-item
>>>>>>
>>>>>> How do you put PQL$ items in to a COBOL "byte"?
>
>> I have no idea what POL$_ENOLM means or what he is trying to do with it.
>> A rough guess would be rather than declaring it external he needs to
>> use some VMS Specific function to grab the value and load it into
>> ENO-TYPE.
>
> If SDL produces COBOL text libraries and there is a way to include them
> (some variant of COPY?) then yes, he might be able to do the equivalent
> of "#include <pqldef.h>" and not need the external declaration.  But the
> external declaration is an ancient hack that at one time was more
> reliable than depending on the existence of programmer-friendly
> definitions, and also, if you were willing to link at installation time,
> could insulate against version-specific changes to the symbol value.

COBOL does have the equivalent of #include but that wasn't what I was
thinking of. It looked to me based on the one line of code!) like he
was trying to get some value from the VMS environment and assign it to
ENO-TYPE. I thought there might be a pre-defined, VMS specific function
to get that value making it possible to to do something like:

10 ENO-TYPE PIC 999.

.......

MOVE FUNCTION VMS$GET_VALUE(POL$ENQLM) TO ENO-TYPE.

But, obviously, there is a VMS specific method for doing it rather than
a COBOL way of doing it. :-)

bill

Re: Calling $CREPRC in COBOL

<62a3df71$0$697$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Fri, 10 Jun 2022 20:18:55 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Subject: Re: Calling $CREPRC in COBOL
Content-Language: en-US
Newsgroups: comp.os.vms
References: <00B76057.ECCFCF4E@SendSpamHere.ORG>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <00B76057.ECCFCF4E@SendSpamHere.ORG>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 67
Message-ID: <62a3df71$0$697$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 987cb86d.news.sunsite.dk
X-Trace: 1654906737 news.sunsite.dk 697 arne@vajhoej.dk/68.9.63.232:51508
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Sat, 11 Jun 2022 00:18 UTC

On 6/10/2022 1:39 PM, VAXman-@SendSpamHere.ORG wrote:
> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
> ..............^
> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
> data-item
>
> How do you put PQL$ items in to a COBOL "byte"?

Disclaimer: I don't do Cobol.

As I read the fine manual then VMS Cobol only have
16, 32 and 64 bit binary integers.

So one has to cheat.

Here is my suggestion for cheating:

$ type pack.cob
identification division.
program-id.pack.
* data division.
working-storage section.
01 packrec.
03 b1 pic x.
03 lw1 pic s9(9) comp.
03 b2 pic x.
03 lw2 pic s9(9) comp.
* procedure division.
main-paragraph.
move function char(11 + 1) to b1
move 22 to lw1
move function char (33 + 1) to b2
move 44 to lw2
call "dump" using
by reference packrec
by value 10
end-call
stop run.
$ type packsup.c
#include <stdio.h>

void dump(char *b, int len)
{ int i;
for(i = 0; i < len; i++)
{
printf(" %d", b[i]);
}
printf("\n");
}

$ cob pack
$ cc packsup
$ link pack + packsup
$ run pack
11 22 0 0 0 33 44 0 0 0

The code should be pretty self explanatory.

And you will of course need to move from one variable
with external to the single byte text variable.

Arne

Re: Calling $CREPRC in COBOL

<62a3e6a1$0$700$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Fri, 10 Jun 2022 20:49:36 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Subject: Re: Calling $CREPRC in COBOL
Content-Language: en-US
Newsgroups: comp.os.vms
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t801pc$gd7$1@dont-email.me>
<jghgpaF5vgoU1@mid.individual.net> <t804ht$a69$1@dont-email.me>
<jghm0uF6rbqU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <jghm0uF6rbqU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 64
Message-ID: <62a3e6a1$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 987cb86d.news.sunsite.dk
X-Trace: 1654908577 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:52422
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Sat, 11 Jun 2022 00:49 UTC

On 6/10/2022 3:57 PM, Bill Gunshannon wrote:
> On 6/10/22 15:03, Craig A. Berry wrote:
>>
>> On 6/10/22 1:27 PM, Bill Gunshannon wrote:
>>> On 6/10/22 14:16, Craig A. Berry wrote:
>>>> On 6/10/22 12:39 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>>>>> ..............^
>>>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>>>>> data-item
>>>>>
>>>>> How do you put PQL$ items in to a COBOL "byte"?
>>>>
>>>> I never knew much COBOL and haven't looked at any in decades, but I
>>>> would think for a one-byte integer it would be "PIC 9(1)" rather than
>>>> "PIC X(1)".
>>>
>>> PIC X(1) would be more likely to be a byte than PIC 9(1) as
>>> PIC 9(1) is one decimal digit and PIC X(1) is one character.
>>>
>>> But neither is correct.
>>
>> So, since you frequently brag about your COBOL prowess here, why not
>> give the correct answer?
>
> I haven't touched VMS COBOL in 2 decades since they threw both COBOL
> and VMS out the door at the University of Scranton.  But, in any event
> I have no idea what POL$_ENOLM means or what he is trying to do with it.
> A rough guess would be rather than declaring it external he needs to
> use some VMS Specific function to grab the value and load it into
> ENO-TYPE.

PQL$_ENQLM is a VMS constant.

The external keyword tells the program to get the value
from the linker.

Demo:

$ type ext.cob
identification division.
program-id.ext.
* data division.
working-storage section.
01 magic pic s9(9) comp value external extval.
01 showit pic 9(9) display.
* procedure division.
main-paragraph.
move magic to showit
display showit
stop run.
$ type extsup.c
globalvalue int extval = 123;
$ cob ext
$ cc extsup
$ link ext + extsup
$ run ext
000000123

Arne

Re: Calling $CREPRC in COBOL

<t80pog$hnn$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!PqOvX6IGnPQwKdKFsHVyRA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Sat, 11 Jun 2022 09:05:20 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t80pog$hnn$1@gioia.aioe.org>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="18167"; posting-host="PqOvX6IGnPQwKdKFsHVyRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Sat, 11 Jun 2022 01:05 UTC

On 11/06/2022 1:39 am, VAXman-@SendSpamHere.ORG wrote:
> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
> ..............^
> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
> data-item
>
> How do you put PQL$ items in to a COBOL "byte"?
>

Unfortunately COBOL has never supported by integers but there are
several ways to do it. (I haven't fired up my VMS machines in 5 years
otherwise I'd give you an example. Back in the day when google groups
could search the archives you could find one of several $creprc examples
with all parameters including TCB)

Cumbersome: -

01 enqlm_word pic 9(4) comp value external pql$_enqlm.
01 enqlm_byte redefines enqlm_word.
03 pql_enqlm pic x.

move pql_enqlm to somewhere.

Lose external symbols and hard code: -

Hexadecimal literals:

10 ENQ-TYPE PIC X(1) VALUE x"00".

Special Names:

SPECIAL-NAMES.
PQL$_ENQLM value is 44. (I don't know the value)

10 ENQ-TYPE PIC X(1) VALUE PQL$_ENQLM.

The way I do it: -

Define a global .PSECT in the same .MAR file that you already probably
do for $pqldef GLOBAL

Just lay it out as you would for macro.

..psect fred long, gbl,shr,wrt,blah

..byte pql$_enqlm

Then declare an EXTERNAL variable as the same name as your global psect.

01 fred external.
03 pql$_enqlm pic x. (doesn't have to be same name)
03 pic x.

* The last byte is NECESSARY to round up the psect size on Alpha, and
* Itanium. Macro does this automatically.

Again many examples in cov over the years

Re: Calling $CREPRC in COBOL

<b6184b59-aac2-4759-8168-9097c35c5a78n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5747:0:b0:305:1976:81bd with SMTP id 7-20020ac85747000000b00305197681bdmr6725295qtx.465.1654913081328;
Fri, 10 Jun 2022 19:04:41 -0700 (PDT)
X-Received: by 2002:a37:ad18:0:b0:6a6:1d94:ff50 with SMTP id
f24-20020a37ad18000000b006a61d94ff50mr23555720qkm.426.1654913081198; Fri, 10
Jun 2022 19:04:41 -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, 10 Jun 2022 19:04:41 -0700 (PDT)
In-Reply-To: <t80pog$hnn$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=96.230.211.194; posting-account=Ysq9BAoAAACGX1EcMMPkdNg4YcTg0TxG
NNTP-Posting-Host: 96.230.211.194
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b6184b59-aac2-4759-8168-9097c35c5a78n@googlegroups.com>
Subject: Re: Calling $CREPRC in COBOL
From: dansabrs...@yahoo.com (abrsvc)
Injection-Date: Sat, 11 Jun 2022 02:04:41 +0000
Content-Type: text/plain; charset="UTF-8"
 by: abrsvc - Sat, 11 Jun 2022 02:04 UTC

On Friday, June 10, 2022 at 9:05:25 PM UTC-4, Richard Maher wrote:
> On 11/06/2022 1:39 am, VAX...@SendSpamHere.ORG wrote:
> > 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
> > ..............^
> > %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
> > data-item
> >
> > How do you put PQL$ items in to a COBOL "byte"?
> >
> Unfortunately COBOL has never supported by integers but there are
> several ways to do it. (I haven't fired up my VMS machines in 5 years
> otherwise I'd give you an example. Back in the day when google groups
> could search the archives you could find one of several $creprc examples
> with all parameters including TCB)
>
> Cumbersome: -
>
> 01 enqlm_word pic 9(4) comp value external pql$_enqlm.
> 01 enqlm_byte redefines enqlm_word.
> 03 pql_enqlm pic x.
>
> move pql_enqlm to somewhere.
>
> Lose external symbols and hard code: -
>
> Hexadecimal literals:
>
> 10 ENQ-TYPE PIC X(1) VALUE x"00".
>
> Special Names:
>
> SPECIAL-NAMES.
> PQL$_ENQLM value is 44. (I don't know the value)
>
> 10 ENQ-TYPE PIC X(1) VALUE PQL$_ENQLM.
>
> The way I do it: -
>
> Define a global .PSECT in the same .MAR file that you already probably
> do for $pqldef GLOBAL
>
> Just lay it out as you would for macro.
>
> .psect fred long, gbl,shr,wrt,blah
>
> .byte pql$_enqlm
>
> Then declare an EXTERNAL variable as the same name as your global psect.
>
> 01 fred external.
> 03 pql$_enqlm pic x. (doesn't have to be same name)
> 03 pic x.
>
> * The last byte is NECESSARY to round up the psect size on Alpha, and
> * Itanium. Macro does this automatically.
>
> Again many examples in cov over the years

The other issue here is that this one value is part (or all) of the itemlist that is for the quota parameter.of CREPRC.
The entire list structure must be built, not just this one value.

Re: Calling $CREPRC in COBOL

<t80upk$15r$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!PqOvX6IGnPQwKdKFsHVyRA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Sat, 11 Jun 2022 10:31:15 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t80upk$15r$1@gioia.aioe.org>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org>
<b6184b59-aac2-4759-8168-9097c35c5a78n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="1211"; posting-host="PqOvX6IGnPQwKdKFsHVyRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Sat, 11 Jun 2022 02:31 UTC

On 11/06/2022 10:04 am, abrsvc wrote:
> On Friday, June 10, 2022 at 9:05:25 PM UTC-4, Richard Maher wrote:
>> On 11/06/2022 1:39 am, VAX...@SendSpamHere.ORG wrote:
>>> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM. ..............^
>>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on
>>> COMP data-item
>>>
>>> How do you put PQL$ items in to a COBOL "byte"?
>>>
>> Unfortunately COBOL has never supported by integers but there are
>> several ways to do it. (I haven't fired up my VMS machines in 5
>> years otherwise I'd give you an example. Back in the day when
>> google groups could search the archives you could find one of
>> several $creprc examples with all parameters including TCB)
>>
>> Cumbersome: -
>>
>> 01 enqlm_word pic 9(4) comp value external pql$_enqlm. 01
>> enqlm_byte redefines enqlm_word. 03 pql_enqlm pic x.
>>
>> move pql_enqlm to somewhere.
>>
>> Lose external symbols and hard code: -
>>
>> Hexadecimal literals:
>>
>> 10 ENQ-TYPE PIC X(1) VALUE x"00".
>>
>> Special Names:
>>
>> SPECIAL-NAMES. PQL$_ENQLM value is 44. (I don't know the value)
>>
>> 10 ENQ-TYPE PIC X(1) VALUE PQL$_ENQLM.
>>
>> The way I do it: -
>>
>> Define a global .PSECT in the same .MAR file that you already
>> probably do for $pqldef GLOBAL
>>
>> Just lay it out as you would for macro.
>>
>> .psect fred long, gbl,shr,wrt,blah
>>
>> .byte pql$_enqlm
>>
>> Then declare an EXTERNAL variable as the same name as your global
>> psect.
>>
>> 01 fred external. 03 pql$_enqlm pic x. (doesn't have to be same
>> name) 03 pic x.
>>
>> * The last byte is NECESSARY to round up the psect size on Alpha,
>> and * Itanium. Macro does this automatically.
>>
>> Again many examples in cov over the years
>
> The other issue here is that this one value is part (or all) of the
> itemlist that is for the quota parameter.of CREPRC. The entire list
> structure must be built, not just this one value.

I understand but each solution offered scales.

IMHO the best solution is to build everything in a macro PSECT(s) and
just match its length and attributes and your COBOL and MACRO get to
initialize of modify the same area of memory as they see fit.

Being able to OR flags together is also next to useless in COBOL with
having to use mth$jior or math$or (I can't remember)

COBOL's PSECT attributes for all EXTERNAL declarations can be found at
the end of the .LIS file.

Re: Calling $CREPRC in COBOL

<t81j22$1l9e$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!PqOvX6IGnPQwKdKFsHVyRA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Sat, 11 Jun 2022 16:17:04 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t81j22$1l9e$1@gioia.aioe.org>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="54574"; posting-host="PqOvX6IGnPQwKdKFsHVyRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Sat, 11 Jun 2022 08:17 UTC

On 11/06/2022 9:05 am, Richard Maher wrote:
> On 11/06/2022 1:39 am, VAXman-@SendSpamHere.ORG wrote:
>>    10  ENQ-TYPE      PIC X(1)  VALUE EXTERNAL PQL$_ENQLM.
>> ..............^
>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>> data-item
>>
>> How do you put PQL$ items in to a COBOL "byte"?
>>
>
> Unfortunately COBOL has never supported by integers but there are
> several ways to do it. (I haven't fired up my VMS machines in 5 years
> otherwise I'd give you an example. Back in the day when google groups
> could search the archives you could find one of several $creprc examples
> with all parameters including TCB)
>
> Cumbersome: -
>
> 01 enqlm_word pic 9(4) comp value external pql$_enqlm.
> 01 enqlm_byte redefines enqlm_word.
>    03  pql_enqlm pic x.
>
> move pql_enqlm to somewhere.
>
> Lose external symbols and hard code: -
>
> Hexadecimal literals:
>
> 10  ENQ-TYPE      PIC X(1)  VALUE x"00".
>
> Special Names:
>
> SPECIAL-NAMES.
>     PQL$_ENQLM value is 44. (I don't know the value)
>
> 10  ENQ-TYPE      PIC X(1)  VALUE PQL$_ENQLM.
>
> The way I do it: -
>
> Define a global .PSECT in the same .MAR file that you already probably
> do for $pqldef GLOBAL
>
> Just lay it out as you would for macro.
>
> .psect fred long, gbl,shr,wrt,blah
>
> .byte pql$_enqlm
>
> Then declare an EXTERNAL variable as the same name as your global psect.
>
> 01 fred external.
>    03 pql$_enqlm pic x. (doesn't have to be same name)
>    03 pic x.
>
> * The last byte is NECESSARY to round up the psect size on Alpha, and
> * Itanium. Macro does this automatically.
>
> Again many examples in cov over the years

Below is an entry response. Need to find whole conversation or
view-as-tree: -

https://groups.google.com/g/comp.os.vms/c/xJptlKOregU/m/y0s3fbcoqtQJ

https://groups.google.com/g/comp.os.vms/c/xJptlKOregU/m/y0s3fbcoqtQ

https://groups.google.com/g/comp.os.vms/c/TAmi6i8fMo0/m/1f1JnjqS8RsJ

Re: Calling $CREPRC in COBOL

<00B760DE.23380967@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Sat, 11 Jun 2022 09:39:52 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B760DE.23380967@SendSpamHere.ORG>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="34071"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Sat, 11 Jun 2022 09:39 UTC

In article <t80pog$hnn$1@gioia.aioe.org>, Richard Maher <maher_rjSPAMLESS@hotmail.com> writes:
>On 11/06/2022 1:39 am, VAXman-@SendSpamHere.ORG wrote:
>> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
>> ..............^
>> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
>> data-item
>>
>> How do you put PQL$ items in to a COBOL "byte"?
>>
>
>Unfortunately COBOL has never supported by integers but there are
>several ways to do it. (I haven't fired up my VMS machines in 5 years
>otherwise I'd give you an example. Back in the day when google groups
>could search the archives you could find one of several $creprc examples
>with all parameters including TCB)
>
>Cumbersome: -
>
>01 enqlm_word pic 9(4) comp value external pql$_enqlm.
>01 enqlm_byte redefines enqlm_word.
> 03 pql_enqlm pic x.
>
>move pql_enqlm to somewhere.
>
>Lose external symbols and hard code: -
>
>Hexadecimal literals:
>
>10 ENQ-TYPE PIC X(1) VALUE x"00".
>
>Special Names:
>
>SPECIAL-NAMES.
> PQL$_ENQLM value is 44. (I don't know the value)
>
>10 ENQ-TYPE PIC X(1) VALUE PQL$_ENQLM.
>
>The way I do it: -
>
>Define a global .PSECT in the same .MAR file that you already probably
>do for $pqldef GLOBAL
>
>Just lay it out as you would for macro.
>
>..psect fred long, gbl,shr,wrt,blah
>
>..byte pql$_enqlm
>
>Then declare an EXTERNAL variable as the same name as your global psect.
>
>01 fred external.
> 03 pql$_enqlm pic x. (doesn't have to be same name)
> 03 pic x.
>
>* The last byte is NECESSARY to round up the psect size on Alpha, and
>* Itanium. Macro does this automatically.
>
>Again many examples in cov over the years

Thanks Richard. I found a program on the customer's system that was written
decades ago to invoke $CREPRC. It's author did something similar entirely
within COBOL. Got the integer values and then did MOVEs to move the lower
byte into the QUOTA list item code field.

The current "coder" cut bits and pieces from that original not knowing what
it was doing. I thoguht it odd when I asked the programmer about passing a
numeric value as the $CREPRC<pidadr>. It was a "decimal" value converted
from a hexadecimal PID. The "programmer" said it worked. It did but only
because the constant was writeable in COBOL. This was my first indication
that they were NOT calling $CREPRC correctly.

I got on this system early this morning (4:00) because I was up to get ready
for a launch event I took that original program and launched a .COM with a
simple $ WAIT 1:: in it. Then, I stepped though the same program and just
prior to the call to $CREPRC, I deposited %hex(2000000) as the PGFLQUOTA.
Sure enough, the created process had that ridiculously large PGFLQUOTA when
I looked.

COBOL is barely a read-only language for me but I was able to see that this
is doable if one DOESN'T disregard system call parameters that one does NOT
understand.

Two weeks wasted on this with a reticent programmer. Now, I can get back to
an sshfs problem.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.

Re: Calling $CREPRC in COBOL

<cd67f616-b598-4133-855b-28e16ec6b75en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5ad4:0:b0:2f3:e0fb:df1c with SMTP id d20-20020ac85ad4000000b002f3e0fbdf1cmr39520352qtd.267.1654942206721;
Sat, 11 Jun 2022 03:10:06 -0700 (PDT)
X-Received: by 2002:a05:620a:108d:b0:6a6:c888:ce6c with SMTP id
g13-20020a05620a108d00b006a6c888ce6cmr19146657qkk.739.1654942206512; Sat, 11
Jun 2022 03:10:06 -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: Sat, 11 Jun 2022 03:10:06 -0700 (PDT)
In-Reply-To: <t81j22$1l9e$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=159.196.168.27; posting-account=ljjXiAgAAAA3eWtNZYnEiwKxkHjOOX9r
NNTP-Posting-Host: 159.196.168.27
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org> <t81j22$1l9e$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cd67f616-b598-4133-855b-28e16ec6b75en@googlegroups.com>
Subject: Re: Calling $CREPRC in COBOL
From: phow9...@gmail.com (Phil Howell)
Injection-Date: Sat, 11 Jun 2022 10:10:06 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Phil Howell - Sat, 11 Jun 2022 10:10 UTC

On Saturday, 11 June 2022 at 6:17:11 pm UTC+10, Richard Maher wrote:
> On 11/06/2022 9:05 am, Richard Maher wrote:
> > On 11/06/2022 1:39 am, VAX...@SendSpamHere.ORG wrote:
> >> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
> >> ..............^
> >> %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored - valid only on COMP
> >> data-item
> >>
> >> How do you put PQL$ items in to a COBOL "byte"?
> >>
> >
> > Unfortunately COBOL has never supported by integers but there are
> > several ways to do it. (I haven't fired up my VMS machines in 5 years
> > otherwise I'd give you an example. Back in the day when google groups
> > could search the archives you could find one of several $creprc examples
> > with all parameters including TCB)
> >
> > Cumbersome: -
> >
> > 01 enqlm_word pic 9(4) comp value external pql$_enqlm.
> > 01 enqlm_byte redefines enqlm_word.
> > 03 pql_enqlm pic x.
> >
> > move pql_enqlm to somewhere.
> >
> > Lose external symbols and hard code: -
> >
> > Hexadecimal literals:
> >
> > 10 ENQ-TYPE PIC X(1) VALUE x"00".
> >
> > Special Names:
> >
> > SPECIAL-NAMES.
> > PQL$_ENQLM value is 44. (I don't know the value)
> >
> > 10 ENQ-TYPE PIC X(1) VALUE PQL$_ENQLM.
> >
> > The way I do it: -
> >
> > Define a global .PSECT in the same .MAR file that you already probably
> > do for $pqldef GLOBAL
> >
> > Just lay it out as you would for macro.
> >
> > .psect fred long, gbl,shr,wrt,blah
> >
> > .byte pql$_enqlm
> >
> > Then declare an EXTERNAL variable as the same name as your global psect.
> >
> > 01 fred external.
> > 03 pql$_enqlm pic x. (doesn't have to be same name)
> > 03 pic x.
> >
> > * The last byte is NECESSARY to round up the psect size on Alpha, and
> > * Itanium. Macro does this automatically.
> >
> > Again many examples in cov over the years
> Below is an entry response. Need to find whole conversation or
> view-as-tree: -
>
> https://groups.google.com/g/comp.os.vms/c/xJptlKOregU/m/y0s3fbcoqtQJ" rel="nofollow" target="_blank">https://groups.google.com/g/comp.os.vms/c/xJptlKOregU/m/y0s3fbcoqtQJ
>
> https://groups.google.com/g/comp.os.vms/c/xJptlKOregU/m/y0s3fbcoqtQ
>
> https://groups.google.com/g/comp.os.vms/c/TAmi6i8fMo0/m/1f1JnjqS8RsJ

Boldly going where no COBOL has been before

Nice to see dclexh used in anger again

I always found that compiling with /LIST and /MAP=DECLARED
showed you what the layout actually is, rather than what you thought it was

Re: Calling $CREPRC in COBOL

<t838hk$o8n$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!PqOvX6IGnPQwKdKFsHVyRA.user.46.165.242.75.POSTED!not-for-mail
From: maher_rj...@hotmail.com (Richard Maher)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Sun, 12 Jun 2022 07:29:57 +0800
Organization: Aioe.org NNTP Server
Message-ID: <t838hk$o8n$1@gioia.aioe.org>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org>
<00B760DE.23380967@SendSpamHere.ORG>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="24855"; posting-host="PqOvX6IGnPQwKdKFsHVyRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Richard Maher - Sat, 11 Jun 2022 23:29 UTC

On 11/06/2022 5:39 pm, VAXman-@SendSpamHere.ORG wrote:
> In article <t80pog$hnn$1@gioia.aioe.org>, Richard Maher
> <maher_rjSPAMLESS@hotmail.com> writes:
>> On 11/06/2022 1:39 am, VAXman-@SendSpamHere.ORG wrote:
>>> 10 ENQ-TYPE PIC X(1) VALUE EXTERNAL PQL$_ENQLM.
>>> ..............^ %COBOL-E-EXTREFVAL, VALUE EXTERNAL clause ignored
>>> - valid only on COMP data-item
>>>
>>> How do you put PQL$ items in to a COBOL "byte"?
>>>
>>
>> Unfortunately COBOL has never supported by integers but there are
>> several ways to do it. (I haven't fired up my VMS machines in 5
>> years otherwise I'd give you an example. Back in the day when
>> google groups could search the archives you could find one of
>> several $creprc examples with all parameters including TCB)
>>
>> Cumbersome: -
>>
>> 01 enqlm_word pic 9(4) comp value external pql$_enqlm. 01
>> enqlm_byte redefines enqlm_word. 03 pql_enqlm pic x.
>>
>> move pql_enqlm to somewhere.
>>
>> Lose external symbols and hard code: -
>>
>> Hexadecimal literals:
>>
>> 10 ENQ-TYPE PIC X(1) VALUE x"00".
>>
>> Special Names:
>>
>> SPECIAL-NAMES. PQL$_ENQLM value is 44. (I don't know the value)
>>
>> 10 ENQ-TYPE PIC X(1) VALUE PQL$_ENQLM.
>>
>> The way I do it: -
>>
>> Define a global .PSECT in the same .MAR file that you already
>> probably do for $pqldef GLOBAL
>>
>> Just lay it out as you would for macro.
>>
>> ..psect fred long, gbl,shr,wrt,blah
>>
>> ..byte pql$_enqlm
>>
>> Then declare an EXTERNAL variable as the same name as your global
>> psect.
>>
>> 01 fred external. 03 pql$_enqlm pic x. (doesn't have to be same
>> name) 03 pic x.
>>
>> * The last byte is NECESSARY to round up the psect size on Alpha,
>> and * Itanium. Macro does this automatically.
>>
>> Again many examples in cov over the years
>
> Thanks Richard. I found a program on the customer's system that was
> written decades ago to invoke $CREPRC. It's author did something
> similar entirely within COBOL. Got the integer values and then did
> MOVEs to move the lower byte into the QUOTA list item code field.
>
> The current "coder" cut bits and pieces from that original not
> knowing what it was doing. I thoguht it odd when I asked the
> programmer about passing a numeric value as the $CREPRC<pidadr>. It
> was a "decimal" value converted from a hexadecimal PID. The
> "programmer" said it worked. It did but only because the constant
> was writeable in COBOL. This was my first indication that they were
> NOT calling $CREPRC correctly.
>
> I got on this system early this morning (4:00) because I was up to
> get ready for a launch event I took that original program and
> launched a .COM with a simple $ WAIT 1:: in it. Then, I stepped
> though the same program and just prior to the call to $CREPRC, I
> deposited %hex(2000000) as the PGFLQUOTA. Sure enough, the created
> process had that ridiculously large PGFLQUOTA when I looked.
>
> COBOL is barely a read-only language for me but I was able to see
> that this is doable if one DOESN'T disregard system call parameters
> that one does NOT understand.
>
> Two weeks wasted on this with a reticent programmer. Now, I can get
> back to an sshfs problem.
>

"All's well that ends" - Hein

Re: Calling $CREPRC in COBOL

<t87tg0$h5a$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Mon, 13 Jun 2022 17:52:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <t87tg0$h5a$1@dont-email.me>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org> <00B760DE.23380967@SendSpamHere.ORG>
Injection-Date: Mon, 13 Jun 2022 17:52:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7a7af61028e35fa7e5f1d4809a7efa5b";
logging-data="17578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186QvXOr0ez0W8ypjG92kH+44smUWL8RFA="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:YDbic5qlJ5PzcvMrl4UpKnsRZLM=
 by: Simon Clubley - Mon, 13 Jun 2022 17:52 UTC

On 2022-06-11, VAXman- @SendSpamHere.ORG <VAXman-@SendSpamHere.ORG> wrote:
>
> COBOL is barely a read-only language for me but I was able to see that this
> is doable if one DOESN'T disregard system call parameters that one does NOT
> understand.
>

Using COBOL to interface to VMS has been a serious eye-opener for me in
reading this thread. I guess no-one is going to be doing even a bare metal
LED blinker in COBOL any time soon... :-)

> Two weeks wasted on this with a reticent programmer. Now, I can get back to
> an sshfs problem.
>

sshfs on VMS ? Is that using sshfs as a client or as a server on VMS ?

I am also curious which software you are using on VMS to support sshfs.

Thanks,

Simon.

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

Re: Calling $CREPRC in COBOL

<00B762D2.2AC1B0E8@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: Calling $CREPRC in COBOL
Date: Mon, 13 Jun 2022 21:19:13 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B762D2.2AC1B0E8@SendSpamHere.ORG>
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org> <00B760DE.23380967@SendSpamHere.ORG> <t87tg0$h5a$1@dont-email.me>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="58360"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Mon, 13 Jun 2022 21:19 UTC

In article <t87tg0$h5a$1@dont-email.me>, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> writes:
>On 2022-06-11, VAXman- @SendSpamHere.ORG <VAXman-@SendSpamHere.ORG> wrote:
>>
>> COBOL is barely a read-only language for me but I was able to see that this
>> is doable if one DOESN'T disregard system call parameters that one does NOT
>> understand.
>>
>
>Using COBOL to interface to VMS has been a serious eye-opener for me in
>reading this thread. I guess no-one is going to be doing even a bare metal
>LED blinker in COBOL any time soon... :-)

Bare metal COBOL. Thankfully, I haven't poured the first beer yet or I'd have
wasted a good ale, and I'd be cleaning it up from the screen and keyboard.

>> Two weeks wasted on this with a reticent programmer. Now, I can get back to
>> an sshfs problem.
>>
>
>sshfs on VMS ? Is that using sshfs as a client or as a server on VMS ?

It's OBVIOUS you haven't tried it. sshfs from linux or OSX to VMS works well.
I use it to move files to and from quite often. It works with TCPIP Services
ssh althought you need to supply some -o parameters to dumb it down. Process
ssh for OpenVMS works too and the -o dumb-downs aren't needed. My Mac and my
linux have a /mnt/VMS directory for the mount point and a simple script that
does the sshfs magic. Public keys make it all easy-peasy.

>I am also curious which software you are using on VMS to support sshfs.

See above.

My sshfs is a problem between OSX and linux involving some data I want to use
for a web site. I just haven't had the free time to dick-about with it. Do
not assume, because I mentioned it here, that it had anything to do with VMS.

I'm now distracted again fixing the php in a plug-in I installed. I need to
make an <svg>...</svg> handle doing a transform: rotate but the author of the
plug-in php really horked a simple implementation.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.

Re: Calling $CREPRC in COBOL

<Ps-dnZ3Lvf_5mzX_nZ2dnUU7-K2dnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 13 Jun 2022 22:54:12 -0500
Sender: Dennis Boone <drb@yagi.h-net.org>
From: drb...@ihatespam.msu.edu (Dennis Boone)
Subject: Re: Calling $CREPRC in COBOL
Newsgroups: comp.os.vms
References: <00B76057.ECCFCF4E@SendSpamHere.ORG> <t80pog$hnn$1@gioia.aioe.org> <00B760DE.23380967@SendSpamHere.ORG> <t87tg0$h5a$1@dont-email.me>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <Ps-dnZ3Lvf_5mzX_nZ2dnUU7-K2dnZ2d@giganews.com>
Date: Mon, 13 Jun 2022 22:54:12 -0500
Lines: 11
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-JVePGkIvqaGzCF4pTWS8wV52in+xswyV2Jp2cq5fBLKE8OWLNi2KhhISXPlT7posDC78CnwupsuapfI!K/pJhos6DtdIdttWQfvAR1n8g1RDIY49QOhJFlWrIZSHTTYdJFMUUy2d6QWt589z8+F2w+k=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1558
 by: Dennis Boone - Tue, 14 Jun 2022 03:54 UTC

> Using COBOL to interface to VMS has been a serious eye-opener for me in
> reading this thread. I guess no-one is going to be doing even a bare
> metal LED blinker in COBOL any time soon... :-)

Never underestimate the chance that some weirdo may combine some COMP
data, the REVERSE verb, and some overlay moves. I mean, there's
http://www.coboloncogs.org/ so...

/me ponders how to nmost obscurely get GPIO on a vax or itanic.

De

Pages:1234
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor