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: 4648
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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