View previous topic :: View next topic
|
Author |
Message |
Khadhar Basha
New User
Joined: 28 Oct 2014 Posts: 44 Location: India
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Code: |
"isredit (MEM) = member"
"isredit (DSN) = dataset"
"isredit (DATA) = dataid" |
|
|
Back to top |
|
|
|