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

Multiple LMCOPY resulting incorrect copy


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
k.junaid83

New User


Joined: 19 Apr 2006
Posts: 22
Location: bangalore

PostPosted: Tue Sep 02, 2014 7:22 pm
Reply with quote

Hello All,


In one of my REXX EXEC I am doing a series to LMCOPY from different input files to different members of a same PDS, however after the copy I am observing that the 2nd member has some text of 1st member created from the first LMCOPY command appended at the end.
I am also doing a LMFREE still the data on the members followed by 1st member keeps appending at the end.
I beileve the 1st member copied has the largest number of lines and during the 2nd LMCOPY some of the extra lines still exist in the clipboard.

"LMCOPY FROMID("INID1") TODATAID("OUTID") TOMEM("R2RJRS11") REPLACE"
"LMFREE DATAID("INID1")"
"LMCOPY FROMID("INID2") TODATAID("OUTID") TOMEM("R2RJRS12") REPLACE"
"LMFREE DATAID("INID2")"
"LMCOPY FROMID("INID3") TODATAID("OUTID") TOMEM("R2RJRS13") REPLACE"
"LMFREE DATAID("INID3")"

Is there a way we can refresh the clipboard before we proceed with the next LMCOPY operation?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Tue Sep 02, 2014 8:16 pm
Reply with quote

There is no clipboard used in LMCOPY operations!
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 -> CLIST & REXX

 


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 Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top