Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Beginner question: How to copy a DS?
I'm sorry for using this forum to post stupid beginner quesitons, but
it's somewhat difficult to find online documentation on this stuff. Especially when one isn't even sure about the terminology. My question is, if I have a Partitioned Data Set with a member, let's call it: HERC01.FOO.BAR(XYZ), and I want to make a copy of it to: HERC01.FOO.BAR(ABC), how do I do that? When using RFE to perform this copy, after entering the destination DS, I get an error message saying "Please enter TO dataset". If I try to copy the member to a different PDS, then it works. Thus, the only way I have been able to do this is to first copy from one PDS to another, and then back again. That's quite cumbersome. Regards, Elias |
On 2019-12-01 7:52 PM, Elias M?rtenson wrote:
My question is, if I have a Partitioned Data Set with a member, let'sHi Elias, If you are only interested in the actual member contents then you could follow Rob's suggestion and edit the target member and issue a COPY command to copy in the original member, and then save the result. Often when I copy an existing member to another member in the same data set, not only do I want to preserve the data within the member, but also the metadata in the member's "ISPF statistics". Whereas "normally" when copying from one PDS to another, in RFE option 3.3 you can specify the "from" data set, and then the "to" data set, and then select the members as the mood takes you, this is not so trivial when operating within a single data set. For a start, RFE does not have the same facility that IBM's ISPF has of being able to specify the member's new name in the target PDS for each selected member. So what you must do is specify the "from" data set including the member name, and also specify the "to" data set also including the (new) member name.? This works if the "from" data set and the "to" data set are the same data set or not. Whenever either the "from" data set or the "to" data set is a sequential data set and not a PDS, then simply omit the member name from that particular specification. When both source and target are PDSes and the "from" member name and the "to" member name have both been specified, then the member's userdata (which may be SSI or may be ISPF statistics or may be other data) will also be copied unchanged (whether the "from" and "to" member names are the same or not). HTH! Cheers, Greg |
You have multiple options one you can use IEBCOPY if you like to use JCL.? If you are using RFE you can use CUT and PASTE commands by typing C9999 on the line number in the member and CUT on the command line? Then in the new member you type PASTE with an A on the line number.? you can also use option 3.3 to copy members in RFE. Rahim?? ??
On Sunday, December 1, 2019, 2:52:55 AM CST, Elias M?rtenson <elias@...> wrote:
I'm sorry for using this forum to post stupid beginner quesitons, but it's somewhat difficult to find online documentation on this stuff. Especially when one isn't even sure about the terminology. My question is, if I have a Partitioned Data Set with a member, let's call it: HERC01.FOO.BAR(XYZ), and I want to make a copy of it to: HERC01.FOO.BAR(ABC), how do I do that? When using RFE to perform this copy, after entering the destination DS, I get an error message saying "Please enter TO dataset". If I try to copy the member to a different PDS, then it works. Thus, the only way I have been able to do this is to first copy from one PDS to another, and then back again. That's quite cumbersome. Regards, Elias |
In the RFE DSLIST, type e in front of HERC01.FOO.BAR to trigger edition mode on your PDS, then at the command line, type: sel abc, to create your new member, then at the command line of that one, type: copy xyz, to copy member xyz into abc. Rene FERLAND, Montreal Le?dim. 1 déc. 2019 à?03:52, Elias M?rtenson <elias@...> a écrit?: I'm sorry for using this forum to post stupid beginner quesitons, but |
On Sun, 1 Dec 2019, René Ferland wrote:
In the RFE DSLIST, type e in front of HERC01.FOO.BAR to trigger editionNice trick Rene' ;-) Peppe. |
to navigate to use esc to dismiss