View previous topic :: View next topic
|
Author |
Message |
afom
New User
Joined: 17 Jan 2009 Posts: 4 Location: Taipei, Taiwan
|
|
|
|
I want to use JCL to copy (several , not all) member (in PDS) which name has special character .
for exapmle ."dFSDF2 ( has quote ) .
i use ICETOOL ,but JCL ERROR.
which tool can do that !?
---
thx |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
IEBCOPY is standard for copying PDS members.
Garry. |
|
Back to top |
|
|
afom
New User
Joined: 17 Jan 2009 Posts: 4 Location: Taipei, Taiwan
|
|
|
|
IEBCOPY JCL
-----------------------
//TEST03 JOB (AFOM),,MSGCLASS=X,MSGLEVEL=(1,1),CLASS=A
//*
//STEP1 EXEC PGM=IEBCOPY,REGION=512K
//SYSPRINT DD SYSOUT=*
//IN DD DSN=IMS2.TFORMAT,DISP=SHR
//OUT DD DSN=C2Y2.TFORMAT.BK,DISP=SHR
//SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(50))
//SYSUT4 DD UNIT=SYSDA,SPACE=(TRK,(50))
//SYSIN DD *
COPY INDD=IN,OUTDD=OUT
SELECT MEMBER=((."DFSDF1,."DFSDF1,R))
//*
-----------------------
BUT I GOT RC=08 |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
How did you get a PDS member with ." ? These special characters are invalid.
Garry. |
|
Back to top |
|
|
afom
New User
Joined: 17 Jan 2009 Posts: 4 Location: Taipei, Taiwan
|
|
|
|
In fact, this member are format file of MFS
generated by MFS compile.
i want to backup this file before change proecss |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might consider backing up the entire pds instead of just the members with a double-quote in the name.
If you backup the entire pds, you need to restore the backup to a new pds of the same definition and make sure these members are still usable.
One thing worse than no backup is believing there is a backup when there is just some unusable file. Until the backup is restored and you demonstrate all is well, all that would exist is a file of questionable content. |
|
Back to top |
|
|
|