MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copying members from one pds to other using rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
archana
Beginner


Joined: 28 May 2007
Posts: 4
Topics: 2

PostPosted: Wed Jun 06, 2007 2:21 am    Post subject: Copying members from one pds to other using rexx Reply with quote

Hi,

Can anyone help me to copy a member of PDS to other using TSO commands
Back to top
View user's profile Send private message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Wed Jun 06, 2007 2:37 am    Post subject: Reply with quote

you can use ispf

ADDRESS ISPEXEC "LMINIT DATAID(INP) DATASET('"pdsin"') ENQ(SHR)"
ADDRESS ISPEXEC "LMOPEN DATAID(&INP)"

ADDRESS ISPEXEC "LMINIT DATAID(OP1) DATASET('"pdsout"') ENQ(SHR)"
ADDRESS ISPEXEC "LMMLIST DATAID("INP") OPTION(LIST) MEMBER(Mem)"
ADDRESS ISPEXEC "LMCOPY FROMID(&INP) FROMMEM("Mem") TODATAID(&OP1)"

ADDRESS ispexec "LMCLOSE DATAID(&OP1)"
ADDRESS ISPEXEC "LMFREE DATAID(&OP1)"

ADDRESS ISPEXEC "LMCLOSE DATAID("INP")"
ADDRESS ISPEXEC "LMFREE DATAID("INP")"

regards
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 06, 2007 2:47 am    Post subject: Reply with quote

archana,

3.x screens are utilities provided within ISPF that you can use. (PF1 for help)

There are line command that can be used on a memberlist display. (PF1 for help)

or at a command line simply enter TSO COPY help.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group