Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to delete a member in a PDS using REXX
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3502
Location: Brussels once more ...

PostPosted: Sun Jun 22, 2008 2:46 pm    Post subject:
Reply with quote

LMCOPY / LMMOVE are good tools for this type of operation
Back to top
View user's profile Send private message
References
satishstar
Currently Banned

New User


Joined: 14 Mar 2005
Posts: 16

PostPosted: Tue Jun 24, 2008 8:24 pm    Post subject: How to delete a member in a PDS using REXX
Reply with quote

Hi Aaru,

Plz show me with an example of how to use TSO COPY .... to copy from one PDS to another....

Thx,
satish
Back to top
View user's profile Send private message
satishstar
Currently Banned

New User


Joined: 14 Mar 2005
Posts: 16

PostPosted: Tue Jun 24, 2008 8:25 pm    Post subject: How to delete a member in a PDS using REXX
Reply with quote

Plz show me with an example of how to use TSO COPY
Back to top
View user's profile Send private message
satishstar
Currently Banned

New User


Joined: 14 Mar 2005
Posts: 16

PostPosted: Tue Jun 24, 2008 8:27 pm    Post subject: How to delete a member in a PDS using REXX
Reply with quote

Hi expat

plz show me with some examples of how to use LMCOPY and LMMOVE
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3502
Location: Brussels once more ...

PostPosted: Wed Jun 25, 2008 12:59 pm    Post subject: Re: How to delete a member in a PDS using REXX
Reply with quote

satishstar wrote:
Hi expat
plz show me with some examples of how to use LMCOPY and LMMOVE

Unfortunately I do not yet have an email at my new job, so can not cut and paste an example until I can mail it to myself here, so I guess that you will have to do the same thing that I done to get this working, and that is RTFM.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 502
Location: work

PostPosted: Wed Jun 25, 2008 9:17 pm    Post subject: Reply to: How to delete a member in a PDS using REXX
Reply with quote

Please read the ISPF Services Guide for details of the LMCOPY, LMINIT and LMFREE services. LMMOVE is similar.

Code:
/* REXX */                                   
Address ISPEXEC                                               
"LMINIT DATAID(from1) DATASET(temp.load)  ENQ(SHR)"           
"LMINIT DATAID(to1)   DATASET(LOAD.LIST)  ENQ(SHR)"           
"LMCOPY FROMID("from1") FROMMEM(mymembr) TODATAID("to1") REPLACE"
"LMFREE DATAID("from1")"                                       
"LMFREE DATAID("to1")"                                         
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2