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
 
ISPF Command to get the Dataset name inside REXX macro

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
bnethaji

New User


Joined: 09 Jul 2009
Posts: 1
Location: India

PostPosted: Sat Mar 06, 2010 1:40 am    Post subject: ISPF Command to get the Dataset name inside REXX macro
Reply with quote

I am creating a macro which has to use the Dataset name in which the macro will run. How to get the name of the this current dataset which is opened in ISPF that I cannot hardcode during run time inside my code.

Example: I open a Dataset say ABC.XYZ.LMN. i have to run my macro to find a string inside this dataset. Is there a way I can get this dataset name inside my macro to use it for further use. Say I need to open a another dataset inside this macro ( ABC.XYZ.LMN.NAME ) which is a sub group of ABC.XYZ.LMN and i have to find the same string.

If I get the current dataset name in which my macro will run. I can form the other dataset name by simply concatnating it with just the last qualifier '.NAME'

Is there a ISPF command that can be used to do this step?
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Sat Mar 06, 2010 1:54 am    Post subject: Reply to: ISPF Command to get the Dataset name inside REXX m
Reply with quote

A search would've shown plenty of previous topics:

http://www.ibmmainframes.com/viewtopic.php?t=46009
http://www.ibmmainframes.com/viewtopic.php?t=40345
http://www.ibmmainframes.com/viewtopic.php?t=39398
http://www.ibmmainframes.com/viewtopic.php?t=38639
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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 exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm

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