View previous topic :: View next topic |
Author |
Message |
issac1029 Intermediate

Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Thu Nov 16, 2006 10:22 pm Post subject: How to copy member in batch mode? |
|
|
member:
RFSR01DQ
RFPA01DQ
RFPA01DP
RFDL01DR
RFSR01DR
RFPA01DS
RFPA01DD
RFSR01DS
......................
Like RF*01D* ? to another lib? |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Fri Nov 17, 2006 1:46 am Post subject: |
|
|
//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 |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Fri Nov 17, 2006 3:03 am Post subject: |
|
|
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 |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Fri Nov 17, 2006 3:18 am Post subject: |
|
|
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 |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Fri Nov 17, 2006 3:57 am Post subject: |
|
|
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 |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Fri Nov 17, 2006 8:24 am Post subject: |
|
|
You can find all the explanations + great examples in the fine manual.
O.
________
Financial Services |
|
Back to top |
|
 |
|
|