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 

Problems with LMCOPY command

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


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Feb 11, 2003 8:39 am    Post subject: Problems with LMCOPY command Reply with quote

I used the LMCOPY command to copy multiple members of a PDS into a new PDS. I have few problems with that command.

1. If the replace option is not specified and if the new PDS already has a duplicate member then the LMCOPY throws an error screen with an error code ISRLS212. I don't want this screen to be displayed. I tried to outtrap it, I also tried the NOINTERCOM in TSO PROFILE command. but of no use. Can you suggest a way by which I can stop this screen from being displayed.

2. I want to know how many members have been copied from one dataset to another when I specify any Member Pattern like 'A*'. Will any system variables be set after the LMCOPY command which will have the no. of members that have been successfully copied.

Please advise

Thanks,
Phantom
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Feb 12, 2003 1:19 am    Post subject: Reply with quote

Hi Phantom

Regrading your first problem, to suppres ISPF error messages, use the
service "ISPEXEC CONTROL ERRORS RETURN". That will cause ISPF to
return control to your dialog when an error encountered.
After that, you can trap the errors by examining the RC of LMCOPY just
after the service invoked. For you specific problem it will be something
like "IF RC = 12 THEN..."

For your second problem, AFAIK, the LMCOPY sets no system variable.
Still, you can use the following combination:-
A - Generate a stem that contains all members in your library, using
TSO LISTDS MEMBERS with TRAP before.
B - Filter the desired members using the REXX WILDCARD function. This
function can be downloaded from file 520 of the CBT TAPE site.


HTH

Ofer
________
cloudy trichomes
Back to top
View user's profile Send private message Send e-mail
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