Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Paul Gilmartin
Specify LRECL On Thu, 6 Sep 2012 06:28:42 -0700, Charles Mills wrote: >I want to make a PS (flat file) copy of the series of 256-byte blocks of a >PDS directory. (I want to copy the data to another platform so I can test >some code with it more readily.) > >I tried > >//GENEREXEC PGM=IEBGENER

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Lizette Koehler
Charles, If I recall when writing an Assembler Program for a STOW macro there were some pointers on how to dump a PDS Directory. And I think there may be information in the ISPF Manuals as well. Though I think you are better served by doing this with an assembler program. Also, remember IBM can

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Scott Ford
Charles, You can create the file using IEFBR14 ...haven't tried to copy a directory to it ... Scott ford www.identityforge.com On Sep 6, 2012, at 9:28 AM, Charles Mills wrote: > I want to make a PS (flat file) copy of the series of 256-byte blocks of a > PDS directory. (I want to copy the dat

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread John Gilmore
Lizette's point that IBM can change the information in a PDS directory without notice is of course generically correct That conceded, such changes have been infrequent for many years; and the functional stabilization of PDS support that came about with the introduction of PDSEs makes further such

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Bill Fairchild
Assuming you have the authority to do so, superzap the F1 DSCB for your source PDS so that its DSORG is PS instead of PO. Then do your IEBGENER. Then zap the F1 back to PO. It might work. I have never tried this myself. Bill Fairchild Programmer Rocket Software 408 Chamberlain Park Lane * Fr

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread John P Kalinich
There are also software vendors that can change the information in a PDS directory without notice. PDSMAN and Endevor come to mind. Regards, John K John Gilmore of the IBM Mainframe Discussion List wrote on 09/06/2012 08:56:31 AM: > Lizette's point that IBM can change the information in a PDS

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Webster, Chris
This should work for you. //GENEREXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=MY.CLIST,DISP=SHR,RECFM=FB,DSORG=PS, // LRECL=256,BLKSIZE=256 //SYSUT2 DD DISP=SHR,DSN=MY.CLIST.DIR,

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread John Gilmore
The content of a PDS directory can of course change. How not? My points were two: 1) that it has been a very long time since changes in a mapping DSECT for a PDS directory block were required, and 2) that such changes are now highly unlikely. (Neither PDSMAN nor Endevor makes use of new or re

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Paul Gilmartin
On Thu, 6 Sep 2012 14:14:43 +, Bill Fairchild wrote: >Assuming you have the authority to do so, superzap the F1 DSCB for your source >PDS so that its DSORG is PS instead of PO. Then do your IEBGENER. Then zap >the F1 back to PO. It might work. I have never tried this myself. > Perhaps y

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Kirk Wolf
I'm certain that you can read a PDS directory by specifying a DD with DSORG=PS,RECFM=F,LRECL=256,BLKSIZE=256. But don't PDS directory blocks have keys on disk? IEBGENER won't copy those - your target dataset will be regular DSORG=PS. Kirk Wolf Dovetailed Technologies http://dovetail.com +1 636.

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Lizette Koehler
in > > To: > > Sent: Thursday, September 06, 2012 9:55 AM > > Subject: Re: Anyone know how to copy a PDS directory as a flat file? > > > > > > On Thu, 6 Sep 2012 14:14:43 +, Bill Fairchild wrote: > > > >>Assuming you have the authority to do so,

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread John Gilmore
Chris Webster's JCL will do the job, and I like its restraint. The input BLKSIZE= is necessary and is specified. An output BLKSIZE= is inappropriate and is not specified. Moreover, while I have never myself encountered a PDS directory that filled even five 3390 crypto-cylinders, reference to the

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Tony's office PC
rv.ibm-main > To: > Sent: Thursday, September 06, 2012 9:55 AM > Subject: Re: Anyone know how to copy a PDS directory as a flat file? > > > On Thu, 6 Sep 2012 14:14:43 +, Bill Fairchild wrote: > >>Assuming you have the authority to do so, superzap the F1 DSCB for >&g

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread John Gilmore
>> > - Original Message - >> > From: "Paul Gilmartin" >> > Newsgroups: bit.listserv.ibm-main >> > To: >> > Sent: Thursday, September 06, 2012 9:55 AM >> > Subject: Re: Anyone know how to copy a PDS directory as a flat file? >

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Charles Mills
nyone know how to copy a PDS directory as a flat file? Specify LRECL On Thu, 6 Sep 2012 06:28:42 -0700, Charles Mills wrote: >I want to make a PS (flat file) copy of the series of 256-byte blocks >of a PDS directory. (I want to copy the data to another platform so I >can test some cod

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Charles Mills
note that it is not GUPI. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Lizette Koehler Sent: Thursday, September 06, 2012 6:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Anyone know how to copy a PDS directory as a flat

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Charles Mills
age- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Kirk Wolf Sent: Thursday, September 06, 2012 8:05 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Anyone know how to copy a PDS directory as a flat file? I'm certain that you can read a PDS directory by specif

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Shmuel Metz (Seymour J.)
In , on 09/06/2012 at 10:05 AM, Kirk Wolf said: >But don't PDS directory blocks have keys on disk? Yes, but the OP asked for 256 bytes, suggesting that he doesn't need the keys and in fact is not prepared to deal with them. KEYLEN=8 will work if you need the full 264 bytes, but that's not no

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Shmuel Metz (Seymour J.)
In <071a01cd8c33$88e2d440$9aa87cc0$@mcn.org>, on 09/06/2012 at 06:28 AM, Charles Mills said: >Anyone know how to accomplish this, short of writing an assembler >program to do it? Write a PL/I or REXX program to read the directory. Assuming that you don't need the key, the DCB attributes sho

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Charles Mills
AIN@LISTSERV.UA.EDU Subject: Re: Anyone know how to copy a PDS directory as a flat file? In <071a01cd8c33$88e2d440$9aa87cc0$@mcn.org>, on 09/06/2012 at 06:28 AM, Charles Mills said: >Anyone know how to accomplish this, short of writing an assembler >program to do it? Write a PL/I or REXX

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Roberto Halais
gt;> > >> > >> > >> > >> > ----- Original Message ----- > >> > From: "Paul Gilmartin" > >> > Newsgroups: bit.listserv.ibm-main > >> > To: > >> > Sent: Thursday, September 06, 2012 9:55 AM > >>

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Stocker, Herman
Not sure what it is the OP wants but the IEHLIST may be all they need. Also works for PDS/e. Regards, Herman Stocker It is impossible to make anything foolproof, because fools are so ingenious. -- Robert Heinlein -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Charles Mills
-MAIN@LISTSERV.UA.EDU Subject: Re: Anyone know how to copy a PDS directory as a flat file? Not sure what it is the OP wants but the IEHLIST may be all they need. Also works for PDS/e. Regards, Herman Stocker It is impossible to make anything foolproof, because fools are so ingenious. -- Robert Hei

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Shmuel Metz (Seymour J.)
In <07b601cd8c4a$4065bbd0$c1313370$@mcn.org>, on 09/06/2012 at 09:11 AM, Charles Mills said: >> But don't PDS directory blocks have keys on disk? >I don't *think* so. Always has, always will. From z/OS DFSMS Using Data Sets. SC26-7410-09: 3.7.2 PDS Directory PDS member entries vary in

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-06 Thread Paul Gilmartin
On Thu, 6 Sep 2012 15:30:57 -0700, Charles Mills wrote: >Nope, the below is one of the answers to the OP's question. > (The OP would be you, right?) >It also works for PDSE, believe it or not. > It says that in Using Data Sets, 3.8.11 Reading a PDSE Directory: You can read a PDSE directory s

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Charles Mills
Gilmartin Sent: Thursday, September 06, 2012 6:45 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Anyone know how to copy a PDS directory as a flat file? On Thu, 6 Sep 2012 15:30:57 -0700, Charles Mills wrote: >Nope, the below is one of the answers to the OP's question. > (The OP would be yo

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Shmuel Metz (Seymour J.)
In <07df01cd8c4d$b1408b20$13c1a160$@mcn.org>, on 09/06/2012 at 09:35 AM, Charles Mills said: >Did you read my preceding post? The one that denied the key field for PDS directory blocks? ;-) BTW, I saw a quote from an earlier message, but not the message itself, talking about reading directo

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Paul Gilmartin
On Fri, 7 Sep 2012 07:03:10 -0700, Charles Mills wrote: > >How many times has this wheel been re-invented? > >Yeah, I could use DESERV for the PDS instead of reading the directory, > Does DESERV understand UNIX directories? ISTR not. And I suspect that ISPF still relies on reading PDS(E) directo

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Bob Shannon
>And I suspect that ISPF still relies on reading PDS(E) directories as PS data >>sets rather than using DESERV I would be astounded if ISPF doesn't use standard services. Since the format of PDSEs has never been published, and since directory space can be created when needed in non-contiguous

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Charles Mills
ginal Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bob Shannon Sent: Friday, September 07, 2012 8:49 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Anyone know how to copy a PDS directory as a flat file? >And I suspect that ISPF still relies

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Shmuel Metz (Seymour J.)
In <0087439791995724.wa.paulgboulderaim@listserv.ua.edu>, on 09/07/2012 at 10:43 AM, Paul Gilmartin said: >Does DESERV understand UNIX directories? Afraid not. >Got paraphrase of "WAD". Broken as designed? -- Shmuel (Seymour J.) Metz, SysProg and JOAT Atid/2

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Paul Gilmartin
On Fri, 7 Sep 2012 15:30:25 -0400, Shmuel Metz (Seymour J.) wrote: > >>Got paraphrase of "WAD". > >Broken as designed? > Something to the effect that DDLIST was designed to use ISPF services to support ISPF functions, and ISPF has no service to scan a UNIX directory. They also mentioned that DDLI

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-07 Thread Greg Price
On 8/09/2012 1:49 AM, Bob Shannon wrote: > Since the format of PDSEs has never been published, and since directory space > can be created when needed in non-contiguous areas, I seriously doubt ISPF can read the directory as a PS data set. Well, if reading the directory with QSAM or BSAM counts,

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-09 Thread Blaicher, Christopher Y.
Re: Anyone know how to copy a PDS directory as a flat file? On Thu, 6 Sep 2012 14:14:43 +, Bill Fairchild wrote: >Assuming you have the authority to do so, superzap the F1 DSCB for your source >PDS so that its DSORG is PS instead of PO. Then do your IEBGENER. Then zap >the F1 b

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-09 Thread Robert A. Rosenberg
At 10:05 -0500 on 09/06/2012, Kirk Wolf wrote about Re: Anyone know how to copy a PDS directory as a flat file?: But don't PDS directory blocks have keys on disk? IEBGENER won't copy those - your target dataset will be regular DSORG=PS. You can ignore the existence of the keys.

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-09 Thread Robert A. Rosenberg
At 15:30 -0400 on 09/07/2012, Shmuel Metz (Seymour J.) wrote about Re: Anyone know how to copy a PDS directory as a flat file?: >Got paraphrase of "WAD". Broken as designed? That is BAD - ie: The design is wrong but the code works as the design says it should. WAD is Workin

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-10 Thread Paul Gilmartin
On Mon, 10 Sep 2012 01:03:31 -0400, Robert A. Rosenberg wrote: > >In this case it is WAD if you want to find the entries in any of the >PDS and PDS(E) Libraries in the concatenation ignoring any HFS >libraries encountered (and if the same name occurs in more than one >library, return the first one

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-10 Thread John Gilmore
Paul Gilmartin's point---that consistent values among DDLIST, DESERV, and BLDL outputs is desirable---is important. Its importance would indeed be hard to exaggerate. Moreover, the time for jibbing at mixed-case values in reporting contexts is long past. They are not, as they should be, usable e

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-10 Thread Paul Gilmartin
On Fri, 7 Sep 2012 08:19:53 -0400, Shmuel Metz (Seymour J.) wrote: > >BTW, I saw a quote from an earlier message, but not the message >itself, talking about reading directory blocks from a PDSE. For the >record, those are not the actual PDSE directory blocks[1][2] but fake >blocks made to look like

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-11 Thread Shmuel Metz (Seymour J.)
In , on 09/10/2012 at 01:03 AM, "Robert A. Rosenberg" said: >At 15:30 -0400 on 09/07/2012, Shmuel Metz (Seymour J.) wrote about >Re: Anyone know how to copy a PDS directory as a flat file?: >> >Got paraphrase of "WAD". >> >>Broken as design

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-11 Thread Shmuel Metz (Seymour J.)
In <7611388598962382.wa.paulgboulderaim@listserv.ua.edu>, on 09/10/2012 at 03:19 PM, Paul Gilmartin said: >On Fri, 7 Sep 2012 08:19:53 -0400, Shmuel Metz (Seymour J.) wrote: > >>BTW, I saw a quote from an earlier message, but not the message >>itself, talking about reading directory blocks

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-11 Thread Shmuel Metz (Seymour J.)
In <000801cd8f44$116df7a0$3449e6e0$@att.net>, on 09/10/2012 at 06:04 AM, "Kenneth J. Kripke" said: >Next will come the member NAME, ttr, C field, and, the number of >TTRN's. You will want to AND out the C field. Then multiply the >number of ttrn's by 2 to convert to bytes. >This will be yo

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-11 Thread Paul Gilmartin
On Tue, 11 Sep 2012 07:55:38 -0400, Shmuel Metz (Seymour J.) wrote: > on 09/10/2012 at 03:19 PM, Paul Gilmartin said: > >>On Fri, 7 Sep 2012 08:19:53 -0400, Shmuel Metz (Seymour J.) wrote: > >>>BTW, I saw a quote from an earlier message, but not the message >>>itself, talking about reading direct

Re: Anyone know how to copy a PDS directory as a flat file?

2012-09-12 Thread Shmuel Metz (Seymour J.)
In <4244327715204510.wa.paulgboulderaim@listserv.ua.edu>, on 09/11/2012 at 08:42 AM, Paul Gilmartin said: >You veered away from the topic of my question I was addressing different issues; whether a fake [BQ]SAM read of the directory returns actual TTR's at all, and whether it is desirable