IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Execute a rexx program to get the current screen ID


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ashwin_mudikon

New User


Joined: 03 Apr 2007
Posts: 32
Location: Chennai

PostPosted: Wed Jun 06, 2007 5:04 pm
Reply with quote

hi,

My requirement is to execute a rexx program from the command prompt using the command

Code:
 tso rexxpgm


In that program i want to get the screen id. if the screen is ISRUDSM (member list) then i must get that pds name.


How can i do that?

Thanks,
Ashwin
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jun 06, 2007 5:55 pm
Reply with quote

The current panel name is in the ZPANELID variable.
Back to top
View user's profile Send private message
Ashwin_mudikon

New User


Joined: 03 Apr 2007
Posts: 32
Location: Chennai

PostPosted: Wed Jun 06, 2007 6:01 pm
Reply with quote

thanks... icon_smile.gif
Back to top
View user's profile Send private message
Ashwin_mudikon

New User


Joined: 03 Apr 2007
Posts: 32
Location: Chennai

PostPosted: Tue Jun 12, 2007 9:42 am
Reply with quote

Quote:
In that program i want to get the screen id. if the screen is ISRUDSM (member list) then i must get that pds name.


For my second problem (getting the current PDS name), I saw that whenever i open a pds, a new DD has been allocated. i can check that using ddlist command.

Code:
Volume   Disposition Act DDname   Data Set Name   Actions: B E V M F C I Q
LPRJ15   NEW,CATLG  >    ISP09065 U142107.SPFLOG1.LIST                   
LPRJ15   SHR,KEEP   >    ISP09098 U142107.REXX.FM                         
LPRJ15   SHR,KEEP   >    ISP09099 U142107.REXX.FM     


the dataset u142107.rexx.fm is my currently opened dataset.

I want to get that Dataset name from a rexx program. I tried using the ddlist command and trapping the output. but ddlist is not working.

is there anyother way?

Thanks,
Ashwin
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jun 12, 2007 10:39 am
Reply with quote

Try PARSE SOURCE.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top