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
 

 

Utility program to copy memebers of PDS to flat file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Utility program to copy memebers of PDS to flat file.
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

Moderator Team Head


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

PostPosted: Tue Apr 19, 2011 10:14 pm    Post subject: Reply to: Utility program to copy memebers of PDS to flat fi
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    Post subject:
Reply with quote

Could you please provide sample JCL
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 Apr 19, 2011 10:27 pm    Post subject: Reply to: Utility program to copy memebers of PDS to flat fi
Reply with quote

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

http://www.ibmmainframes.com/viewtopic.php?t=9831
http://www.ibmmainframes.com/viewtopic.php?t=10082
http://www.ibmmainframes.com/viewtopic.php?t=20083
http://www.ibmmainframes.com/viewtopic.php?t=31853
http://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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 20, 2011 12:51 pm    Post subject:
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    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Thu Apr 21, 2011 6:03 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Apr 21, 2011 6:07 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Thu Apr 21, 2011 7:11 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 22, 2011 2:36 pm    Post subject:
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    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 TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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