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
 

 

Get DD name of dataset which am inside into a Variable

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

New User


Joined: 28 Oct 2014
Posts: 37
Location: India

PostPosted: Wed Dec 10, 2014 6:55 am    Post subject: Get DD name of dataset which am inside into a Variable
Reply with quote

Hi All,

I am trying to copy a dataset contents from a PDS member to a PS file.

I usually use "REPL .zf .zl" command, for some reason its not working.

Could you please assist me in achieving below.

EDIT @PLIN96.TRACE.TOOL(V) - 01.02
Command ===>
****** ***************************** Top of Data ********
000001 /*****************REXX*******************/

So now I want to read this DD name into a variable then copy the member to my PS file.

Help me in how to get the DD name of dataset which am inside. Can I copy while inside, should not face "dataset in use".

Thanks,
Basha
Back to top
View user's profile Send private message

steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 508
Location: The Universe

PostPosted: Wed Dec 10, 2014 7:23 am    Post subject: Re: Get DD name of dataset which am inside into a Variable
Reply with quote

Khadhar Basha wrote:
... Help me in how to get the DD name of dataset which am inside. Can I copy while inside, should not face "dataset in use". ...
There are two potential meanings for "data set in use."
  • The data set is allocated to another user. You are stuck until the other user releases the data set.
  • You (or perhaps another user) are already editing the data set or member using ISPF edit. You are stuck until you (or the other user) gets out of edit. Knowing the dd name ISPF is using (assuming you are the user already editing the data set) will not help you; this control is inside ISPF edit and is independent of the data set allocation.
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: Wed Dec 10, 2014 2:57 pm    Post subject:
Reply with quote

You will need to write an ISPF edit macro to determine the dataset and member which you are currently editing.

I have seen examples on the forum in the past
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1009
Location: Oostende, Belgium

PostPosted: Wed Dec 10, 2014 3:14 pm    Post subject:
Reply with quote

Code:
"isredit (MEM) = member"
"isredit (DSN) = dataset"
"isredit (DATA) = dataid"
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 To find out size allocated to a seque... ashek15 JCL & VSAM 11 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


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