View previous topic :: View next topic
|
Author |
Message |
DonnaClark
New User
Joined: 30 Jun 2021 Posts: 4 Location: United States
|
|
|
|
Hello,
Is there a way to copy a DS Member to multiple users at one time?
Thanks |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3075 Location: NYC,USA
|
|
|
|
Welcome!
IEBCOPY
Code: |
//*
//* COPY SELECTED MEMBERS INTO MULTIPLE PDS DATSETS
//*
//S1EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSN=CPY.TEST.SOURCE,DISP=SHR
//SYSUT2 DD DSN=CPY.TEST.OUT.PDS1,DISP=OLD,
// UNIT=SYSDA,SPACE=(CYL,(5,5))
//SYSUT3 DD DSN=CPY.TEST.OUT.PDS2,DISP=OLD,
// UNIT=SYSDA,SPACE=(CYL,(5,5))
//SYSIN DD *
COPY OUTDD=SYSUT2,INDD=SYSUT1
SELECT MEMBER=JCLTST1,JCLTST2
COPY OUTDD=SYSUT3,INDD=SYSUT1
SELECT MEMBER=JCLTST3
/*
// |
|
|
Back to top |
|
|
DonnaClark
New User
Joined: 30 Jun 2021 Posts: 4 Location: United States
|
|
|
|
I'm not sure that answers my question. I'm quite new at this.
I am doing Master the Mainframe and have a specific user ID. I have a member that I want to share with all my friends - I would love to copy it int0 all of their personal datasets at one time.
I have all of their user ID's - is this possible? |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1305 Location: Bamberg, Germany
|
|
|
|
See what Rohit has posted and adapt it to your needs. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2583 Location: Silicon Valley
|
|
|
|
Quote: |
I would love to copy it into all... |
You should consider that the security product may prevent you from updating someone else's data sets. (at least, it should)
It is more simpler if you tell your friends where the member is and let them copy it. You need to give your friends READ permission to your data set.
Yeah, I know this is for a class project but this is something to consider. |
|
Back to top |
|
|
hankoerlemans
New User
Joined: 25 Jan 2018 Posts: 61 Location: Australia
|
|
|
|
My answer : depends on what your course is trying to teach you !
For example rather than batch are you working with TSO/ISPF ?
Then TRANSMIT (friend1, friend2,friend3) DA(my.pds) MEMBER(party) is another way to "send" the member although each friend has to initiate a RECEIVE.
Then there is ISPF 3.3 with the security caveat already described. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1305 Location: Bamberg, Germany
|
|
|
|
hankoerlemans wrote: |
TRANSMIT (friend1, friend2,friend3) DA(my.pds) MEMBER(party) |
Code: |
INMX020I Nickname 'FRIEND1' was not found in any names dataset. It will be ignored. |
I suggest using a shared XMIT DSN for distribution.
Code: |
TSO XMIT N1.<your_Id> DA(<my_pds>) MEM(<member_name>) OUTDS('<shared_hlq>.COOL.XMI') |
Your friends can receive the package using:
Code: |
TSO RECEIVE INDS('<shared_hlq>.COOL.XMI') |
|
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Quote: |
I suggest using a shared XMIT DSN for distribution. |
Then you can use eventually a shared dasd and copy the member to that dasd. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10879 Location: italy
|
|
|
|
Quote: |
I am doing Master the Mainframe and have a specific user ID. I have a member that I want to share with all my friends |
did you check the "Master the Mainframe" rules about sharing data with other contestants ? |
|
Back to top |
|
|
|