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

Viewing specific members in PDS.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Jun 22, 2010 6:10 pm
Reply with quote

Hi,

I go to 3.4 on ISPF.
Then Enter the PDS name.
Then enter M in front of the member to list the members inside the PDS.
The PDS display has around 300 members. My requirement is to restrict the display to contain members whose member names that have a character 'A' at 4th position of the member name.
or to display members whose names end with ABC.
Could you please let me know if there is a command to do this. I faintly remember our mainframe teacher doing this during training, but forgot it over the years icon_biggrin.gif

Thanks,
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Jun 22, 2010 6:18 pm
Reply with quote

In ISPF option 1 or 2, you can select member name *abc to list member names ending in ABC. %%%A* should select members with an A in the fourth character.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 22, 2010 6:18 pm
Reply with quote

PF1??? have you forgotten that, also?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Jun 22, 2010 6:37 pm
Reply with quote

Many Thanks Robert %%%A* works on option 1 and 2.


Quote:
PF1??? have you forgotten that, also?

I cannot find %%%A* option on help, if you know please let me know the options.

All I was able to find on help was,
Code:
HELP--> 1 --> 4 --> 2 --> has

                    -----------------------------------                       
                    |          EDIT and VIEW          |                       
                    |      MEMBER SELECTION LIST      |                       
                    -----------------------------------                       
                                                                             
 When you specify an ISPF library or other partitioned data set and enter a   
 pattern or blanks for member name, a member selection list is displayed.     
 You may scroll through the list via the UP and DOWN scroll commands or via   
 the LOCATE  command, and you may select one member at a time via the         
  SELECT primary command or the S line command.                               
                                                                             
 To terminate the member list, enter the END command.                         
                                                                             
                         (continued on next page)                             


No definition of "pattern" was provided on help though.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Tue Jun 22, 2010 6:52 pm
Reply with quote

Notice that at the very bottom of the screen you posted it says

(continued on next page)

By pressing Enter, that "next page" appears and looks like this
Code:
 TUTORIAL ------------ EDIT/VIEW - MEMBER SELECTION LIST -------------- TUTORIAL
 OPTION  ===>                                                                 
                                                                               
                                                                               
                                                                               
 The following topics will be presented only if selected by number:             
                                                                               
     1 - Member list - Scrolling                                               
     2 - Member list - Pattern matching                                         
     3 - Member list - S line command                                           
     4 - Member list - Statistics                                               
     5 - Member list - FILTER command                                           
     6 - Member list - FIND   command                                           
     7 - Member list - LOCATE command                                           
     8 - Member list - MLC command                                             
     9 - Member list - MLS command                                             
    10 - Member list - REFRESH command                                         
    11 - Member list - RESET command                                           
    12 - Member list - SELECT command                                           
    13 - Member list - SORT command                                             
    14 - Member list - SAVE command                                             
    15 - Member list - SRCHFOR command                                         

Selecting option 2 ( pattern matching ) you get this:
Code:
 TUTORIAL --------- MEMBER SELECTION LISTS - PATTERN MATCHING --------- TUTORIAL
 COMMAND ===>                                                                 
                                                                               
   A member name pattern allows you to specify a subset of the members in       
   a concatenation of up to four PDSs.  A pattern can be used on member         
   list entry panels and with the SELECT command.                               
                                                                               
   The simplest member name pattern does not use either of the two special     
   pattern characters: the asterisk ( * ) and the percent sign ( % ).           
   This pattern would match at most one member name (the name identical to     
   the pattern). For example, the pattern ABC matches exactly one               
   name: ABC .                                                                 
                                                                               
                            (continued on next page)                           

note the "continued on next page"
Pressing Enter again, gets this:
Code:
 TUTORIAL --- MEMBER SELECTION LISTS - PATTERN MATCHING (continued) --- TUTORIAL
 COMMAND ===>                                                                 
                                                                               
   The % character can be used to match more than one member name.  In order   
   for a member name to match the pattern, each character in the member name   
   must be the same as the character in the corresponding position in the       
   pattern.  However, the % character in the pattern is considered "the same"   
   as any character.  For example, the pattern AB%D matches names ABCD,         
   ABFD and ABZD.                                                               
                                                                               
   The * character matches more than the % character.  The % matches exactly   
   one character, no matter what it is.  The * , on the other hand, matches     
   any number of characters, no matter what they are.  For example, the         
   pattern A*B matches the names AB, ACB and AZZZZZZB.                         
                                                                               
                            (continued on next page)                           


Is there more information you need? If so, continue pressing Enter as long as it suggests that there is more.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 22, 2010 6:57 pm
Reply with quote

Thx Ronald,

you did a more delicate job of saying 'follow instructions',
than I would have.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jun 23, 2010 5:01 pm
Reply with quote

vasanthz wrote:
My requirement is to restrict the display to contain members whose member names that have a character 'A' at 4th position of the member name.
or to display members whose names end with ABC.
ISPF 3.4,
Code:
 .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
   Menu  Options  View  Utilities  Compilers  Help                             
 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
 DSLIST - Data Sets Matching xxxxx.Pds.to.search

 Command ===>                                                  Scroll ===> CSR 
                                                                               
 Command - Enter "/" to select action                  Message           Volume
 -------------------------------------------------------------------------------
 M        xxxxx.Pds.to.search(*abc)                                CLBP00
 ***************************** End of Data Set list ****************************
And hit enter.

Other similar question is left for experiment.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed Jun 23, 2010 5:17 pm
Reply with quote

Excellent! icon_biggrin.gif

Many thanks all.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jun 23, 2010 5:30 pm
Reply with quote

Good Luck ...
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 Duplicate several members of/in one l... JCL & VSAM 7
This topic is locked: you cannot edit posts or make replies. Construct new record using specific f... DFSORT/ICETOOL 6
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Select a DB2 value in a specific deci... DB2 4
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top