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

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


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Jan 02, 2007 9:52 pm
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: 2358
Location: Israel

PostPosted: Wed Jan 03, 2007 12:16 am
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
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: 2358
Location: Israel

PostPosted: Wed Jan 03, 2007 3:25 am
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

Global Moderator


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

PostPosted: Wed Jan 03, 2007 3:27 am
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
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: 1208
Location: Bangalore,India

PostPosted: Wed Jan 03, 2007 10:55 am
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
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

Global Moderator


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

PostPosted: Wed Jan 03, 2007 9:50 pm
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

Moderator Emeritus


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

PostPosted: Wed Jan 03, 2007 10:28 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
Search our Forums:

Back to Top