View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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
Thanks, |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
PF1??? have you forgotten that, also? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Thx Ronald,
you did a more delicate job of saying 'follow instructions',
than I would have. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Excellent!
Many thanks all. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Good Luck ... |
|
Back to top |
|
|
|