View previous topic :: View next topic
|
Author |
Message |
manikanth_e
New User
Joined: 27 Mar 2007 Posts: 13 Location: chennai
|
|
|
|
Hi,
Is there any sort option so that if I give the input as DASD file, the same file should be moved to TAPE.
Please let me know if there are any ways.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
COPY will do what you want. |
|
Back to top |
|
|
manikanth_e
New User
Joined: 27 Mar 2007 Posts: 13 Location: chennai
|
|
|
|
Hello,
Consider that my DASD file name is A.B.C, if I want to move the same to TAPE with the same file name then first I should rename the DASD file to some other file name (Consider A.B.C.D) and then create the TAPE file with file name A.B.C and then delete the DASD file with name (A.B.C.D).
The above is much of the tedious process as I have 10000 DASD files to be moved to tape. If I have any file command or sort utility to directly move the DASD file to TAPE then it would be comfortable.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I believe you can do what you want using jcl (sort usually copies faster than IEBGENER).
In the step, code the input file as DISP=(OLD,DELETE,KEEP) and the output file as DISP=(NEW,CATLG,DELETE).
If the step run successfully, the old file will be deleted and the new one put in the catalog. If the step abends for any reason, the input will be preserved.
I'd suggest running aan experiment with a couple of test files to make sure it works as you want.
Please let me know if that might work for you. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Also,
I'd suggest a backup (FDR, DFDSS, etc) of the dasd where these files are before beginning (just in case) before "moving" the individual files.
Do you need a separate tape for each file or would a consolidated file work for you? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
One more time - -
As i was driving, a thought "popped in" and i thought i'd share. . .
Do you need to create 10000 tape volumes or is the requirement to get the data off of dasd and still have it available?
If you were to create the backup i mentioned earlier (via dfdss, fdr, etc), and make a copy or 2 of the tapes (and copy them at least once a year to ensure readability), you might selectively restore any file(s) that would be read from the tape.
This would also eliminate the need to manage the 10000 physical volumes.
Just a thought. . . |
|
Back to top |
|
|
manikanth_e
New User
Joined: 27 Mar 2007 Posts: 13 Location: chennai
|
|
|
|
hello,
my requirement:
I have 10000 DASD files approx. I want to move the same to TAPE to have DASD space available for my future work. I will check with the JCL disp parameters which was mentioned by you.
Thanks alot. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you have an ILM product like HSM, just migrate them to ML2.
That way there is no messing around trying to find where a DFdss copy of the dat is, and it will not take up 10,000 tape volumes, or even virtual volumes. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Yes, "moving" them to tape will free the dasd.
However, as i mentioned and as has expat - do you really need 10000 physical volumes? If you migrate them or simply create a set of "backup"s, you could recall them individually without needing to manage all of the carts. . . |
|
Back to top |
|
|
|