Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL to copy (several , not all) member (in PDS)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL to copy (several , not all) member (in PDS)
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: 1005
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Feb 19, 2009 2:32 pm    Post subject:
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    Post subject:
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: 1005
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Feb 19, 2009 2:47 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Feb 19, 2009 8:22 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts Image copy after Online reorganization. lind sh IMS DB/DC 0 Tue Jan 30, 2018 9:58 pm
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us