Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us