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. All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
Search our Forums:


Back to Top