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

How to copy one tape PS to new tape PS along with EXPTD


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

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Wed Dec 17, 2008 8:37 pm
Reply with quote

Hi..

I have some 1000s of tape datasets which are to be copied along with its expiry date(EXPTD) to a new tape dataset(only name change). I used file-aid step in a jcl and tried to create a new tape dataset which is the copy of tape dataset using a DD like parameter but it didnt work..
EXPTD needs to be copied to the new dataset.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 17, 2008 9:14 pm
Reply with quote

1) Use ICEGENER - probably the most efficient copy tool.

2) Have you tried EXPDT=*.SYSUT1 - BUT, and a big but, you need to talk to your storage management people to ensure that any RETPD / EXPDT that you specify will be honoured by the copy and not overridden by the TMS.

If possible - get a listing from the TMS showing expiry dates and use these, else IDCAMS LISTCAT may show an expiry date for tape datasets.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Dec 17, 2008 10:33 pm
Reply with quote

I'd say you'll need to specify the new EXPDT in the JCL for each copy.

Per haps you can build the copy step into a PROC and use symbolics for DSN, EXPDT, etc.
Code:
//COPY PROC
//ST1 EXEC PGM=??
//SYSUT1 DD DSN=&DSNIN,.......
//SYSUT2 DD DSN=&DSNOUT,EXPDT=&EDATE,.....
// PEND
//COPYIT EXEC COPY,DSNIN=a.b.c,DSNOUT=a.b.d,EDATE=2008/365
// repeat other steps

If you can get a listing of DSNs and EXPDTs you could manipulate it into the EXEC stmnts.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Dec 18, 2008 8:09 am
Reply with quote

Hi,

I know our storage people have just recently copied thousands of carts to VTS and used a COPYCAT utility.

It is a BrightStor CA-1 Copycat Release 11 product.


the following are the options available
Quote:
* Options in effect: *
* FILECOPY *
* COMP= *
* CTLFILE= *
* DSN= *
* DUPLEX=NO *
* ERASE=NO *
* FILES=ALL *
* INDISP=RETPD=0000 *
* INPUT=* *
* INUNIT=190 *
* MAXFILES=9999 *
* MERGE=NO *
* OUTDISP=SAME *
* OUTSER= *
* OUTUNIT=VTAPE *
* PREFIX= *
* RECATLG=PREV *
* SAVEINFO=YES *
* SORT=YES *
* USEREXIT=NO *
* VOL=004 *
* WAITTIME=5 *
*====================================================================*


This would suit your requirement but of course you must have the product, check with your storage group and see what is available. else follow previous suggestions.


Gerry
Back to top
View user's profile Send private message
PRABHATH
Warnings : 1

New User


Joined: 08 Jun 2006
Posts: 28
Location: hyderabad

PostPosted: Thu Dec 18, 2008 5:19 pm
Reply with quote

you really need to check the rules defined in the RDS of CA1 which your storage manager can let you know.

CA1 COPYCAT utility is the best one to use if you have the authority to do so..

Generally if you are using similar naming convention for the new tapes; may be a change at the last quailifier of the DSN should pick up the same rules as that defined for the source tape DSN in RDS(just an assumption though).

IF that is the case IEBGENER or ICEGENER as mentioned above by Expat are good to go.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 18, 2008 5:53 pm
Reply with quote

Quote:
you really need to check the rules defined in the RDS of CA1 which your storage manager can let you know.

And what happens if TLMS or RMM are used instead of CA1.

Please do not give product explicit replies unless you know that this is the product in questio.
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 Deleting a Tape file JCL & VSAM 14
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
Search our Forums:

Back to Top