Re: Checking status of multiple datasets in CLIST and REXX

2024-01-05 Thread Seymour J Metz
True, but I want to distinguish between FB and VVB. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר From: IBM Mainframe Discussion List on behalf of Jon Perryman Sent: Friday, December 29,

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-31 Thread Seymour J Metz
No, my constraints are: 1. The TSOLIB must be in an environment where it works. 2. Very little in CLIST. 3. No AC(1) in assembler code 4. Live within security rules a. No access to SAMPLIB b. No use of external code unless blessed by security 5. Activation of libraries must be

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-31 Thread Binyamin Dissen
So your constraints are only CLIST and REXX and no compiled programs? Well, duplicates are allowed in concatenations. So you might be able to skip the lookup. There are ways you can remember that you already did this in a session, such as allocating IDIDIT and doing an EXECIO against it to

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Seymour J Metz
I can't put EUnix files in, e.g., ISPPLIB. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר From: IBM Mainframe Discussion List on behalf of Paul Gilmartin

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Seymour J Metz
By inline I means that it is executed in the script rather than being put on the stack. There is a documented restriction that TSOLIB only works from the READY prompt. Due to the way that IBM implemented EXEC, a CLIST called from the READY prompt can also issue a TSOLIB. From REXX you would

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Seymour J Metz
Supporting concatenatation of unlike libraries would give users more freedom with creating private libraries. However, I'm assuming that will never be supported and simply explaining why BPXWDYN doesn't address the issue. Yes, allowing a directory in a concatenation would make life easier. --

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread David Spiegel
Hi R'Shmuel AMV"SH. Gut Voch. Ich Vil Dich Freigen Ein Kasho. You said: "...TSOLIB inline. ..." What does this mean and why is it better/easier to do this in CLIST than in Rexx? Regards, David On 2023-12-29 16:13, Seymour J Metz wrote: In my case there is a CLIST effectively called from the

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Paul Gilmartin
On Sat, 30 Dec 2023 23:35:11 +, Seymour J Metz wrote: >I want to set up an environment that supports personal tools. I'd like to >allow the users to create VB libraries, ... > Access methods make UNIX files protean, reformatting them according to the allocation RECFM. Unfortunately, Binder

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Seymour J Metz
I want to set up an environment that supports personal tools. I'd like to allow the users to create VB libraries, but if there is no way to retain ALTLIB and LIBDEF across START (ISPSTRT) then I'll stick to FB and reconcatenate. Performance is not an issue because the code would only run

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Seymour J Metz
If I write an assembler service routine I'll probably have it do a lot more than that. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר From: IBM Mainframe Discussion List on behalf of Steve

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Jon Perryman
On Sat, 30 Dec 2023 19:33:34 +0200, Binyamin Dissen wrote: >On Fri, 29 Dec 2023 14:47:29 + Seymour J Metz wrote: > >:>I need to check whether any of a list of datasets exists and whether any of >a list of ddnames is allocated. I'd rather not trap and parse the output of >LISTALC and

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Steve Beaver
Call ‘ CHECK1’ ‘SYS1.MACLIB, Check1 CSECT Reg1 points to arg MVC. Locat(44), Locate CAMLIST Br 14 Rc=0. DSN exists Rv=4. DSN doesn’t exist Sent from my iPhone No one said I could type with one thumb > On Dec 30,

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-30 Thread Binyamin Dissen
On Fri, 29 Dec 2023 14:47:29 + Seymour J Metz wrote: :>I need to check whether any of a list of datasets exists and whether any of a list of ddnames is allocated. I'd rather not trap and parse the output of LISTALC and LISTCAT, and I'd rather not call LISTDSI for each one. Is there a

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 22:15:31 +, Seymour J Metz wrote: >BPXWDYN may support concatenating FB and VB, but ISPF and TSO don't. > I don't see that would be very useful. It might be more useful to concatenate a mixture of DISPs. But not concatenating DSN with PATH is a sore lack. (Again,

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
BPXWDYN may support concatenating FB and VB, but ISPF and TSO don't. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר From: IBM Mainframe Discussion List on behalf of Paul Gilmartin

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 21:13:17 +, Seymour J Metz wrote: >In my case there is a CLIST effectively called from the READY prompt, so the >TSO environment should be fully initialized. > >The reason that it's CLIST is so I can use TSOLIB inline. > TSO can CALL BPXWDYN, subject to an onerous

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
No, but neither does LISTDSI; either way I need separate tests for ddn and dsn. I may throw in the towel, make everything FB and reallocate. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
As a contractor on the applications side, I have to live with whatever policies they set, and have no leverage. It's not comfortable, but it is what it is. IAC, I would be more upset if resources that actually were critical were not adequately protected. The cases that you described were

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Radoslaw Skorupka
W dniu 29.12.2023 o 19:29, Paul Gilmartin pisze: On Fri, 29 Dec 2023 18:10:08 +, Seymour J Metz wrote: I'm in an applications role and installing external software, e.g., PDS86, is not allowed. I just discovered that I don't even have access to SYS1.SAMPLIB. !?!?!? What terrifies

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
In my case there is a CLIST effectively called from the READY prompt, so the TSO environment should be fully initialized. The reason that it's CLIST is so I can use TSOLIB inline. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Willy Jensen
SDSF has an ENQD command, which might be available via the API. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 12:15:31 -0600, Paul Gilmartin wrote: >Does that show DSNs that are ENQed but not allocated? What ENQ are you referring? QNAME SYSVSAM as opposed to SYSDSN? You would need to include those QNAMEs in your query.

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 12:35:58 -0600, Jon Perryman wrote: >QUERYENQ documents that it is "SYSTEM" enq level but datasets are "SYSTEMS". Sorry, my bad. I just saw a ZENSCOPE variable which implies bot SYSTEM and SYSTEMS are returned. STEP does not appear as a possible value.

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 18:10:08 +, Seymour J Metz wrote: >I should be able to use any BPXW... service that doesn't require dubbing. I doubt that BPXWDYN requires dubbing but Some minimal dubbing should be available because of TCP requirements.

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 18:01:19 +, Sri h Kolusu wrote: >>> Does CLIST or REXX provide an interface to ENQ? > >Via ISPF service named QUERYENQ > >https://www.ibm.com/docs/en/zos/2.5.0?topic=services-queryenqquery-system-enq-data QUERYENQ documents that it is "SYSTEM" enq level but datasets are

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 18:10:08 +, Seymour J Metz wrote: >I'm in an applications role and installing external software, e.g., PDS86, is >not allowed. > >I just discovered that I don't even have access to SYS1.SAMPLIB. > !?!?!? What terrifies them? "Need to know" gone berserk? Fear of

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 18:01:19 +, Sri h Kolusu wrote: >>> Does CLIST or REXX provide an interface to ENQ? > >Via ISPF service named QUERYENQ > >https://www.ibm.com/docs/en/zos/2.5.0?topic=services-queryenqquery-system-enq-data > Does that show DSNs that are ENQed but not allocated? Is the OP

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 11:36:38 -0600, Paul Gilmartin wrote: >On Fri, 29 Dec 2023 11:13:18 -0600, Jon Perryman wrote: >>REXX function SYSDSN( ) will determine if a dataset exists without the >>overhead of LISTDSI. >> >Does it report allocated status as the OP requested? The OP had 2 requests.

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
I'm in an applications role and installing external software, e.g., PDS86, is not allowed. I just discovered that I don't even have access to SYS1.SAMPLIB. I should be able to use any BPXW... service that doesn't require dubbing. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Sri h Kolusu
>> Does CLIST or REXX provide an interface to ENQ? Gil, Via ISPF service named QUERYENQ https://www.ibm.com/docs/en/zos/2.5.0?topic=services-queryenqquery-system-enq-data Examples : https://www.mainframesupport.dk/tips/tip1903.html http://www.naspa.net/magazine/2005/0305/T0503011.pdf

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 17:00:37 +, Sri h Kolusu wrote: >How about issuing ENQ in loop for all the datasets in the list? >Once you hit a dataset that is already allocated you can quit the search. ENQ is not appropriate for this type of problem. Dataset allocations are SYSTEMS ENQ which means

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 11:13:18 -0600, Jon Perryman wrote: >On Fri, 29 Dec 2023 09:40:33 -0600, Paul Gilmartin wrote: >>> >>How useful would BPXWDYN(INFO ,,,) be? >> > >REXX function SYSDSN( ) will determine if a

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 17:00:37 +, Sri h Kolusu wrote: I need to check whether any of a list of datasets exists and whether any of a list of ddnames is allocated. > >Shmuel, > >How about issuing ENQ in loop for all the datasets in the list? Once you hit >a dataset that is already

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Jon Perryman
On Fri, 29 Dec 2023 09:40:33 -0600, Paul Gilmartin wrote: >On Fri, 29 Dec 2023 14:47:29 +, Seymour J Metz wrote: >>I need to check whether any of a list of datasets exists and whether any of a >>list of ddnames is allocated. >> >How useful would BPXWDYN(INFO ,,,) be?

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Sri h Kolusu
>>> I need to check whether any of a list of datasets exists and whether any of >>> a list of ddnames is allocated. Shmuel, How about issuing ENQ in loop for all the datasets in the list? Once you hit a dataset that is already allocated you can quit the search. Thanks, Kolusu

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Lionel B. Dyck
Paul is spot on - and you can use BPXWDYN to concatenate as well. See examples here https://www.ibm.com/docs/en/zos/3.1.0?topic=output-examples-calling-bpxwdyn-from-rexx-program Lionel B. Dyck <>< Github: https://github.com/lbdyck “Worry more about your character than your reputation.

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Paul Gilmartin
On Fri, 29 Dec 2023 14:47:29 +, Seymour J Metz wrote: >I need to check whether any of a list of datasets exists and whether any of a >list of ddnames is allocated. I'd rather not trap and parse the output of >LISTALC and LISTCAT, and I'd rather not call LISTDSI for each one. Is there a

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Steve Beaver
If you write HLASM use a LOCATE with a CAMLIST Sent from my iPhone No one said I could type with one thumb > On Dec 29, 2023, at 09:08, kekronbekron > <02dee3fcae33-dmarc-requ...@listserv.ua.edu> wrote: > > Yup, I originally wanted to add a note saying it won't work for the second >

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread kekronbekron
Yup, I originally wanted to add a note saying it won't work for the second part. Left it out as I then thought that'll be known already. On Friday, December 29th, 2023 at 20:35, David Spiegel <0468385049d1-dmarc-requ...@listserv.ua.edu> wrote: > Hi KB, > CSI won't tell you anything about

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread David Spiegel
Hi KB, CSI won't tell you anything about ALLOCATEd DDNAMES. Regards, David On 2023-12-29 09:55, kekronbekron wrote: There's a catalog search interface (CSI), and I think there's a sample REXX for using it in SAMPLIB. On Friday, December 29th, 2023 at 20:17, Seymour J Metz wrote: I need

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Lionel B. Dyck
That works well for checking the catalog status *but* not the allocation status. For that you'll need to trap LISTALC or write your own. Lionel B. Dyck <>< Github: https://github.com/lbdyck “Worry more about your character than your reputation. Character is what you are, reputation merely

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
Of course' how did I forget that :-( Thanks. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר From: IBM Mainframe Discussion List on behalf of kekronbekron

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread kekronbekron
https://www.ibm.com/support/pages/apar/II14316 https://public.dhe.ibm.com/servers/storage/support/software/dfsms/cattools/ On Friday, December 29th, 2023 at 20:25, kekronbekron <02dee3fcae33-dmarc-requ...@listserv.ua.edu> wrote: > There's a catalog search interface (CSI), and I think

Re: Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread kekronbekron
There's a catalog search interface (CSI), and I think there's a sample REXX for using it in SAMPLIB. On Friday, December 29th, 2023 at 20:17, Seymour J Metz wrote: > I need to check whether any of a list of datasets exists and whether any of a > list of ddnames is allocated. I'd rather not

Checking status of multiple datasets in CLIST and REXX

2023-12-29 Thread Seymour J Metz
I need to check whether any of a list of datasets exists and whether any of a list of ddnames is allocated. I'd rather not trap and parse the output of LISTALC and LISTCAT, and I'd rather not call LISTDSI for each one. Is there a simple way to do that in REXX, or would it be better to write a