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 

How to copy member in batch mode?

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


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Nov 16, 2006 10:22 pm    Post subject: How to copy member in batch mode? Reply with quote

member:
RFSR01DQ
RFPA01DQ
RFPA01DP
RFDL01DR
RFSR01DR
RFPA01DS
RFPA01DD
RFSR01DS
......................

Like RF*01D* ? to another lib?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Nov 17, 2006 1:46 am    Post subject: Reply with quote

//PROG EXEC PGM=IEBCOPY,REGION=4M
//SYSPRINT DD SYSOUT=*
//INPUT1 DD DSN=your.USER.LOADLIB,DISP=SHR
//OUTPUT1 DD DSN=other.USER.LOADLIB,DISP=SHR
//SYSIN DD *
COPY INDD=INPUT1,OUTDD=OUTPUT1
SELECT MEMBER=(member)
/*
Back to top
View user's profile Send private message Visit poster's website
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Nov 17, 2006 3:03 am    Post subject: Reply with quote

warp5,

issac1029 wants only the members which have RF*01D* as the wild cards means only selected members.I guess your code will not work .Please correct me as i tried using this code for copying only members starting with letter A.
Code:

//STEP010  EXEC PGM=IEBCOPY,PARM='COPY=A*'                             
//SYSUT1   DD DSN=USERID.TEST.PDS1,DISP=SHR                           
//SYSUT2   DD DSN=USERID.TEST.PDS2,DISP=SHR                             
//SYSUT3   DD UNIT=SYSDA,SPACE=(TRK,(10,10),RLSE)                       
//SYSUT4   DD UNIT=SYSDA,SPACE=(TRK,(10,10),RLSE)                       
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  COPY     OUTDD=SYSUT2                                                   
           INDD=SYSUT1                                                     
/*                                                                     
//


The job is terminating but the members are getting copied from SYSUT1 to SYSUT2 and the error:
Code:

IEB1024E SYNTAX ERROR IN PARM FIELD OPTIONS                                     
STEP010  COPY      INDD=SYSUT1,OUTDD=SYSUT2         GENERATED STATEMENT         


IEB151I JOB HAS TERMINATED WITH ERROR(S)       
IEB147I END OF JOB - 8 WAS HIGHEST SEVERITY CODE

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
ofer71
Intermediate


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

PostPosted: Fri Nov 17, 2006 3:18 am    Post subject: Reply with quote

You can use ISPF's LMMLIST (which accepts pattern) and LMCOPY.

O.
________
buy herbalaire


Last edited by ofer71 on Sat Feb 05, 2011 11:54 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Nov 17, 2006 3:57 am    Post subject: Reply with quote

Offer,

Can we not do it through IEBCOPY Batch ? Can you post how to go use
"ISPF's LMMLIST (which accepts pattern) and LMCOPY " ?
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
ofer71
Intermediate


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

PostPosted: Fri Nov 17, 2006 8:24 am    Post subject: Reply with quote

You can find all the explanations + great examples in the fine manual.

O.
________
Financial Services
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