Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to open a PDS EDIT/Browse/VIew mode
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7997
Location: 221 B Baker St

PostPosted: Tue Jun 17, 2008 3:14 am    Post subject:
Reply with quote

Hello,

Quote:
Try ISPF option 11 - the 'ISPF workplace'.
Might this be some add-on product?
Back to top
View user's profile Send private message
References
PostPosted: Tue Jun 17, 2008 3:14 am    Post subject: Re: Reply with quote

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 399
Location: work

PostPosted: Tue Jun 17, 2008 6:24 am    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

Surprise! You thought you knew everything about ISPF and then you find there is a whole other option! It has been there for several releases.

The ISPF Workplace is documented in ISPF User's Guide, vol 2.

If your ISPF panel does not have it, try ISPFWORK in the command line or make your own:
Code:
/*rexx */
Addres ISPEXEC  "SELECT PGM(ISRUDA) PARM(ISRWORK) SCRNAME(WORK)"
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7997
Location: 221 B Baker St

PostPosted: Tue Jun 17, 2008 7:55 am    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

Hello Pedro,

Quote:
You thought you knew everything about ISPF
Not really, i use it fairly often, but am no expert.
Quote:
and then you find there is a whole other option!
Seems like our system support people left it off the menu. ISPFWORK brings it up, though.

Something new to look into, thanks icon_smile.gif

d
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 85
Location: London

PostPosted: Fri Sep 19, 2008 3:32 pm    Post subject:
Reply with quote

hi Pedro.. sorry, continuing in the old topic...

is there a way we can invoke a macro after MEMLIST, e.g. to sort the list with userid... etc...
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 399
Location: work

PostPosted: Sat Sep 20, 2008 1:26 am    Post subject: Reply to: How to open a PDS EDIT/Browse/VIew mode
Reply with quote

Not really a macro, but with some trickery, you can issue one sort command.

Novices, please avert your eyes.

1. rexx program. Notice the 'mysort' variable. and the use of CONTROL service, and also the use of a customized panel.
Code:

/*REXX*/                                                           
DSN = 'PEDRO.JCL.CNTL'                                             
Mem = 'ADR*'                                                       
Address ISPEXEC                                                   
"LMINIT  DATAID(DID) DATASET('"DSN"') ENQ(SHRW)"                   
"LMOPEN  DATAID("did")"                                           
mysort = 'SORT CREATED'                                           
"CONTROL NONDISPL ENTER"                                           
"MEMLIST DATAID("did") CONFIRM(YES)  MEMBER("Mem") PANEL(PSVUDSM)"
"LMFREE  DATAID("did")"                                           


2. a customized panel, based on ISRUDSM panel of ISPF.
add as first part of )init section, set the zcmd variable:
Code:
)INIT                 
IF (&MYSORT NE &Z)     
  &ZCMD = &MYSORT     

and add as last line of )PROC, blank out the variable
Code:
&MYSORT =  &Z   


So this is what happens:
* member list is displayed (not really) with your sort command at top
* because of previous CONTROL NONDISPL ENTER command, the sort is processed before you see the member list.
* when you finally see the list, your sort command has been processed.
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 85
Location: London

PostPosted: Sat Sep 20, 2008 1:52 pm    Post subject:
Reply with quote

great! thanks.. icon_smile.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2