Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Machines that have broken down will work perfectly when the repairman arrives.


computers / comp.sys.unisys / Re: Code to fetch name from mix number

SubjectAuthor
* Code to fetch name from mix numberAndrea Hardesty
`* Re: Code to fetch name from mix numberPeggy Quan
 `* Re: Code to fetch name from mix numberPaul Kimpel
  `* Re: Code to fetch name from mix numberAndrea Hardesty
   `- Re: Code to fetch name from mix numberDoug Dobson

1
Code to fetch name from mix number

<56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=73&group=comp.sys.unisys#73

  copy link   Newsgroups: comp.sys.unisys
X-Received: by 2002:aed:2149:: with SMTP id 67mr11578949qtc.60.1626896014608;
Wed, 21 Jul 2021 12:33:34 -0700 (PDT)
X-Received: by 2002:a25:bc91:: with SMTP id e17mr47329359ybk.389.1626896014208;
Wed, 21 Jul 2021 12:33:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.niel.me!usenet.pasdenom.info!usenet-fr.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.sys.unisys
Date: Wed, 21 Jul 2021 12:33:33 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=205.196.229.2; posting-account=3mz7KgoAAADF4Uk8k4otlmJ7VMdbhJi1
NNTP-Posting-Host: 205.196.229.2
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>
Subject: Code to fetch name from mix number
From: andreanh...@gmail.com (Andrea Hardesty)
Injection-Date: Wed, 21 Jul 2021 19:33:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Andrea Hardesty - Wed, 21 Jul 2021 19:33 UTC

Does anyone know of any ALGOL / COBOL / WFL code that would fetch the job name if given the mix number? As part of a bigger project, I need the ability to submit a mix number, and have it return the object name for the task with that mix number. Has anyone done anything like this, or have any example code I could use?

Any help would be appreciated!

Re: Code to fetch name from mix number

<80f991c3-bf49-4d9a-a9e2-3333bf96f989n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=74&group=comp.sys.unisys#74

  copy link   Newsgroups: comp.sys.unisys
X-Received: by 2002:a05:6214:4102:: with SMTP id kc2mr381165qvb.44.1626967779743;
Thu, 22 Jul 2021 08:29:39 -0700 (PDT)
X-Received: by 2002:a25:7355:: with SMTP id o82mr10039ybc.471.1626967779540;
Thu, 22 Jul 2021 08:29:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.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.sys.unisys
Date: Thu, 22 Jul 2021 08:29:39 -0700 (PDT)
In-Reply-To: <56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:6080:f440:6a5:95c:b89b:65ef:f5e6;
posting-account=IriEUQoAAAAtRUf-nTSqELrRWCzMaTyO
NNTP-Posting-Host: 2603:6080:f440:6a5:95c:b89b:65ef:f5e6
References: <56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <80f991c3-bf49-4d9a-a9e2-3333bf96f989n@googlegroups.com>
Subject: Re: Code to fetch name from mix number
From: pquan10...@gmail.com (Peggy Quan)
Injection-Date: Thu, 22 Jul 2021 15:29:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Peggy Quan - Thu, 22 Jul 2021 15:29 UTC

On Wednesday, July 21, 2021 at 3:33:35 PM UTC-4, andrean...@gmail.com wrote:
> Does anyone know of any ALGOL / COBOL / WFL code that would fetch the job name if given the mix number? As part of a bigger project, I need the ability to submit a mix number, and have it return the object name for the task with that mix number. Has anyone done anything like this, or have any example code I could use?
>
> Any help would be appreciated!

Using aseries_info call would be your best bet. there are good examples in the manual (mcp interfaces)

Re: Code to fetch name from mix number

