Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can I copy the member from lib to lib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
kennedy_zhu

New User


Joined: 30 Nov 2007
Posts: 27
Location: China

PostPosted: Tue May 20, 2008 1:13 pm    Post subject: How can I copy the member from lib to lib
Reply with quote

I have an question=> how can I copy the member from lib to lib,

The requirment is that we know the from lib, and lib, member list as well.

There are thousand of members included in one lib.

Could we use Rexx to implement the function just as we do in the line command using 'C' ? : )
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue May 20, 2008 1:14 pm    Post subject:
Reply with quote

Yes, ISPF function LMCOPY should work fine.
Back to top
View user's profile Send private message
kennedy_zhu

New User


Joined: 30 Nov 2007
Posts: 27
Location: China

PostPosted: Wed May 21, 2008 12:14 pm    Post subject:
Reply with quote

Hi, expat:

Thanks.

However, when I try to involve the ISPF command in Rexx but failed,

return error like that =>

ISPS108

Invalid length
Parameter 'FROMID' exceeds the allowable length.

The Rexx code like that.

/* REXX */
TRACE N
DDVAR1 = ''xxxx.yy.JCL''
DDVAR2 = 'xxxx.yy.SORC'
TEST01 = 'TEMP'
ADDRESS ISPEXEC 'LMCOPY FROMID(&DDVAR1) FROMMEM(&TEST01) +
TODATAID(&DDVAR2)'

Could you please give me a hand?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed May 21, 2008 12:22 pm    Post subject: Reply to: How can I copy the member from lib to lib
Reply with quote

google or search the forum for samples

why not look also at the manuals
starting from http://www-03.ibm.com/systems/z/os/zos/bkserv/index.html#other_pubs

and choosing the release You are using
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Wed May 21, 2008 10:26 pm    Post subject: Reply to: How can I copy the member from lib to lib
Reply with quote

Hint: use LMINIT before LMCOPY
Back to top
View user's profile Send private message
kennedy_zhu

New User


Joined: 30 Nov 2007
Posts: 27
Location: China

PostPosted: Thu May 22, 2008 7:39 am    Post subject:
Reply with quote

Hi, all:

Thanks for your gently reminder. I get some sample like that =>

ADDRESS ISPEXEC
'LMINIT DATAID(INDD1) DATASET(''xxx.yyy.JCL'')'
'LMINIT DATAID(OUTDD1) DATASET(''xxx.yyy.SORC'')'
'LMCOPY FROMID('INDD1') TODATAID('OUTDD1') FROMMEM(TEMP)
TOMEM(TEMP) REPLACE PACK'
IF RC NOT = 0 THEN
SAY 'FAILED TO COPY'
/* LEAVE */
ELSE
SAY 'COPIED'
'LMFREE DATAID('INDD1')'
'LMFREE DATAID('OUTDD1')'


It works. Thanks! : )
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us