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

Utility program to copy memebers of PDS to flat file.


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

New User


Joined: 27 Sep 2010
Posts: 3
Location: Bangalore

PostPosted: Tue Apr 19, 2011 10:12 pm
Reply with quote

Hi,

Is there any utility program to copy members of a PDS to a flat file?
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 Apr 19, 2011 10:14 pm
Reply with quote

IEBPTPCH.
Back to top
View user's profile Send private message
vivekkishan

New User


Joined: 27 Sep 2010
Posts: 3
Location: Bangalore

PostPosted: Tue Apr 19, 2011 10:17 pm
Reply with quote

Could you please provide sample JCL
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 Apr 19, 2011 10:27 pm
Reply with quote

I could, but there's plenty of examples in the linked document, as well as right here in these forums:

www.ibmmainframes.com/viewtopic.php?t=9831
www.ibmmainframes.com/viewtopic.php?t=10082
www.ibmmainframes.com/viewtopic.php?t=20083
www.ibmmainframes.com/viewtopic.php?t=31853
www.ibmmainframes.com/viewtopic.php?t=35597
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 20, 2011 12:51 pm
Reply with quote

What do you want to use this flat file for, backup or reference.
Back to top
View user's profile Send private message
vivekkishan

New User


Joined: 27 Sep 2010
Posts: 3
Location: Bangalore

PostPosted: Thu Apr 21, 2011 5:49 pm
Reply with quote

Hi,

I just need the member names to be copied to the flat file. IEBPTPCH is copying the member names along with the contents in it. I guess a small change in sysin parameter will do the job. Please let me know if anyother utility is available.
This can be done in REXX. But I am keeping it as a final option.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 21, 2011 6:03 pm
Reply with quote

Quote:
Is there any utility program to copy members of a PDS to a flat file?
is very different than
Quote:
I just need the member names to be copied to the flat file.
If you cannot explain in a simple English declarative sentence what it is you are wanting to do, how do you expect us to read your mind and figure out what you really want?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Apr 21, 2011 6:07 pm
Reply with quote

vivekkishan wrote:
IEBPTPCH is copying the member names along with the contents in it. I guess a small change in sysin parameter will do the job.


True, it will.

vivekkishan wrote:
This can be done in REXX.


How?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Apr 21, 2011 7:11 pm
Reply with quote

superk wrote:
vivekkishan wrote:
This can be done in REXX.


How?

By reading the PDS directory as if it were DCB=(DSORG=PS,RECFM=FB,LRECL=256); I have a Rexx script that does just that (I got a lot of the code from Doug Nadel). I beg leave to doubt if that is within the TS's abilities, however.

(He may be miscalling ISPF services invoked via the ADDRESS statement "Rexx". I question if that is within his abilities either, though.)
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 22, 2011 2:36 pm
Reply with quote

But of course there are several examples of getting all of the PDS member names using either REXX or LM services on this very forum.

Maybe the SEARCH button has gone wonky again icon_rolleyes.gif
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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 Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top