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

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


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Jul 25, 2006 10:24 am
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
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jan 15, 2009 1:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Rexx to capture output from TSO HSEND... CLIST & REXX 9
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts To capture the job from savers CLIST & REXX 4
Search our Forums:

Back to Top