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
 

 

Write code which would open the PS

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

New User


Joined: 13 Jan 2009
Posts: 36
Location: India

PostPosted: Wed May 06, 2009 11:37 am    Post subject: Write code which would open the PS
Reply with quote

HI,

I HAVE CODED A PANEL IN ISPF WHICH IS AS BELOW:

Code:

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
------------------------------ LOC CALCULATOR-----------------------
COMMAND ===>                                                                   
                                                                               
                                                                               
                    ============INPUT SECTION=====                     
                                                                               
 ENTER PDS NAME  ==> CAM.SCM.CLIB                                             
                                                                               
 ENTER OUTPUT REPORT LOCATION  ==> NUAGS92.PDS.LISTA
                                                                               
                                                                               
                    ===========OUTPUT SECTION============   
                                                                               
 TOTAL NUMBER OF PROGRAMS IN PDS:  36                                         
                                                                               
 TOTAL NUMBER OF LOC IN PDS:  5167                                             
                                                                               
 PLEASE NOTE:                                                                 
                                                                               
 DETAILED REPORT PRESENT AT:  NUAGS92.PDS.LISTA                 


Is it possible to write code, which would open the PS (NUAGS92.PDS.LISTA) on putting the cursor over the name and pressing some key. I guess it should be possible but please suggest a function which could help me do that.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 06, 2009 12:15 pm    Post subject:
Reply with quote

Here's an ISPF edit macro to browse the dataset that is specified on the same line as the cursor. The dataset name is located by DSN=

Don't know if you can adapt it to your needs, but good luck.
Code:

/* REXX *** BROWSE DATASET DELIMITED BY DSN= ON THE CURSOR LINE      */
"ISREDIT MACRO"                                                       
"ISREDIT (CRSLINE) = "CURSOR                                           
"ISREDIT (INDATA) = LINE " CRSLINE                                     
INDATA = TRANSLATE(INDATA,' ',',=')                                   
PX = WORDPOS('DSN',INDATA)                                             
IF PX > 0                                                             
  THEN "ISPEXEC BROWSE DATASET('"WORD(INDATA,PX+1)"')"                 
Back to top
View user's profile Send private message
Akash Sharma

New User


Joined: 13 Jan 2009
Posts: 36
Location: India

PostPosted: Wed May 06, 2009 7:16 pm    Post subject: Reply to: Write code which would open the PS
Reply with quote

Thanks Expat.
The information is quite handy.
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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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