Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copy all Po-Members in one PS-File

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Auryn

New User


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

PostPosted: Tue Mar 06, 2007 12:56 am    Post subject: Copy all Po-Members in one PS-File
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    Post subject: Re: Copy all Po-Members in one PS-File
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    Post subject:
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

Site Director


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

PostPosted: Tue Mar 06, 2007 1:36 am    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Mar 06, 2007 1:41 am    Post subject: Re: Copy all Po-Members in one PS-File
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: 44
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 2:57 am    Post subject:
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

Site Director


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

PostPosted: Tue Mar 06, 2007 3:59 am    Post subject:
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: 44
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 2:49 pm    Post subject: no success with IEBPTPCH
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: 44
Location: Lower Saxony (DE)

PostPosted: Tue Mar 06, 2007 2:57 pm    Post subject: Re: no success with IEBPTPCH
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

Moderator Team Head


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

PostPosted: Tue Mar 06, 2007 7:29 pm    Post subject: Re: Copy all Po-Members in one PS-File
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us