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
 

 

Execute a rexx program to get the current screen ID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Execute a rexx program to get the current screen ID
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

Moderator Team Head


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

PostPosted: Wed Jun 06, 2007 5:55 pm    Post subject: Re: Getting current screen id.
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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jun 12, 2007 10:39 am    Post subject:
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    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 Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


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