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
 

 

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: 4648
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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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