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

Identify currently open PDS in macro


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lohithegde

New User


Joined: 18 May 2008
Posts: 31
Location: Chennai

PostPosted: Sat May 31, 2008 5:27 pm
Reply with quote

I've used the following code to get the CURRENT PDS name, but it's not working:

Code:
 
/* rexx */
"ISREDIT MACRO"       
"ISREDIT (OPENPD1) = DATAID"
SAY OPENPD1


But it is not displaying the current PDS name. ISR00024 is what is is displaying. I want to use it for further processing.
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 May 31, 2008 6:10 pm
Reply with quote

Quote:

The DATAID assignment statement retrieves the data ID for the data set currently being edited and places it in a variable.

The data ID is created by the LMINIT service to identify a data set.

If you begin an edit session with a data ID, the data ID is returned when you issue this command. If you begin an edit session without a data ID, then an LMINIT service obtains a data ID and returns it. On return from a top-level macro, the editor releases any data ID it has obtained.


I don't see where you've used the LMINIT service in your code, so I don't think you chose the right command.

I think you want DATASET:

"ISREDIT (OPENPD1) = DATASET"
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 31
Location: Chennai

PostPosted: Mon Jun 02, 2008 9:31 am
Reply with quote

Hi thanks..it solved my problem
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Identify and write records containing... SYNCSORT 11
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts MF professionals open positions Mainframe Jobs 0
No new posts SDUMPX macro fails to dump requested ... PL/I & Assembler 6
No new posts Access to macro definitions PL/I & Assembler 4
Search our Forums:


Back to Top