Renaming sereval Tape



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Renaming sereval Tape

Postby samb01 » Wed Feb 19, 2014 8:10 pm

Heelo,

i have sereval tape to rename. So i have to copy it with a new alias.

For example the tape : X.FDST.GF must be rename in TREP.FDST.GF with exactly the same parameters.
I have a very long lit to copy (about 3000 tapes) whiche are in a list dataset :

VIEW YTRD.VCFDTRE.BGTD.GHVFT.TAPE Columns 00001 00072
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 937284 00001 PRFRT.FABVI1.ARCH.DU270692 2011/3
000002 937400 00001 PRFRT.FABVI2.ARCH.DU270692 2011/3
000003 281656 00001 PRFRT.FABVI3.ARCH.DU270692 2011/3
000004 220492 00001 PRFRT.FABVI4.ARCH.DU270692 2011/3
000005 954154 00001 PRFRT.FABVI5.ARCH.DU270692 2011/3


etc...



could you help me about which method i could use ?

Thank's for your help..
samb01
 
Posts: 236
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Renaming sereval Tape

 

Re: Renaming sereval Tape

Postby enrico-sorichetti » Wed Feb 19, 2014 8:34 pm

given that for tapes You must COPY things
to generate the jcl needed You have two alternatives

donkey work ...
ispf cut/paste/copy/overlay

after having written a small procedure along the lines of

//jobname   JOB ... 
//*
//cpyproc  PROC inpref=X,oupref=TREP
//cpy      EXEC <the utility used to copy>
//*
//inddname   DD DSN=&INpref..&ds,
//              ... all the other appropriate parameters
//*
//outddnam   DD DSN=&OUpref..&ds,
//              ... all the other appropriate parameters
//*
//... all the other ddnames used by Your utility         
//*
//         PEND
//*
//f1       EXEC cpyproc,ds=GHVFT.GF
//...      repeat as many times as needed   
//...      repeat as many times as needed   
//...      repeat as many times as needed   


or generate the above using a REXX script
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Renaming sereval Tape

Postby Robert Sample » Thu Feb 20, 2014 4:56 am

Have you discussed this request with your site support group? They would be the place to start.

As long as you only want to change the high level qualifier, AND the data set names are long enough that the high level qualifier is NOT in the last 17 characters of the data set name, you could uncatalog the tapes and catalog them with the new high level qualifier -- as long as your site will allow this. If your site does not support this, then as Enrico said you will have to copy all 3000 tapes and use the new data set names on each.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Renaming sereval Tape

Postby samb01 » Thu Feb 20, 2014 1:54 pm

Hello Robert Sample,

AND the data set names are long enough that the high level qualifier is NOT in the last 17 characters of the data set name, you could uncatalog the tapes and catalog them with the new high level qualifier


It interests me. I'm going to discuss with my site support group, but could you explain which tool allow it (or which programm ?)? CA 1 ? because we have CA1 in our site.

Thank's for your help.
samb01
 
Posts: 236
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Renaming sereval Tape

Postby dick scherrer » Thu Feb 20, 2014 10:24 pm

Hello,

There is not really a "tool" - this is just how the catalog works for tape datasets.

But - the dataset name has to be long enough to use this . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Renaming sereval Tape

Postby steve-myers » Sat Feb 22, 2014 9:22 am

Try -

DEFINE ALIAS(NAME(existing tape data set name) RELATE(name you want to use))

This will work ONLY if both names will be in the same catalog AND you have data set access to both names. The tape data set is actually accessed using the data set name on the tape, not the data set name you specify in JCL.

If you can use this method, it is much simpler than copying many thousands of tape data sets.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Renaming sereval Tape

Postby samb01 » Tue Mar 04, 2014 7:46 pm

Hello steve-myers, your solution interest me.
But could you please explain me more with an example.

Actually tha tape is :

X.TAPE.ONE

If i tape the command :


DEFINE ALIAS(NAME(X.TAPE.ONE) RELATE(Y.TAPE.ONE))




i will have two dataset name ? :

X.TAPE.ONE in the catalog

and

i will have to specify :

Y.TAPE.ONE

in the JCL ?
samb01
 
Posts: 236
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Renaming sereval Tape

Postby steve-myers » Tue Mar 04, 2014 10:24 pm

Provided the catalog alias for Y points to the same catalog as the catalog alias for X, you can use either name.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Renaming sereval Tape

Postby samb01 » Wed Mar 05, 2014 3:51 pm

Hello steve-myers. Thanks for your help. Just one more thing.

Tha Alias X. will not exist any more.

We are going to suppress it. So we will have only the alias Y.

It dosen't matter ?
samb01
 
Posts: 236
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Renaming sereval Tape

Postby dick scherrer » Wed Mar 05, 2014 9:10 pm

Hello,

I don't know if you can have an alias to something that does not exist . . . :?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post