|
View previous topic :: View next topic
|
| Author |
Message |
Auryn
New User

Joined: 11 Jan 2006 Posts: 88 Location: Lower Saxony (DE)
|
|
|
|
Hello everybody out there,
I've got a PO-Library with several members and the content of all these members should be sorted and separated.
How can I copy all these members in one sequential data set, so that I can do several other modifications with these data's?
I know, I can concatenate all members, i.e.
| Code: |
//INDATA DD DSN=MY.DATA.LIBRARY(MEMBER1),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER2),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER3),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER4),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER5),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER6),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER7),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER8),DSN=SHR
// DSN=MY.DATA.LIBRARY(MEMBER9),DSN=SHR
//OUTDATA DD DSN=MY.DATA.FLATFILE.ALL.MEMBERS,DSN=(NEW,CATLG,DELETE) |
But this task is recurring and next time the data set will have a different name and especially a different number of members.
So I'm looking for a general solution, something like DSN=MY.DATA.LIBRARY(*);-)
Is it possible to do something like this with IEBCOPY, -GENER, SORT, PDSFAST or something else?
Thank you all for your help |
|
| Back to top |
|
 |
dineshness
New User
Joined: 25 Dec 2006 Posts: 63 Location: Perambalur
|
|
|
|
You can make use of either IEBCOPY to unload all or part of the PDS member into a sequential file.
Please refer to the Utilities manual from this site for the exact syntax.
Dinesh. |
|
| Back to top |
|
 |
dineshness
New User
Joined: 25 Dec 2006 Posts: 63 Location: Perambalur
|
|
|
|
| Quote: |
| You can make use of either IEBCOPY to unload all or part of the PDS member into a sequential file. |
Sorry..."Either" is a typo.
Dinesh. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Once you get all of the member data "sorted and separated" into the PS dataset, what kind of modifications do you need to make? Once the modifications are made, what becomes of the PS and/or original members?
Depending on your requirement there are ways to "change" values across members while they are still in the PDS.
Tell us a bit more of what you need to do and we may be able to offer some alternatives. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
And, as has been mentioned many times before, the utility IEBPTPCH can be used to "punch" a PDS to a sequential dataset, and the TSO command PRINTDS is also capable of doing the same task.
Personally, I think it's usually easier to programatically make changes to individual members on a one-member-at-a-time basis. |
|
| Back to top |
|
 |
Auryn
New User

Joined: 11 Jan 2006 Posts: 88 Location: Lower Saxony (DE)
|
|
|
|
| dick scherrer wrote: |
Hello,
Once you get all of the member data "sorted and separated" into the PS data set, what kind of modifications do you need to make? Once the modifications are made, what becomes of the PS and/or original members?
Depending on your requirement there are ways to "change" values across members while they are still in the PDS.
Tell us a bit more of what you need to do and we may be able to offer some alternatives. |
Hi Dick,
first I have to say that this time there are round about 150 member (with different names), next time it might be 50, 100 or what ever. And next time it'll be completely different members. Those from this time won't occur again.
All of these members contain round about 30 records of three record-types.
What I want to do is to separate these record-types in three files (with an own utility), convert some characters in upper cases and sort'em.
But I gonna try the hint with IEBPTPCH tomorrow... |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Auryn,
IEBPTPCH will get them into a single QSAM file. As the records don't need to go back into pds members, it sounds like you're good to go.
Good luck and let us know if we can do anything  |
|
| Back to top |
|
 |
Auryn
New User

Joined: 11 Jan 2006 Posts: 88 Location: Lower Saxony (DE)
|
|
|
|
Sorry, but I was not successfull with IEBPTPCH.
Maybe I gave you not enough informations.
As I said, there are a lots of members in my source Library. And it's a PDSE-Library, not an ordinary PDS.
It's defined as VB-9999 (Blocksize 27998). And the sequential destination data set shall have the same DCB.
IEBPTPCH converts to 80 chars per line - and cuts the first character!
Is it so difficult to copy all lines of all members of one PDS in one sequential data set without any conversion? |
|
| Back to top |
|
 |
Auryn
New User

Joined: 11 Jan 2006 Posts: 88 Location: Lower Saxony (DE)
|
|
|
|
| Auryn wrote: |
| Is it so difficult to copy all lines of all members of one PDS in one sequential data set without any conversion? |
- and any reformattings...[/b] |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| No, it's not difficult, but you do need to write your own application, unless, of course, you already have some third-party tool(s) that can handle this. |
|
| Back to top |
|
 |
|
|