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
 

 

How to capture the Present PDS name and member name??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Jul 25, 2006 9:45 am    Post subject: How to capture the Present PDS name and member name??
Reply with quote

Hi,

I Opened a member in the PDS.

Using REXX, is there a way to capture the name of the PDS and the Member currently opened in a varible ??


Thanks,
~Vamsi
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: Tue Jul 25, 2006 10:24 am    Post subject: Re: How to capture the Present PDS name and member name??
Reply with quote

Use a couple of ISPF EDIT Macro statements:

/* REXX */
"ISREDIT MACRO"
"ISREDIT currdsn = DATASET"
"ISREDIT currmem = MEMBER"
Say "'"currdsn"("currmem")'"
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Jul 25, 2006 10:49 am    Post subject: Re: How to capture the Present PDS name and member name??
Reply with quote

Hi,

Thanks superk.

it z working.

~Vamsi
Back to top
View user's profile Send private message
gauravgupta01

New User


Joined: 29 Nov 2007
Posts: 10
Location: Delhi

PostPosted: Thu Jan 15, 2009 1:39 pm    Post subject:
Reply with quote

Hi SuperK,

Could you please help me out.....I tried to run the above code you have given and I am facing the below error...

Code:


IKJ56500I COMMAND CURRDSN NOT FOUND
***



and then...

Code:


ISPF Edit Macro Error                               
Command ===>                                                                   
                                                                               
******************************************************************************
*                                                                            *
* Command in error . : %CURRDSN                                              *
*                                                                            *
* Command not found                                                          *
* "CURRDSN" is not an edit command or macro.                                 *
*                                                                            *
*   Error message ID . : ISRE453                                             *
*                                                                            *
*   Last return code . :   20   *
*                                                                            *
*   Macro executing  . : CURRDSN                                             *
*                                                                            *
* Press ENTER key to terminate the macro.                                    *
*                                                                            *
*                                                                            *
*                                                                            *
******************************************************************************



Please tell me what is going wrong....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 15, 2009 1:50 pm    Post subject:
Reply with quote

The code needs to be in a library which is concatenated in either SYSEXEC or SYSPROC
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
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 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