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

Copy a DS Member to multiple users at one time


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

New User


Joined: 30 Jun 2021
Posts: 4
Location: United States

PostPosted: Tue Aug 24, 2021 2:10 am
Reply with quote

Hello,

Is there a way to copy a DS Member to multiple users at one time?

Thanks
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Tue Aug 24, 2021 2:51 am
Reply with quote

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
View user's profile Send private message
DonnaClark

New User


Joined: 30 Jun 2021
Posts: 4
Location: United States

PostPosted: Tue Aug 24, 2021 3:03 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Tue Aug 24, 2021 4:08 am
Reply with quote

See what Rohit has posted and adapt it to your needs.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Aug 24, 2021 6:27 am
Reply with quote

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
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 57
Location: Australia

PostPosted: Tue Aug 24, 2021 8:51 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Tue Aug 24, 2021 10:01 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Aug 24, 2021 12:39 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Aug 24, 2021 2:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top