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

ISPF Command to get the Dataset name inside REXX macro


IBM Mainframe Forums -> TSO/ISPF
Post new topic   This topic is locked: you cannot edit posts or make replies.
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
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

Global Moderator


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

PostPosted: Sat Mar 06, 2010 1:54 am
Reply with quote

A search would've shown plenty of previous topics:

www.ibmmainframes.com/viewtopic.php?t=46009
www.ibmmainframes.com/viewtopic.php?t=40345
www.ibmmainframes.com/viewtopic.php?t=39398
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. 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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
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