<2f15373a-b5c8-5dbe-4a93-2367f2a1830a@digm.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=75&group=comp.sys.unisys#75

  copy link   Newsgroups: comp.sys.unisys
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: paul.kim...@digm.com (Paul Kimpel)
Newsgroups: comp.sys.unisys
Subject: Re: Code to fetch name from mix number
Date: Thu, 22 Jul 2021 12:08:17 -0700
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <2f15373a-b5c8-5dbe-4a93-2367f2a1830a@digm.com>
References: <56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>
<80f991c3-bf49-4d9a-a9e2-3333bf96f989n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="9e2c31cf1d1aefaa9a726ad291ed4129";
logging-data="2340"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Kwkl9OR3oQf7O0kmjcOLFEqF2Ev16r2E="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:UPCxxKuVUViAhlELzM0snG+c5o4=
In-Reply-To: <80f991c3-bf49-4d9a-a9e2-3333bf96f989n@googlegroups.com>
Content-Language: en-US
 by: Paul Kimpel - Thu, 22 Jul 2021 19:08 UTC

On 7/22/2021 8:29 AM, Peggy Quan wrote:
> On Wednesday, July 21, 2021 at 3:33:35 PM UTC-4, andrean...@gmail.com wrote:
>> Does anyone know of any ALGOL / COBOL / WFL code that would fetch the job name if given the mix number? As part of a bigger project, I need the ability to submit a mix number, and have it return the object name for the task with that mix number. Has anyone done anything like this, or have any example code I could use?
>>
>> Any help would be appreciated!
>
> Using aseries_info call would be your best bet. there are good examples in the manual (mcp interfaces)
>

There are a few APIs you can use to do this, including ASERIES_INFO that
Peggy mentioned. None of them are trivial to use, and all of them
require Algol skills.

I've put together a simple DCALGOL library that can be called from ALGOL
or COBOL and will retrieve both the task and job names given the mix
number of the task. I've put the source code in a zip archive that you
can download from here:

https://drive.google.com/file/d/1WbHOjLRmTvO-de_gmnA1mACZw01hnMsS/view?usp=sharing

This file has the source of the library and a small test program in PWB
text file format, plus a WRAP container with the two sources as MCP files.

The library (UTIL/TASKNAMELIB) has one entry point:

INTEGER PROCEDURE GETTASKNAMES(MIXNR, TASKNAME, TASKNAMESIZE,
JOBNR, JOBNAME, JOBNAMESIZE);

TASKNAME and JOBNAME are EBCDIC ARRAYS; MIXNR, TASKNAMESIZE, JOBNR, and
JOBNAMESIZE are all integers passed by name (actually, by reference).
You pass in the mix number of a task and the routine returns the other
five values. The procedure value is 1 if an error occurred, zero
otherwise. See the comments in the source for other details.

The library uses the SYSTEMSTATUS API to retrieve mix information. This
use of SYSTEMSTATUS does not appear to require a privileged user. Note
that SYSTEMSTATUS reports information directly from MCP tables, so the
format of the data it returns can change across system releases. You may
need to verify the library's use of the data when you install a new
release, but this aspect of the API appears to have been very stable for
the past several years.

The test program is written in COBOL-85, but the library can be used
with COBOL-74 as well. The program simply retrieves the names for its
own mix number. Note that if you run this under CANDE or MARC, you'll
get non-fatal SYSTEMSTATUS error #33 when the library attempts to
retrieve the job name. The reason is that the "job" in this case is the
session, which doesn't have a name. When I ran the program, I got this
output:

MIX# 4945, JOB# 4944, TASK NAME SIZE 29, JOB NAME SIZE 14
(PAUL)CANDE/NXEDIT/CODE49122.
TASKNAME/TEST.

The first line formats the integer parameters, the second line is the
task name, and the third line is the job name.

The library is very straightforward and does nothing to protect you from
yourself. In particular, you need to take care that the arrays passed in
for task and job names are large enough, as the library does not resize
them. I'd recommend 256 characters minimum, and 300 if you have quoted
nodes in file names.

Feel free to contact me directly if you have any questions or issues
with this code.

Paul

Re: Code to fetch name from mix number

<0dcb3f3b-46ed-459f-b27b-58c5ca2a72ccn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=76&group=comp.sys.unisys#76

  copy link   Newsgroups: comp.sys.unisys
