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
 

 

How to write the name of the member of a PDS to PS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
arunshankar

New User


Joined: 22 Aug 2006
Posts: 5

PostPosted: Tue Jan 02, 2007 9:43 pm    Post subject: How to write the name of the member of a PDS to PS
Reply with quote

Hi,

Is there is anyways to write the name of the member of a PDS to PS.

For ex, let WORK.EXAMPLE.LIB be a PDS consisting of 100 members.
My query is to write all the members name in to a PS.

thx,
Arun..
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 Jan 02, 2007 9:52 pm    Post subject: Re: PDS members to Flat file
Reply with quote

In TSO, there's the LISTDS command:

TSO LISTDS 'WORK.EXAMPLE.LIB' MEMBERS

In ISPF, Using the Library Management (LM) Services, the LMMLIST service will create a member list.

Of course, you can always use the PX (PRINT INDEX) command when viewing the PDS in ISPF OPTION 3.4 (DSLIST).
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jan 03, 2007 12:16 am    Post subject:
Reply with quote

You can also use the SAVE command from within 3.4

O.
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Wed Jan 03, 2007 2:39 am    Post subject:
Reply with quote

Hi,

PX is not working in my system. May be I dont know how to use it. Could you elaborate on it?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jan 03, 2007 3:25 am    Post subject:
Reply with quote

PX is part of ISPF, and is well documented in the fine manual.

O.
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: Wed Jan 03, 2007 3:27 am    Post subject: Re: PDS members to Flat file
Reply with quote

Also, according to the ISPF User's Guide, PX in DSLIST (ISPF 3.4) is the same function as X in Library (ISPF 3.1).
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Wed Jan 03, 2007 9:53 am    Post subject:
Reply with quote

When I put PX againt the dataset , it says "Index Printed". Where can I see the details?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Jan 03, 2007 10:55 am    Post subject:
Reply with quote

Hi Selvamani,

After giving PX it will show you


Code:
  WORK.EXAMPLE.LIB       Index Printed


press f3 it will show you

Code:
Command ===>                                                           
                                                                       
List Data Set (TBH2.SPF4.LIST) Disposition:                             
Process Option . . . .    1. Print data set and delete                 
                          2. Delete data set without printing           
                          3. Keep data set - Same                       
                             (allocate same data set in next session)   
                          4. Keep data set - New                       
                             (allocate new data set in next session)   
Batch SYSOUT class . . B                                               
Local printer ID or                                                     
writer-name  . . . . .                                                 
Local SYSOUT class . .         


select 1 it will give you datset name that contain the details in this case it is TBH2.SPF4.LIST.


Hope it will helpful
Back to top
View user's profile Send private message
arunshankar

New User


Joined: 22 Aug 2006
Posts: 5

PostPosted: Wed Jan 03, 2007 9:35 pm    Post subject:
Reply with quote

hi all,


still i could not able to write the name of the members in to a PS.

After giving PX (Index printed), though i pressed f3 i was not able to the
see the screen which u have pasted.

Is ther is any another way???

thanks,
arun.
-----------
the glorry of victory is not in never fallin but raising everytime we fall..
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: Wed Jan 03, 2007 9:50 pm    Post subject: Re: PDS members to Flat file
Reply with quote

I'm not sure why you're having a problem doing a simple task that most ISPF users do day-in and day-out.

On top of the LISTDS TSO command already mentioned, you can also try using the PRINTDS TSO command:

Code:

TSO PRINTDS DATASET('THE.PDS') TODATASET('THE.PDS.DIR') DIRECTORY
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: Wed Jan 03, 2007 10:28 pm    Post subject:
Reply with quote

Hello,

To use this, i'd recommend going to TSO =6 (command). There is more room to type - many places have long dataset names.
Back to top
View user's profile Send private message
arunshankar

New User


Joined: 22 Aug 2006
Posts: 5

PostPosted: Wed Jan 03, 2007 11:05 pm    Post subject:
Reply with quote

thx everyone... cracked solved out..
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jan 05, 2007 7:08 am    Post subject:
Reply with quote

I haven't done this one in a while, but I think it goes like this (just chime in if I get it wrong):

Display the members you want via 3.4

In the cmd line enter: SAVE my100 (use any 1 to 8 char name)

A dataset containing the contents of the ISPF display screen is created w/the name "yrtsoid.my100.member" (or members?)

You can do the same thing with a 3.4 dataset list except the last node of the DSN is .dataset
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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