IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copy all Po-Members in one PS-File


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 12:56 am
Reply with quote

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
View user's profile Send private message
dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Tue Mar 06, 2007 1:29 am
Reply with quote

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
View user's profile Send private message
dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Tue Mar 06, 2007 1:31 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 06, 2007 1:36 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Mar 06, 2007 1:41 am
Reply with quote

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
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 2:57 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 06, 2007 3:59 am
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 2:49 pm
Reply with quote

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
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 2:57 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Mar 06, 2007 7:29 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top