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: 8657
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 Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts WRITE to VSAM giving duplicate RC picus_mf CICS 1 Fri Feb 23, 2018 2:52 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts IMS error U4038 while executing my PL... abdulrafi IMS DB/DC 2 Thu Feb 08, 2018 1:05 pm

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