Re: Read a PDS (all members) like PS dataset

2016-06-16 Thread Edward Gould
> On Jun 15, 2016, at 1:30 AM, Bill Woodger wrote: > > Perhaps SAS calls IEBPTPCH "under the covers"? > > Don't "buy" SAS just to do this... > > - But it hurts when I do that:) Ed -- For IBM-MAIN subscribe / signoff / archiv

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Edward Gould
Peter: No sure if this is what you want but again try the CBTTAPE. There is a utility to unload a PDS to PS (with and without IEBUPDTE cards. It still works after 20+ years and it still works on PDSE’s. Ed > On Jun 14, 2016, at 12:30 PM, Peter Ten Eyck > wrote: > > Any suggestions on how to

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread CM Poncelet
Yes, I had overlooked that BLDL requires a member name. My comments were based on the following, written some 25+ years ago: PDSRENMB CSECT START CONTROL SECTION 3300 * 3400 ***

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Itschak Mugzach
n List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Clifford McNeill > Sent: Wednesday, June 15, 2016 6:49 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Read a PDS (all members) like PS dataset > > You could try to open, write, and close the PDS with the original LRECL > and BL

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Paul Gilmartin
On Wed, 15 Jun 2016 10:15:56 -0700, retired mainframer wrote: > >Create two new PDSes. One with the original DCB attributes of the broken >dataset. The second with the new DCB attributes of that dataset. > Make backups; work with copies. Will HBACKDS/HRESTORE RENAME deal with inconsistent membe

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread retired mainframer
> -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Paul Gilmartin > Sent: Wednesday, June 15, 2016 9:52 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Read a PDS (all members) like PS dataset > > On Wed, 15

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Paul Gilmartin
On Wed, 15 Jun 2016 15:39:01 +, פנינה קוניגסברג wrote: >Always interesting, I am dealing this week with an error that I hoped would >be solved by the different solutions presented here, but after trying some of >the solutions presented herein have not recovered. >Background: In preparation

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread פנינה קוניגסברג
Mainframe Discussion List on behalf of ? ? Sent: Wednesday, June 15, 2016 10:39 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Read a PDS (all members) like PS dataset Always interesting, I am dealing this week with an error that I hoped would be solved by the different solutions

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Clifford McNeill
behalf of ? ? Sent: Wednesday, June 15, 2016 10:39 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Read a PDS (all members) like PS dataset Always interesting, I am dealing this week with an error that I hoped would be solved by the different solutions presented here, but after trying some

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread פנינה קוניגסברג
s I already did to try to recover the file? . -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of CM Poncelet Sent: Wednesday, June 15, 2016 8:53 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Read a PDS (all members) like PS datase

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Tim Deller
It sounds like you just want to scan a PDS. You can do that with a program that is part of ISPF. //SCAN1 EXEC PGM=ISRSUPC,PARM='L SRCHCMP CKPACKL ANYC' //OUTDD DD SYSOUT=* //NEWDD DD DISP=SHR,DSN=SOME.SOURCE.PDS SRCHFOR 'RANGE'

Re: Read a PDS (all members) like PS dataset

2016-06-15 Thread Walt Farrell
On Tue, 14 Jun 2016 23:18:37 -0500, Paul Gilmartin wrote: >On Wed, 15 Jun 2016 04:14:04 +0100, CM Poncelet wrote: >> >>I would suggest writing some assembler code that invokes the BLDL macro >>to read the PDS directory, ... >> >Does that work? No, it doesn't. BLDL requires that you already know

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Vernooij, CP (ITOPT1) - KLM
If you have SAS, you can use PROC SOURCE to unload a PDS to a PS dataset with separators between members specifying the membername. Kees. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Peter Ten Eyck Sent: 14 June, 2016 19:31 To: IB

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread CM Poncelet
Yes it works, although I used it with the STOW macro (afterwards) to modify/update PDS directories. Use the List/Execute forms of the DCB Macro/DSECT if it is to be modified (in getmained storage). The FIND macro can then be used to locate the start of each PDS member returned by the BLDL. Fro

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Paul Gilmartin
On Wed, 15 Jun 2016 04:14:04 +0100, CM Poncelet wrote: > >I would suggest writing some assembler code that invokes the BLDL macro >to read the PDS directory, ... > Does that work? -- gil -- For IBM-MAIN subscribe / signoff / arc

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread CM Poncelet
Use IEBPTCH or IEBUPDTE. Both can process all members of a PDS - although I believe both can read/process only LRECL=80 (but you could zap them to change that). I would suggest writing some assembler code that invokes the BLDL macro to read the PDS directory, and then read/process each PDS mem

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Paul Gilmartin
On Tue, 14 Jun 2016 12:47:24 -0500, Bill Woodger wrote: >IEBPTPCH. Flattens a PDS to a sequential dataset and handily indicates where >members start/end with name. Can even update/create new output and get it back >into a PDS. > Does it deal nicely with a PDS that may contain members which are t

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Robert Prins
On 2016-06-14 17:30, Peter Ten Eyck wrote: Any suggestions on how to read though a PDS (all members) like PS dataset. Example, read via a program the trough a PDS finding every called or linked program statement without regard to PDS member name. You could try adapting

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread retired mainframer
A.EDU > Subject: Re: Read a PDS (all members) like PS dataset > > For my purposes, IEBPTPCH should work fine. Anyway to work directly with the > PDS? -- For IBM-MAIN subscribe / signoff / archive access instru

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread John McKown
On Tue, Jun 14, 2016 at 2:33 PM, Peter Ten Eyck < peter_tene...@farmfamily.com> wrote: > For my purposes, IEBPTPCH should work fine. Anyway to work directly with > the PDS? > ​Not easily. You'd need to either use BPAM, or (as I & others have done on occasion), read the directory yourself to get t

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Peter Ten Eyck
For my purposes, IEBPTPCH should work fine. Anyway to work directly with the PDS? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Farley, Peter x23353
Peter, For that kind of structural exploration/inventory of program source, IMHO unless you are totally without a software budget you are far better off using a commercial inventory product. There are quite a few, and some of them are *quite* expensive. I can personally recommend a product ca

Re: Read a PDS (all members) like PS dataset

2016-06-14 Thread Lizette Koehler
My personal favorite is a REXX using LM functions from ISPF. There is a TSO REXX list and ISPF List that can provide lots of other options To join, if you have not done so, ISPFhttps://listserv.nd.edu/cgi-bin/wa?A0=ispf-l TSO REXXhttp://www2.marist.edu/htbin/wlvindex?TSO-REXX Lize