View previous topic :: View next topic
|
Author |
Message |
swami_entc
New User
Joined: 07 Jun 2007 Posts: 3 Location: Mumbai
|
|
|
|
I have 10 members in a PDS, I want to merge all the 10 members and create a single member in the same PDS. Is there any Utility to do this? |
|
Back to top |
|
|
saiprasadh
Active User
Joined: 20 Sep 2006 Posts: 154 Location: US
|
|
|
|
Hi,
You can do that using Rexx.
Thanks
Sai |
|
Back to top |
|
|
swami_entc
New User
Joined: 07 Jun 2007 Posts: 3 Location: Mumbai
|
|
|
|
saiprasadh wrote: |
Hi,
You can do that using Rexx.
Thanks
Sai |
I am not familiar to REXX.
Can we do it using JCL? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You could:
1. Use IEBGENER/DFSORT/ICETOOL to copy each of the 10 members into one single sequential dataset (DISP=MOD, of course), and then copy that dataset into the one member.
2. You could use IEBPTPCH to "PUNCH" the PDS into a single sequential dataset, clean up the output with DFSORT, and then use IEBUPDTE to create the new member.
3. You could do this programatically as mentioned above, using REXX, or using ISPF Library Management (LM) services in any program.
4. I'll bet its doable using SAS.
5. Or, just use EDIT. |
|
Back to top |
|
|
swami_entc
New User
Joined: 07 Jun 2007 Posts: 3 Location: Mumbai
|
|
|
|
superk wrote: |
You could:
1. Use IEBGENER/DFSORT/ICETOOL to copy each of the 10 members into one single sequential dataset (DISP=MOD, of course), and then copy that dataset into the one member.
2. You could use IEBPTPCH to "PUNCH" the PDS into a single sequential dataset, clean up the output with DFSORT, and then use IEBUPDTE to create the new member.
3. You could do this programatically as mentioned above, using REXX, or using ISPF Library Management (LM) services in any program.
4. I'll bet its doable using SAS.
5. Or, just use EDIT. |
Hi,
1. If we use IEBGENER we have to give PDS name and its member name,
I have to merge all the members of that PDS into a single member so is
it possible by giving a PDS name only?
2. Can we avoid use of sequential dataset? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
swami_entc wrote: |
1. If we use IEBGENER we have to give PDS name and its member name, I have to merge all the members of that PDS into a single member so is it possible by giving a PDS name only?
|
No, not that I can see.
swami_entc wrote: |
2. Can we avoid use of sequential dataset?
|
Yes. I thought there might be an issue with contention, but it looks like the input and output can be to the same PDS with DISP=SHR. |
|
Back to top |
|
|
|