X-Received: by 2002:ac8:7645:: with SMTP id i5mr3877248qtr.133.1627046308270;
Fri, 23 Jul 2021 06:18:28 -0700 (PDT)
X-Received: by 2002:a25:244:: with SMTP id 65mr2958071ybc.297.1627046308070;
Fri, 23 Jul 2021 06:18:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.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.sys.unisys
Date: Fri, 23 Jul 2021 06:18:27 -0700 (PDT)
In-Reply-To: <2f15373a-b5c8-5dbe-4a93-2367f2a1830a@digm.com>
Injection-Info: google-groups.googlegroups.com; posting-host=205.196.229.2; posting-account=3mz7KgoAAADF4Uk8k4otlmJ7VMdbhJi1
NNTP-Posting-Host: 205.196.229.2
References: <56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>
<80f991c3-bf49-4d9a-a9e2-3333bf96f989n@googlegroups.com> <2f15373a-b5c8-5dbe-4a93-2367f2a1830a@digm.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0dcb3f3b-46ed-459f-b27b-58c5ca2a72ccn@googlegroups.com>
Subject: Re: Code to fetch name from mix number
From: andreanh...@gmail.com (Andrea Hardesty)
Injection-Date: Fri, 23 Jul 2021 13:18:28 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Andrea Hardesty - Fri, 23 Jul 2021 13:18 UTC

Thank you both so much!

Re: Code to fetch name from mix number

<6797ed43-1265-4541-9029-0478b79c2ca3n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=476&group=comp.sys.unisys#476

  copy link   Newsgroups: comp.sys.unisys
X-Received: by 2002:a05:6214:186e:b0:67a:5e43:fca2 with SMTP id eh14-20020a056214186e00b0067a5e43fca2mr55161qvb.8.1701202557608;
Tue, 28 Nov 2023 12:15:57 -0800 (PST)
X-Received: by 2002:a17:902:c944:b0:1cf:a2e7:f849 with SMTP id
i4-20020a170902c94400b001cfa2e7f849mr4039616pla.4.1701202557157; Tue, 28 Nov
2023 12:15:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.unisys
Date: Tue, 28 Nov 2023 12:15:56 -0800 (PST)
In-Reply-To: <0dcb3f3b-46ed-459f-b27b-58c5ca2a72ccn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=135.134.226.83; posting-account=2X5sXQkAAABfNgVCEPtLN8xtXW7wX23Z
NNTP-Posting-Host: 135.134.226.83
References: <56e59a0f-4527-4a7f-b353-f8c3ada58890n@googlegroups.com>
<80f991c3-bf49-4d9a-a9e2-3333bf96f989n@googlegroups.com> <2f15373a-b5c8-5dbe-4a93-2367f2a1830a@digm.com>
<0dcb3f3b-46ed-459f-b27b-58c5ca2a72ccn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6797ed43-1265-4541-9029-0478b79c2ca3n@googlegroups.com>
Subject: Re: Code to fetch name from mix number
From: dob...@gmail.com (Doug Dobson)
Injection-Date: Tue, 28 Nov 2023 20:15:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2996
 by: Doug Dobson - Tue, 28 Nov 2023 20:15 UTC

On Friday, July 23, 2021 at 8:18:28 AM UTC-5, Andrea Hardesty wrote:
> Thank you both so much!

Sorry to be a bit late to join this party but that can be easily done using the PMIX utility. For example:

U $SYSTEM/PMIX SELECT MIXNO=8394 SHOW MIXNO, USERCODE, NAME
#RUNNING 8741
#?
PMIX Version 62.080.0005 Tuesday, November 28, 2023 14:08:19
MixNo Usercode Name
8394 SURE (SURE)OBJECT/RIS/API/FTP ON SYSPACK
#ET=0.0 PT=0.0 IO=0.0

U $SYSTEM/PMIX SELECT MIXNO=8268 SHOW MIXNO, USERCODE, NAME
#RUNNING 8740
#?
PMIX Version 62.080.0005 Tuesday, November 28, 2023 14:02:03
MixNo Usercode Name
8268 *SYSTEM/BNA/SUPPORT
#ET=0.0 PT=0.0 IO=0.0

Doug Dobson
GoldEye Software, LLC
https://www.goldeyesoftware.com/

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor