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

JCL to copy (several , not all) member (in PDS)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
afom

New User


Joined: 17 Jan 2009
Posts: 4
Location: Taipei, Taiwan

PostPosted: Thu Feb 19, 2009 2:30 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Feb 19, 2009 2:32 pm
Reply with quote

IEBCOPY is standard for copying PDS members.

Garry.
Back to top
View user's profile Send private message
afom

New User


Joined: 17 Jan 2009
Posts: 4
Location: Taipei, Taiwan

PostPosted: Thu Feb 19, 2009 2:40 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Feb 19, 2009 2:47 pm
Reply with quote

How did you get a PDS member with ." ? These special characters are invalid.

Garry.
Back to top
View user's profile Send private message
afom

New User


Joined: 17 Jan 2009
Posts: 4
Location: Taipei, Taiwan

PostPosted: Thu Feb 19, 2009 2:51 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 19, 2009 8:22 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top