Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

In the long run, every program becomes rococco, and then rubble. -- Alan Perlis


computers / comp.os.vms / Re: callable BACKUP example

SubjectAuthor
* callable BACKUP exampleVAXman-
+- Re: callable BACKUP exampleVAXman-
`* Re: callable BACKUP exampleArne Vajhøj
 `* Re: callable BACKUP exampleChris Townley
  `* Re: callable BACKUP exampleArne Vajhøj
   `* Re: callable BACKUP exampleChris Townley
    `* Re: callable BACKUP exampleDave Froble
     +* Re: callable BACKUP exampleArne Vajhøj
     |`* Re: callable BACKUP exampleStephen Hoffman
     | +* Re: callable BACKUP exampleGalen
     | |`- Re: callable BACKUP exampleLee Gleason
     | `- Re: callable BACKUP exampleArne Vajhøj
     +* Re: callable BACKUP exampleVAXman-
     |`* Re: callable BACKUP exampleVAXman-
     | `* Re: callable BACKUP exampleDave Froble
     |  `- Re: callable BACKUP exampleArne Vajhøj
     `* Re: callable BACKUP exampleDave Froble
      +* Re: callable BACKUP examplejimc...@gmail.com
      |+* Re: callable BACKUP exampleDave Froble
      ||`* Re: callable BACKUP exampleStephen Hoffman
      || `- Re: callable BACKUP exampleRobert A. Brooks
      |`- Re: callable BACKUP examplePhillip Helbig (undress to reply
      `* Re: callable BACKUP exampleStephen Hoffman
       `- Re: callable BACKUP exampleDave Froble

1
callable BACKUP example

<00B6577C.58FA82EB@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: callable BACKUP example
Date: Thu, 08 Jul 2021 16:22:14 GMT
Organization: c.2021 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Lines: 11
Message-ID: <00B6577C.58FA82EB@SendSpamHere.ORG>
Reply-To: VAXman- @SendSpamHere.ORG
NNTP-Posting-Host: tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Thu, 8 Jul 2021 16:22 UTC

Does anybody have the callable BACKUP example in compilable format?

Trying to select and copy it from the PDF manual gives me garbage.

FWIW, that's the ugliest bit of VMS documentation I have read in a
very long while.

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

I speak to machines with the voice of humanity.

Re: callable BACKUP example

<00B65786.EBBE8CED@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 08 Jul 2021 17:37:55 GMT
Organization: c.2021 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Lines: 14
Message-ID: <00B65786.EBBE8CED@SendSpamHere.ORG>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
Reply-To: VAXman- @SendSpamHere.ORG
NNTP-Posting-Host: tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Thu, 8 Jul 2021 17:37 UTC

In article <00B6577C.58FA82EB@SendSpamHere.ORG>, VAXman- @SendSpamHere.ORG writes:
>Does anybody have the callable BACKUP example in compilable format?
>
>Trying to select and copy it from the PDF manual gives me garbage.
>
>FWIW, that's the ugliest bit of VMS documentation I have read in a
>very long while.

NEVERMIND. I wrote it in Macro. ;)

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

I speak to machines with the voice of humanity.

Re: callable BACKUP example

<sc7dqs$1tko$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 8 Jul 2021 13:49:17 -0400
Organization: Aioe.org NNTP Server
Lines: 52
Message-ID: <sc7dqs$1tko$1@gioia.aioe.org>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Thu, 8 Jul 2021 17:49 UTC

On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
> Does anybody have the callable BACKUP example in compilable format?
>
> Trying to select and copy it from the PDF manual gives me garbage.
>
> FWIW, that's the ugliest bit of VMS documentation I have read in a
> very long while.

I rewrote the example in the manual and ended up with:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <descrip.h>

#include "sys$examples:bapidef.h"

typedef struct _buf_arg
{ bck_opt_struct_dsc arg1;
bck_opt_struct_dsc arg2;
bck_opt_struct_flag arg3;
bck_opt_struct_flag arg4;
bck_opt_struct_flag arg5;
} buf_arg;

int backup$start(buf_arg *mybufarg);

int main()
{ buf_arg mybufarg;;
int status;
$DESCRIPTOR(input_dsc, "[.ratfor...]");
$DESCRIPTOR(output_dsc, "ratfor.bck");
mybufarg.arg1.opt_dsc_type = BCK_OPT_K_INPUT;
memcpy(&mybufarg.arg1.opt_dsc, &input_dsc, 8);
mybufarg.arg2.opt_dsc_type = BCK_OPT_K_OUTPUT;
memcpy(&mybufarg.arg2.opt_dsc, &output_dsc, 8);
mybufarg.arg3.option_type = BCK_OPT_K_SAVE_SET_OUT;
mybufarg.arg3.opt_flag_value = TRUE;
mybufarg.arg4.option_type = BCK_OPT_K_OPERATION_TYPE;
mybufarg.arg4.opt_flag_value = BCK_OP_K_SAVE ;
mybufarg.arg5.option_type = BCK_OPT_K_END_OPT;
mybufarg.arg5.opt_flag_value = FALSE;
status = backup$start(&mybufarg);
exit(status);
}

BACKUP/LIST look OK on the result.

Arne

Re: callable BACKUP example

<sc7rfn$h39$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 8 Jul 2021 22:42:14 +0100
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <sc7rfn$h39$1@dont-email.me>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Jul 2021 21:42:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1ca9f0a85f64095679ccd6b7b95cb837";
logging-data="17513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IyUWii0tBhcnNHIrh3p4tF47bcJbPBmg="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:OhiIZp/Pyb6uiXoq9cP96kDnOy8=
In-Reply-To: <sc7dqs$1tko$1@gioia.aioe.org>
Content-Language: en-GB
 by: Chris Townley - Thu, 8 Jul 2021 21:42 UTC

On 08/07/2021 18:49, Arne Vajhøj wrote:
> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>> Does anybody have the callable BACKUP example in compilable format?
>>
>> Trying to select and copy it from the PDF manual gives me garbage.
>>
>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>> very long while.
>
> I rewrote the example in the manual and ended up with:
>
> #include <stdio.h>
> #include <string.h>
> #include <stdlib.h>
> #include <descrip.h>
>
> #include "sys$examples:bapidef.h"
>
> typedef struct _buf_arg
> {
>     bck_opt_struct_dsc arg1;
>     bck_opt_struct_dsc arg2;
>     bck_opt_struct_flag arg3;
>     bck_opt_struct_flag arg4;
>     bck_opt_struct_flag arg5;
> } buf_arg;
>
> int backup$start(buf_arg *mybufarg);
>
> int main()
> {
>     buf_arg mybufarg;;
>     int status;
>     $DESCRIPTOR(input_dsc, "[.ratfor...]");
>     $DESCRIPTOR(output_dsc, "ratfor.bck");
>     mybufarg.arg1.opt_dsc_type = BCK_OPT_K_INPUT;
>     memcpy(&mybufarg.arg1.opt_dsc, &input_dsc, 8);
>     mybufarg.arg2.opt_dsc_type = BCK_OPT_K_OUTPUT;
>     memcpy(&mybufarg.arg2.opt_dsc, &output_dsc, 8);
>     mybufarg.arg3.option_type = BCK_OPT_K_SAVE_SET_OUT;
>     mybufarg.arg3.opt_flag_value = TRUE;
>     mybufarg.arg4.option_type = BCK_OPT_K_OPERATION_TYPE;
>     mybufarg.arg4.opt_flag_value = BCK_OP_K_SAVE ;
>     mybufarg.arg5.option_type = BCK_OPT_K_END_OPT;
>     mybufarg.arg5.opt_flag_value = FALSE;
>     status = backup$start(&mybufarg);
>     exit(status);
> }
>
> BACKUP/LIST look OK on the result.
>
> Arne
>
Always beware of copying/pasting from Word or PDF - it usually does
strange things - especially with quotes!

Chris

--
Chris

Re: callable BACKUP example

<sc7vl7$1j26$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 8 Jul 2021 18:53:29 -0400
Organization: Aioe.org NNTP Server
Lines: 40
Message-ID: <sc7vl7$1j26$1@gioia.aioe.org>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Thu, 8 Jul 2021 22:53 UTC

On 7/8/2021 5:42 PM, Chris Townley wrote:
> On 08/07/2021 18:49, Arne Vajhøj wrote:
>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>> Does anybody have the callable BACKUP example in compilable format?
>>>
>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>
>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>> very long while.
>>
>> I rewrote the example in the manual and ended up with:

>> BACKUP/LIST look OK on the result.
>>
> Always beware of copying/pasting from Word or PDF - it usually does
> strange things - especially with quotes!

It was more than copy/paste problems.

The example in the manual declared a function:

unsigned int subtest(void *);

without using it.

It did:

static char input_str[] = "[.wrk]";
....
input_dsc.dsc$w_length = sizeof(input_str);

which I believe must be off by 1.

It did not declare return type of main and it made all variables
global instead of local in main, which is valid C but not very
good C.

Arne

Re: callable BACKUP example

<sc80n6$g1f$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 9 Jul 2021 00:11:33 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <sc80n6$g1f$1@dont-email.me>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Jul 2021 23:11:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3becbad4aaf45e0ddc9a58761ccb87b3";
logging-data="16431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bon8tlAyj/S9Av8gHYgbiw6P0wWbRwOE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:oi0U/po5uG91vGHd9adOBcnQaGE=
In-Reply-To: <sc7vl7$1j26$1@gioia.aioe.org>
Content-Language: en-GB
 by: Chris Townley - Thu, 8 Jul 2021 23:11 UTC

On 08/07/2021 23:53, Arne Vajhøj wrote:
> On 7/8/2021 5:42 PM, Chris Townley wrote:
>> On 08/07/2021 18:49, Arne Vajhøj wrote:
>>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>>> Does anybody have the callable BACKUP example in compilable format?
>>>>
>>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>>
>>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>>> very long while.
>>>
>>> I rewrote the example in the manual and ended up with:
>
>>> BACKUP/LIST look OK on the result.
>>>
>> Always beware of copying/pasting from Word or PDF - it usually does
>> strange things - especially with quotes!
>
> It was more than copy/paste problems.
>
> The example in the manual declared a function:
>
> unsigned int subtest(void *);
>
> without using it.
>
> It did:
>
> static char input_str[] = "[.wrk]";
> ...
> input_dsc.dsc$w_length = sizeof(input_str);
>
> which I believe must be off by 1.
>
> It did not declare return type of main and it made all variables
> global instead of local in main, which is valid C but not very
> good C.
>
> Arne
>
>
Ouch!

Chris

--
Chris

Re: callable BACKUP example

<sc86be$cvo$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 8 Jul 2021 20:48:52 -0400
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <sc86be$cvo$1@dont-email.me>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 9 Jul 2021 00:47:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8332ea4c6f96027b426cb8a1c12d721f";
logging-data="13304"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7OeMkJAI1subm1oMMf5IhtB8KJ2XaxQc="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:y/TpvZjWPHXN+wlNEgRfLq5B+V4=
In-Reply-To: <sc80n6$g1f$1@dont-email.me>
 by: Dave Froble - Fri, 9 Jul 2021 00:48 UTC

On 7/8/2021 7:11 PM, Chris Townley wrote:
> On 08/07/2021 23:53, Arne Vajhøj wrote:
>> On 7/8/2021 5:42 PM, Chris Townley wrote:
>>> On 08/07/2021 18:49, Arne Vajhøj wrote:
>>>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>> Does anybody have the callable BACKUP example in compilable format?
>>>>>
>>>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>>>
>>>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>>>> very long while.
>>>>
>>>> I rewrote the example in the manual and ended up with:
>>
>>>> BACKUP/LIST look OK on the result.
>>>>
>>> Always beware of copying/pasting from Word or PDF - it usually does
>>> strange things - especially with quotes!
>>
>> It was more than copy/paste problems.
>>
>> The example in the manual declared a function:
>>
>> unsigned int subtest(void *);
>>
>> without using it.
>>
>> It did:
>>
>> static char input_str[] = "[.wrk]";
>> ...
>> input_dsc.dsc$w_length = sizeof(input_str);
>>
>> which I believe must be off by 1.
>>
>> It did not declare return type of main and it made all variables
>> global instead of local in main, which is valid C but not very
>> good C.
>>
>> Arne
>>
>>
> Ouch!
>
> Chris
>

"Cut-n-Paste" usually means the user didn't bother to understand the
example/source. That isn't a good idea at any time. The doc examples
are to help one understand, not to be blindly copied.

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

Re: callable BACKUP example

<sc9hm1$h0e$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 9 Jul 2021 09:07:12 -0400
Organization: Aioe.org NNTP Server
Lines: 68
Message-ID: <sc9hm1$h0e$1@gioia.aioe.org>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Fri, 9 Jul 2021 13:07 UTC

On 7/8/2021 8:48 PM, Dave Froble wrote:
> On 7/8/2021 7:11 PM, Chris Townley wrote:
>> On 08/07/2021 23:53, Arne Vajhøj wrote:
>>> On 7/8/2021 5:42 PM, Chris Townley wrote:
>>>> On 08/07/2021 18:49, Arne Vajhøj wrote:
>>>>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>> Does anybody have the callable BACKUP example in compilable format?
>>>>>>
>>>>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>>>>
>>>>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>>>>> very long while.
>>>>>
>>>>> I rewrote the example in the manual and ended up with:
>>>
>>>>> BACKUP/LIST look OK on the result.
>>>>>
>>>> Always beware of copying/pasting from Word or PDF - it usually does
>>>> strange things - especially with quotes!
>>>
>>> It was more than copy/paste problems.
>>>
>>> The example in the manual declared a function:
>>>
>>> unsigned int subtest(void *);
>>>
>>> without using it.
>>>
>>> It did:
>>>
>>> static char input_str[] = "[.wrk]";
>>> ...
>>> input_dsc.dsc$w_length = sizeof(input_str);
>>>
>>> which I believe must be off by 1.
>>>
>>> It did not declare return type of main and it made all variables
>>> global instead of local in main, which is valid C but not very
>>> good C.
>>
>> Ouch!
>
> "Cut-n-Paste" usually means the user didn't bother to understand the
> example/source.  That isn't a good idea at any time.  The doc examples
> are to help one understand, not to be blindly copied.

It is fair enough and in some cases even beneficial to just show
code snippets instead of complete code.

And it is obviously the copy pasters mistake if he copy paste code
that does something else than what he need.

But whatever is chosen to be shown should be OK code for a
purpose.

If they had not shown the descriptor initialization then it would
have been OK. The example intend to show BACKUP$ routines not
use of descriptors in C.

But they chose to show the code. And then the code should be correct.

Arne

Re: callable BACKUP example

<00B65888.594833A3@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Sat, 10 Jul 2021 00:20:39 GMT
Organization: c.2021 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Lines: 68
Message-ID: <00B65888.594833A3@SendSpamHere.ORG>
References: <00B6577C.58FA82EB@SendSpamHere.ORG> <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me> <sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me> <sc86be$cvo$1@dont-email.me>
Reply-To: VAXman- @SendSpamHere.ORG
NNTP-Posting-Host: tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Sat, 10 Jul 2021 00:20 UTC

In article <sc86be$cvo$1@dont-email.me>, Dave Froble <davef@tsoft-inc.com> writes:
>On 7/8/2021 7:11 PM, Chris Townley wrote:
>> On 08/07/2021 23:53, Arne Vajhøj wrote:
>>> On 7/8/2021 5:42 PM, Chris Townley wrote:
>>>> On 08/07/2021 18:49, Arne Vajhøj wrote:
>>>>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>> Does anybody have the callable BACKUP example in compilable format?
>>>>>>
>>>>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>>>>
>>>>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>>>>> very long while.
>>>>>
>>>>> I rewrote the example in the manual and ended up with:
>>>
>>>>> BACKUP/LIST look OK on the result.
>>>>>
>>>> Always beware of copying/pasting from Word or PDF - it usually does
>>>> strange things - especially with quotes!
>>>
>>> It was more than copy/paste problems.
>>>
>>> The example in the manual declared a function:
>>>
>>> unsigned int subtest(void *);
>>>
>>> without using it.
>>>
>>> It did:
>>>
>>> static char input_str[] = "[.wrk]";
>>> ...
>>> input_dsc.dsc$w_length = sizeof(input_str);
>>>
>>> which I believe must be off by 1.
>>>
>>> It did not declare return type of main and it made all variables
>>> global instead of local in main, which is valid C but not very
>>> good C.
>>>
>>> Arne
>>>
>>>
>> Ouch!
>>
>> Chris
>>
>
>"Cut-n-Paste" usually means the user didn't bother to understand the
>example/source. That isn't a good idea at any time. The doc examples
>are to help one understand, not to be blindly copied.

I wanted something quick to play with but copying it from Preview on my
Mac to TextEdit produced put unadulterated garbage. What I don't under-
stand is why the various macros (C-headers) were never added into the
system's libraries. They need to be included from SYS$EXAMPLES. If the
*include* files can be placed into SYS$EXAMPLES, why wasn't the example?
After perusing that awful BACKUP API documentation, I whipped together a
macro example. Far more readable too.

If you want to wish you had a migraine a augmented by a hangover from a
college toga party coupled with a raging case of herpes, take a gander
at that BACKUP API documentation.

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

I speak to machines with the voice of humanity.

Re: callable BACKUP example

<00B65889.0EBDDE59@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Sat, 10 Jul 2021 00:25:44 GMT
Organization: c.2021 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Lines: 73
Message-ID: <00B65889.0EBDDE59@SendSpamHere.ORG>
References: <00B6577C.58FA82EB@SendSpamHere.ORG> <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me> <sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me> <sc86be$cvo$1@dont-email.me> <00B65888.594833A3@SendSpamHere.ORG>
Reply-To: VAXman- @SendSpamHere.ORG
NNTP-Posting-Host: tXgf+zuDgRoRDZAnFvrhkg.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Sat, 10 Jul 2021 00:25 UTC

In article <00B65888.594833A3@SendSpamHere.ORG>, VAXman- @SendSpamHere.ORG writes:
>In article <sc86be$cvo$1@dont-email.me>, Dave Froble <davef@tsoft-inc.com> writes:
>>On 7/8/2021 7:11 PM, Chris Townley wrote:
>>> On 08/07/2021 23:53, Arne Vajhøj wrote:
>>>> On 7/8/2021 5:42 PM, Chris Townley wrote:
>>>>> On 08/07/2021 18:49, Arne Vajhøj wrote:
>>>>>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>>> Does anybody have the callable BACKUP example in compilable format?
>>>>>>>
>>>>>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>>>>>
>>>>>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>>>>>> very long while.
>>>>>>
>>>>>> I rewrote the example in the manual and ended up with:
>>>>
>>>>>> BACKUP/LIST look OK on the result.
>>>>>>
>>>>> Always beware of copying/pasting from Word or PDF - it usually does
>>>>> strange things - especially with quotes!
>>>>
>>>> It was more than copy/paste problems.
>>>>
>>>> The example in the manual declared a function:
>>>>
>>>> unsigned int subtest(void *);
>>>>
>>>> without using it.
>>>>
>>>> It did:
>>>>
>>>> static char input_str[] = "[.wrk]";
>>>> ...
>>>> input_dsc.dsc$w_length = sizeof(input_str);
>>>>
>>>> which I believe must be off by 1.
>>>>
>>>> It did not declare return type of main and it made all variables
>>>> global instead of local in main, which is valid C but not very
>>>> good C.
>>>>
>>>> Arne
>>>>
>>>>
>>> Ouch!
>>>
>>> Chris
>>>
>>
>>"Cut-n-Paste" usually means the user didn't bother to understand the
>>example/source. That isn't a good idea at any time. The doc examples
>>are to help one understand, not to be blindly copied.
>
>I wanted something quick to play with but copying it from Preview on my
>Mac to TextEdit produced put unadulterated garbage. What I don't under-
>stand is why the various macros (C-headers) were never added into the
>system's libraries. They need to be included from SYS$EXAMPLES. If the
>*include* files can be placed into SYS$EXAMPLES, why wasn't the example?
>After perusing that awful BACKUP API documentation, I whipped together a
>macro example. Far more readable too.
>
>If you want to wish you had a migraine a augmented by a hangover from a
>college toga party coupled with a raging case of herpes, take a gander
>at that BACKUP API documentation.

In fact, the only thing that I believe could be worse than that BACKUP
API documentation would be the .SDL that created the awful definitions
you see in SYS$EXAMPLES.

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

I speak to machines with the voice of humanity.

Re: callable BACKUP example

<scar7r$em9$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 9 Jul 2021 20:57:02 -0400
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <scar7r$em9$1@dont-email.me>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me> <00B65888.594833A3@SendSpamHere.ORG>
<00B65889.0EBDDE59@SendSpamHere.ORG>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 10 Jul 2021 00:56:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7dd308525b80a55cf33fd6aa4f9b128a";
logging-data="15049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zkjyV/kR0h7vYX7Mg1fRPhM5SdHUa1sc="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:TBDcLt2+xM0IaBVtJx27HKPhGKk=
In-Reply-To: <00B65889.0EBDDE59@SendSpamHere.ORG>
 by: Dave Froble - Sat, 10 Jul 2021 00:57 UTC

On 7/9/2021 8:25 PM, VAXman-@SendSpamHere.ORG wrote:
> In article <00B65888.594833A3@SendSpamHere.ORG>, VAXman- @SendSpamHere.ORG writes:
>> In article <sc86be$cvo$1@dont-email.me>, Dave Froble <davef@tsoft-inc.com> writes:
>>> On 7/8/2021 7:11 PM, Chris Townley wrote:
>>>> On 08/07/2021 23:53, Arne Vajhøj wrote:
>>>>> On 7/8/2021 5:42 PM, Chris Townley wrote:
>>>>>> On 08/07/2021 18:49, Arne Vajhøj wrote:
>>>>>>> On 7/8/2021 12:22 PM, VAXman-@SendSpamHere.ORG wrote:
>>>>>>>> Does anybody have the callable BACKUP example in compilable format?
>>>>>>>>
>>>>>>>> Trying to select and copy it from the PDF manual gives me garbage.
>>>>>>>>
>>>>>>>> FWIW, that's the ugliest bit of VMS documentation I have read in a
>>>>>>>> very long while.
>>>>>>>
>>>>>>> I rewrote the example in the manual and ended up with:
>>>>>
>>>>>>> BACKUP/LIST look OK on the result.
>>>>>>>
>>>>>> Always beware of copying/pasting from Word or PDF - it usually does
>>>>>> strange things - especially with quotes!
>>>>>
>>>>> It was more than copy/paste problems.
>>>>>
>>>>> The example in the manual declared a function:
>>>>>
>>>>> unsigned int subtest(void *);
>>>>>
>>>>> without using it.
>>>>>
>>>>> It did:
>>>>>
>>>>> static char input_str[] = "[.wrk]";
>>>>> ...
>>>>> input_dsc.dsc$w_length = sizeof(input_str);
>>>>>
>>>>> which I believe must be off by 1.
>>>>>
>>>>> It did not declare return type of main and it made all variables
>>>>> global instead of local in main, which is valid C but not very
>>>>> good C.
>>>>>
>>>>> Arne
>>>>>
>>>>>
>>>> Ouch!
>>>>
>>>> Chris
>>>>
>>>
>>> "Cut-n-Paste" usually means the user didn't bother to understand the
>>> example/source. That isn't a good idea at any time. The doc examples
>>> are to help one understand, not to be blindly copied.
>>
>> I wanted something quick to play with but copying it from Preview on my
>> Mac to TextEdit produced put unadulterated garbage. What I don't under-
>> stand is why the various macros (C-headers) were never added into the
>> system's libraries. They need to be included from SYS$EXAMPLES. If the
>> *include* files can be placed into SYS$EXAMPLES, why wasn't the example?
>> After perusing that awful BACKUP API documentation, I whipped together a
>> macro example. Far more readable too.
>>
>> If you want to wish you had a migraine a augmented by a hangover from a
>> college toga party coupled with a raging case of herpes, take a gander
>> at that BACKUP API documentation.
>
> In fact, the only thing that I believe could be worse than that BACKUP
> API documentation would be the .SDL that created the awful definitions
> you see in SYS$EXAMPLES.
>

Many years ago I needed to do this. I took a look at the documentation,
then implemented a solution that created a small command file, then
spawned a sub-process to do the backup. Some things aren't worth the
aggravation.

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

Re: callable BACKUP example

<scaudd$eko$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 9 Jul 2021 21:50:37 -0400
Organization: Aioe.org NNTP Server
Lines: 30
Message-ID: <scaudd$eko$1@gioia.aioe.org>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me> <00B65888.594833A3@SendSpamHere.ORG>
<00B65889.0EBDDE59@SendSpamHere.ORG> <scar7r$em9$1@dont-email.me>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Sat, 10 Jul 2021 01:50 UTC

On 7/9/2021 8:57 PM, Dave Froble wrote:
> On 7/9/2021 8:25 PM, VAXman-@SendSpamHere.ORG wrote:
>> In article <00B65888.594833A3@SendSpamHere.ORG>, VAXman-
>>> If you want to wish you had a migraine a augmented by a hangover from a
>>> college toga party coupled with a raging case of herpes, take a gander
>>> at that BACKUP API documentation.
>>
>> In fact, the only thing that I believe could be worse than that BACKUP
>> API documentation would be the .SDL that created the awful definitions
>> you see in SYS$EXAMPLES.
>
> Many years ago I needed to do this.  I took a look at the documentation,
> then implemented a solution that created a small command file, then
> spawned a sub-process to do the backup.  Some things aren't worth the
> aggravation.

That solution makes a lot of sense.

The DCL BACKUP command is a lot better documented and well known
than the BACKUP$ API.

The performance overhead of spawning a sub-process is likely
insignificant compared to doing the backup.

But maybe there are some funky security requirements that we don't
know about.

Arne

Re: callable BACKUP example

<scconq$30q$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Sat, 10 Jul 2021 14:26:02 -0400
Organization: HoffmanLabs LLC
Lines: 51
Message-ID: <scconq$30q$1@dont-email.me>
References: <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me> <sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me> <sc86be$cvo$1@dont-email.me> <sc9hm1$h0e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="5e7657b41d6436301104c75b1da76edb";
logging-data="3098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ti367KHQqMjvpqSTJ1hxfQcy2AV2wxqw="
User-Agent: Unison/2.2
Cancel-Lock: sha1:1cHYy152eSfC1y7EZJYu3lm6Atc=
 by: Stephen Hoffman - Sat, 10 Jul 2021 18:26 UTC

> ... whole thread expurated ...

This OpenVMS doc is poor, and this source code example is weak, and the
whole concept that folks won't be incorporating source code examples
into production code is just, well, wrong.

This source code incorporation happens ~everywhere. I'd expect there
are OpenVMS source code examples that have found their way back into
OpenVMS itself. And elsewhere.

Example source code needs to be complete and correct and with
functional error handling, needs to build correctly, and with a
copyright amenable to its incorporation into customer apps.

Because that incorporation is what is going to happen.

Would I like skilled development staff able to recognize latent issues
in (buggy) example source code? Sure. But if that were the case, I'd
wonder whether that skilled staff was even looking at the source code
examples.

And this incorporation happens. There are hunks of customer support
center example source code I've met in various different customer
engagements, and the source code itself is problematic at best.

That the customer support center was providing these examples isn't a
problem, but it does tend to point to issues in... to point to
opportunities for enhancements in OpenVMS and its APIs and
documentation and examples.

Then there's the whole discussion of the staggering about of source
code needed for an API call; all the glue code that's needed just to
use OpenVMS APIs. And the other whole discussion about the level of
abstraction provided by the existing OpenVMS APIs.

VSI has discussed providing ways to add user-provided source code into
OpenVMS. Source code examples would be one such area. But that's all
fodder for well after V9.2 is available and stable.

And a mea culpa specifically here: I'm responsible for the "" inclusion
stuff within BACKUP (and not the expected <> inclusions). I was asked
where to add some data structures and examples into OpenVMS, so I
answered. What I hadn't realized at the time was that those data
structures were the API. All that stuff should be in the public APIs,
not where it's located.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: callable BACKUP example

<cdb9389b-416f-4985-9e0e-e8b1efb9a965n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:11c3:: with SMTP id n3mr278145qtk.211.1626116164673; Mon, 12 Jul 2021 11:56:04 -0700 (PDT)
X-Received: by 2002:a0c:da87:: with SMTP id z7mr726378qvj.62.1626116164429; Mon, 12 Jul 2021 11:56:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 12 Jul 2021 11:56:04 -0700 (PDT)
In-Reply-To: <scconq$30q$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:5c2:100:9ac:dc72:410c:4391:fbe4; posting-account=3cvdsgoAAAA3cXGwk8UbATqK_bpfW_PG
NNTP-Posting-Host: 2601:5c2:100:9ac:dc72:410c:4391:fbe4
References: <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me> <sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me> <sc86be$cvo$1@dont-email.me> <sc9hm1$h0e$1@gioia.aioe.org> <scconq$30q$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cdb9389b-416f-4985-9e0e-e8b1efb9a965n@googlegroups.com>
Subject: Re: callable BACKUP example
From: gltack...@gmail.com (Galen)
Injection-Date: Mon, 12 Jul 2021 18:56:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 16
 by: Galen - Mon, 12 Jul 2021 18:56 UTC

> This source code incorporation happens ~everywhere. I'd expect there
> are OpenVMS source code examples that have found their way back into
> OpenVMS itself. And elsewhere.

Probably some similar process resulted in what I recount below.

I recall from a long-ago DECUS symposium (probably in an RSX "Magic Session") a DEC developer mentioning that there were scattered around the RSX sources (including libraries and utilities) redundant instances of the RAD50<->ASCII conversion code. ("Redundant" here meaning pointless. I can at least conceive of reasons why one component of the system might not be able to access the code instance in some other component.)

A wise guy in the audience (there were plenty of them in typical RSX Magic Sessions) replied, "That's so that if one copy of the code breaks, callers of the other non-broken copies won't be affected." I suppose an undetected memory error could lead to that... :-)

Re: callable BACKUP example

<YH4HI.3173$sI4.2853@fx40.iad>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
Subject: Re: callable BACKUP example
Newsgroups: comp.os.vms
References: <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me> <sc9hm1$h0e$1@gioia.aioe.org>
<scconq$30q$1@dont-email.me>
<cdb9389b-416f-4985-9e0e-e8b1efb9a965n@googlegroups.com>
From: lee.glea...@comcast.net (Lee Gleason)
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <cdb9389b-416f-4985-9e0e-e8b1efb9a965n@googlegroups.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Antivirus: Avast (VPS 210712-4, 7/12/2021), Outbound message
X-Antivirus-Status: Clean
Lines: 24
Message-ID: <YH4HI.3173$sI4.2853@fx40.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Mon, 12 Jul 2021 23:59:52 UTC
Organization: usenet-news.net
Date: Mon, 12 Jul 2021 18:59:52 -0500
X-Received-Bytes: 2479
 by: Lee Gleason - Mon, 12 Jul 2021 23:59 UTC

On 7/12/2021 1:56 PM, Galen wrote:
>> This source code incorporation happens ~everywhere. I'd expect there
>> are OpenVMS source code examples that have found their way back into
>> OpenVMS itself. And elsewhere.
>
> Probably some similar process resulted in what I recount below.
>
> I recall from a long-ago DECUS symposium (probably in an RSX "Magic Session") a DEC developer mentioning that there were scattered around the RSX sources (including libraries and utilities) redundant instances of the RAD50<->ASCII conversion code. ("Redundant" here meaning pointless. I can at least conceive of reasons why one component of the system might not be able to access the code instance in some other component.)
>
> A wise guy in the audience (there were plenty of them in typical RSX Magic Sessions) replied, "That's so that if one copy of the code breaks, callers of the other non-broken copies won't be affected." I suppose an undetected memory error could lead to that... :-)
>

I believe that was Brian McCarthy, doing a presentation at the RSX
Magic Session he called "You Paid For It", where he pointed out
redundant and crazy things in the RSX code base, that we the customers
had effectively paid for.

It was great.

--
Lee K. Gleason N5ZMR
Control-G Consultants
lee.gleason@comcast.net

Re: callable BACKUP example

<scnq5m$79m$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Wed, 14 Jul 2021 18:57:20 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <scnq5m$79m$1@dont-email.me>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me>
<33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 14 Jul 2021 22:57:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a6d20aed461783792c3607f361a60404";
logging-data="7478"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+E6EpEI4acmiN5xmZOs1NAr6jnG2mS8uY="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:e2+kq/YNuFV8C2oBmExXvu+mgj4=
In-Reply-To: <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com>
 by: Dave Froble - Wed, 14 Jul 2021 22:57 UTC

On 7/14/2021 12:31 PM, jimc...@gmail.com wrote:
> On Thursday, July 8, 2021 at 5:47:45 PM UTC-7, Dave Froble wrote:
>
>> "Cut-n-Paste" usually means the user didn't bother to understand the
>> example/source. That isn't a good idea at any time. The doc examples
>> are to help one understand, not to be blindly copied.
>
> Cutting-and-pasting code into an editor so you can build and experiment is an important expedient even if you're going to rewrite and integrate independently.
>

Only if you understand what you're using.

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

Re: callable BACKUP example

<04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:300c:: with SMTP id ke12mr800041qvb.38.1626365198441;
Thu, 15 Jul 2021 09:06:38 -0700 (PDT)
X-Received: by 2002:a37:a5ca:: with SMTP id o193mr4705387qke.352.1626365198277;
Thu, 15 Jul 2021 09:06:38 -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: Thu, 15 Jul 2021 09:06:37 -0700 (PDT)
In-Reply-To: <scnq5m$79m$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=67.185.69.149; posting-account=zLN-tQoAAAAsk_LJGSALC4tFlw9OCpzy
NNTP-Posting-Host: 67.185.69.149
References: <00B6577C.58FA82EB@SendSpamHere.ORG> <sc7dqs$1tko$1@gioia.aioe.org>
<sc7rfn$h39$1@dont-email.me> <sc7vl7$1j26$1@gioia.aioe.org>
<sc80n6$g1f$1@dont-email.me> <sc86be$cvo$1@dont-email.me> <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com>
<scnq5m$79m$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com>
Subject: Re: callable BACKUP example
From: jimcau...@gmail.com (jimc...@gmail.com)
Injection-Date: Thu, 15 Jul 2021 16:06:38 +0000
Content-Type: text/plain; charset="UTF-8"
 by: jimc...@gmail.com - Thu, 15 Jul 2021 16:06 UTC

On Wednesday, July 14, 2021 at 3:58:01 PM UTC-7, Dave Froble wrote:

> Only if you understand what you're using.

They're orthogonal points. Breaking cut-and-paste isn't going to make engineers more likely to do the right thing, and everyone deserves to be productive.

Re: callable BACKUP example

<scpun6$7mm$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 15 Jul 2021 14:27:03 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <scpun6$7mm$1@dont-email.me>
References: <00B6577C.58FA82EB@SendSpamHere.ORG>
<sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me>
<33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com>
<scnq5m$79m$1@dont-email.me>
<04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 15 Jul 2021 18:27:50 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a6d20aed461783792c3607f361a60404";
logging-data="7894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xdtut12eEZ4vuroCaIqs+eAa4qk5O6X0="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Wb8GJ3t7b7foJqF4+ws4gif6VOA=
In-Reply-To: <04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com>
 by: Dave Froble - Thu, 15 Jul 2021 18:27 UTC

On 7/15/2021 12:06 PM, jimc...@gmail.com wrote:
> On Wednesday, July 14, 2021 at 3:58:01 PM UTC-7, Dave Froble wrote:
>
>> Only if you understand what you're using.
>
> They're orthogonal points. Breaking cut-and-paste isn't going to make engineers more likely to do the right thing, and everyone deserves to be productive.
>

I'd agree. I've used cut-n-paste many times. I knew what the code did,
I insured that it would be appropriate, and I tested to insure all that.
No sense re-typing what already exists, or can be easily modified for
the task.

However, I've had the misfortune to observe a few people who didn't have
a clue, and used cut-n-paste and didn't get anything meaningful
accomplished. Well, they did get to say "I worked on it", but things
would have been better if they hadn't.

These experiences are why I mention that first a programmer must
understand what is required, must understand what the source code
actually does, and uses the source code to accomplish the intended task.

I know that I'm talking about incompetents, but, that is who really
likes to use cut-n-paste.

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

Re: callable BACKUP example

<scqjlr$j2a$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 15 Jul 2021 20:25:31 -0400
Organization: HoffmanLabs LLC
Lines: 60
Message-ID: <scqjlr$j2a$1@dont-email.me>
References: <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com> <scnq5m$79m$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="dc0c9177d498db1270380359ee638dfc";
logging-data="19530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jjsMQHmctVOuKBat7iF79EnRE+UyLVBI="
User-Agent: Unison/2.2
Cancel-Lock: sha1:vl+NAh8wQ7plZqB1uAoLBc4HIU4=
 by: Stephen Hoffman - Fri, 16 Jul 2021 00:25 UTC

On 2021-07-14 22:57:20 +0000, Dave Froble said:

> On 7/14/2021 12:31 PM, jimc...@gmail.com wrote:
>> On Thursday, July 8, 2021 at 5:47:45 PM UTC-7, Dave Froble wrote:
>>
>>> "Cut-n-Paste" usually means the user didn't bother to understand the
>>> example/source. That isn't a good idea at any time. The doc examples
>>> are to help one understand, not to be blindly copied.
>>
>> Cutting-and-pasting code into an editor so you can build and experiment
>> is an important expedient even if you're going to rewrite and integrate
>> independently.
>
> Only if you understand what you're using.

I'd like secure code. I'd like perfect code. I'd like folks that
understand all aspects of the code. Or every aspect of the enterprise
environment. All those are wonderful and desirable and all the rest.
But that isn't the world that most of us live in and operate in.

Cut-and-paste app development is how the world works now, and I'd wager
~everybody here has used existing copyright-appropriate source code
examples as a starting point.

Nobody is an expert in all of the OpenVMS APIs, and some of the OpenVMS
APIs can diverge widely (SMG, ACME, OpenSSL, etc) from the more typical
API designs.

The OpenVMS API designs are also wildly different from APIs on other platforms.

There are cases where the error handling is a central part of the call,
and existing OpenVMS examples tend to fail here. This includes BACKUP,
SSL/TLS, and a number of other contexts.

Copying cookbook code is how the world works now, how ~all of us
already or will be operating, and particularly with the sorts of
complex and glue-code-focused API designs prevalent on OpenVMS.

Template source code examples embedded directly in documentation are,
well, archaic. And in various cases, won't build, or will omit
important API details in the interest of brevity of documentation.

I'd prefer better abstractions in general, and I'd prefer the source
code examples be prepared as cookbooks with robust error handling, to
be buildable and usable, and with a permissive copyright. Let the docs
link to the cookbook.

I'll again dare y'all: I *DARE* you to write a client-server app using
a SSL/TLS connection with proper certificate verification on both ends
of the connection, including the ability to detect interception, using
the current TLSv1.3 and secure encryption and key exchange. I *DARE*
you. And this is just the tip of the difficulty. ACME is no great joy
to use for a password verification—what should be an easy case—as
another example. I won't dare y'all to write that, as you'll fail.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: callable BACKUP example

<scqm9p$9m0$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 15 Jul 2021 21:10:19 -0400
Organization: Aioe.org NNTP Server
Lines: 45
Message-ID: <scqm9p$9m0$1@gioia.aioe.org>
References: <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me>
<sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me>
<sc86be$cvo$1@dont-email.me> <sc9hm1$h0e$1@gioia.aioe.org>
<scconq$30q$1@dont-email.me>
NNTP-Posting-Host: 5Avcpu9drOe6MAssky6/+Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Fri, 16 Jul 2021 01:10 UTC

On 7/10/2021 2:26 PM, Stephen Hoffman wrote:
> This OpenVMS doc is poor, and this source code example is weak, and the
> whole concept that folks won't be incorporating source code examples
> into production code is just, well, wrong.
>
> This source code incorporation happens ~everywhere. I'd expect there are
> OpenVMS source code examples that have found their way back into OpenVMS
> itself. And elsewhere.

Yep.

> Example source code needs to be complete and correct and with functional
> error handling, needs to build correctly, and with a copyright amenable
> to its incorporation into customer apps.

I don't think it is that simple.

A complete example makes it easy to copy paste and show some of the
extra stuff that need to be done in final code.

But a complete example also tend to be much bigger and taking
much more time to read than a snippet that only show the the
specific stuff the example need to illustrate.

So there are pros and cons of both. The copy paste people
prefer the complete example, but the read and understand
people probably prefer the short example.

And there are in between: code that is compilable but are still
not complete.

I am really fine with all flavors.

As long as it is clearly indicated what it is.

It is really bad to present example code as complete if it is
not complete.

And it is really bad to provide example code that does not work
without clearly explaining that it is really pseudo code.

But as long as the "label" match the "content" then it is up
to the reader to read.

Arne

Re: callable BACKUP example

<scqnhr$1hu$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Thu, 15 Jul 2021 21:31:07 -0400
Organization: A noiseless patient Spider
Lines: 88
Message-ID: <scqnhr$1hu$1@dont-email.me>
References: <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com>
<scnq5m$79m$1@dont-email.me> <scqjlr$j2a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Jul 2021 01:31:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="49900a57aed7e41565c311c6298a8993";
logging-data="1598"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cvMfZ+rPgR7nFYhDXipNU38PPLqwyTGQ="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:aVBGhK4zL4+8eiPvJa9H+3zJi24=
In-Reply-To: <scqjlr$j2a$1@dont-email.me>
 by: Dave Froble - Fri, 16 Jul 2021 01:31 UTC

On 7/15/2021 8:25 PM, Stephen Hoffman wrote:
> On 2021-07-14 22:57:20 +0000, Dave Froble said:
>
>> On 7/14/2021 12:31 PM, jimc...@gmail.com wrote:
>>> On Thursday, July 8, 2021 at 5:47:45 PM UTC-7, Dave Froble wrote:
>>>
>>>> "Cut-n-Paste" usually means the user didn't bother to understand the
>>>> example/source. That isn't a good idea at any time. The doc examples
>>>> are to help one understand, not to be blindly copied.
>>>
>>> Cutting-and-pasting code into an editor so you can build and
>>> experiment is an important expedient even if you're going to rewrite
>>> and integrate independently.
>>
>> Only if you understand what you're using.
>
> I'd like secure code. I'd like perfect code. I'd like folks that
> understand all aspects of the code. Or every aspect of the enterprise
> environment. All those are wonderful and desirable and all the rest. But
> that isn't the world that most of us live in and operate in.

You trying to say the world is imperfect?

> Cut-and-paste app development is how the world works now, and I'd wager
> ~everybody here has used existing copyright-appropriate source code
> examples as a starting point.

There is no sense in re-inventing the wheel, but, one should be sure the
wheel they intend to use is actually round, right?

> Nobody is an expert in all of the OpenVMS APIs, and some of the OpenVMS
> APIs can diverge widely (SMG, ACME, OpenSSL, etc) from the more typical
> API designs.

You do like to understate some issues, huh? Imagine, calling something
an IOSB when it's format is not the IOSB we all know and hate.

> The OpenVMS API designs are also wildly different from APIs on other
> platforms.

Not an issue for some of us.

> There are cases where the error handling is a central part of the call,
> and existing OpenVMS examples tend to fail here. This includes BACKUP,
> SSL/TLS, and a number of other contexts.
>
> Copying cookbook code is how the world works now, how ~all of us already
> or will be operating, and particularly with the sorts of complex and
> glue-code-focused API designs prevalent on OpenVMS.

I just cannot get too comfortable with that.

> Template source code examples embedded directly in documentation are,
> well, archaic. And in various cases, won't build, or will omit important
> API details in the interest of brevity of documentation.

Gee, you must have been attempting to read the TCP/IP docs ...

:-)

> I'd prefer better abstractions in general, and I'd prefer the source
> code examples be prepared as cookbooks with robust error handling, to be
> buildable and usable, and with a permissive copyright. Let the docs link
> to the cookbook.

Sort of like the older VMS documentation?

> I'll again dare y'all: I *DARE* you to write a client-server app using a
> SSL/TLS connection with proper certificate verification on both ends of
> the connection, including the ability to detect interception, using the
> current TLSv1.3 and secure encryption and key exchange. I *DARE* you.
> And this is just the tip of the difficulty. ACME is no great joy to use
> for a password verification—what should be an easy case—as another
> example. I won't dare y'all to write that, as you'll fail.

So what, you like to place your bets after the race is run, huh?

I looked at such, and quickly saw that it just wasn't gonna happen. So
I started placing custom checks on data. I can control that to some
extent. I cannot control the wildness of the web.

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

Re: callable BACKUP example

<scr3nn$2u5$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!m1W4SjNLmFbvmp9vBtk+Dg.user.gioia.aioe.org.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 16 Jul 2021 04:59:35 +0000 (UTC)
Organization: Multivax C&R
Lines: 15
Message-ID: <scr3nn$2u5$1@gioia.aioe.org>
References: <00B6577C.58FA82EB@SendSpamHere.ORG> <sc7dqs$1tko$1@gioia.aioe.org> <sc7rfn$h39$1@dont-email.me> <sc7vl7$1j26$1@gioia.aioe.org> <sc80n6$g1f$1@dont-email.me> <sc86be$cvo$1@dont-email.me> <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com> <scnq5m$79m$1@dont-email.me> <04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com>
NNTP-Posting-Host: m1W4SjNLmFbvmp9vBtk+Dg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Fri, 16 Jul 2021 04:59 UTC

In article <scpun6$7mm$1@dont-email.me>, Dave Froble
<davef@tsoft-inc.com> writes:

> I'd agree. I've used cut-n-paste many times. I knew what the code did,
> I insured that it would be appropriate, and I tested to insure all that.
> No sense re-typing what already exists, or can be easily modified for
> the task.
>
> However, I've had the misfortune to observe a few people who didn't have
> a clue, and used cut-n-paste and didn't get anything meaningful
> accomplished.

So, with regard to cut and paste, if they don't have a clue, they
shouldn't have the glue. :-)

Re: callable BACKUP example

<scspgo$69u$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 16 Jul 2021 16:17:28 -0400
Organization: HoffmanLabs LLC
Lines: 22
Message-ID: <scspgo$69u$1@dont-email.me>
References: <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com> <scnq5m$79m$1@dont-email.me> <04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com> <scpun6$7mm$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="dc0c9177d498db1270380359ee638dfc";
logging-data="6462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z1gvgNbeoZawKrQx3rrss1ZpZAEeaHXo="
User-Agent: Unison/2.2
Cancel-Lock: sha1:kdYGXlkmNu9JSrm7shGsi07w/uo=
 by: Stephen Hoffman - Fri, 16 Jul 2021 20:17 UTC

On 2021-07-15 18:27:03 +0000, Dave Froble said:

> I know that I'm talking about incompetents, but, that is who really
> likes to use cut-n-paste.

Experienced folks too like having working examples and functional
templates to start from.

For many of us, a working example makes figuring out an API a whole lot easier.

And a working example with competent error handling, all the better.

This as compared with the current and antiquated morass found within
the existing OpenVMS documentation, and the examples directory. And the
VSI support database has some gaps.

We're unfortunately all incompetents in at least some parts of OpenVMS.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: callable BACKUP example

<scsppe$9m7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: callable BACKUP example
Date: Fri, 16 Jul 2021 16:21:57 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <scsppe$9m7$1@dont-email.me>
References: <33a22514-b1de-41c9-878e-72b04c80997bn@googlegroups.com>
<scnq5m$79m$1@dont-email.me>
<04385b40-a247-44c4-80cf-d2af6e259ff1n@googlegroups.com>
<scpun6$7mm$1@dont-email.me> <scspgo$69u$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Jul 2021 20:22:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="339b14bb061f862169302c3b5ab6adaf";
logging-data="9927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EGIIc1NnvAuQ7IvOvOAibQDXZOq1chmfNSM7BoZos/Q=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:Xo/c3dl8HedFwsFgR7jy3JwxXa4=
In-Reply-To: <scspgo$69u$1@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-US
X-Antivirus: Avast (VPS 210716-0, 7/15/2021), Outbound message
 by: Robert A. Brooks - Fri, 16 Jul 2021 20:21 UTC

On 7/16/2021 4:17 PM, Stephen Hoffman wrote:
> On 2021-07-15 18:27:03 +0000, Dave Froble said:
>
>> I know that I'm talking about incompetents, but, that is who really likes to
>> use cut-n-paste.
>
> Experienced folks too like having working examples and functional templates to
> start from.
>
> For many of us, a working example makes figuring out an API a whole lot easier.
>
> And a working example with competent error handling, all the better.

Against my better judgement, I'll make an effort to get better examples added
to SYS$EXAMPLES:, especially to replace ones that are broken.

Note that I'm not planning on looking for broken examples myself, nor do I plan
to fix any, but I will take submissions and do my best.

Go ahead and email them to me; don't just post 'em here.

--
-- Rob

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor