View previous topic :: View next topic
|
Author |
Message |
Akash Sharma
New User
Joined: 13 Jan 2009 Posts: 36 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Akash Sharma
New User
Joined: 13 Jan 2009 Posts: 36 Location: India
|
|
|
|
Thanks Expat.
The information is quite handy. |
|
Back to top |
|
|
|