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

DASD to TAPE move using SORT


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

New User


Joined: 27 Mar 2007
Posts: 13
Location: chennai

PostPosted: Fri May 25, 2007 2:46 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri May 25, 2007 3:01 am
Reply with quote

Hello,

COPY will do what you want.
Back to top
View user's profile Send private message
manikanth_e

New User


Joined: 27 Mar 2007
Posts: 13
Location: chennai

PostPosted: Fri May 25, 2007 3:21 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri May 25, 2007 3:41 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri May 25, 2007 3:45 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri May 25, 2007 5:00 am
Reply with quote

One more time - - icon_smile.gif

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

New User


Joined: 27 Mar 2007
Posts: 13
Location: chennai

PostPosted: Fri May 25, 2007 10:12 am
Reply with quote

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

Global Moderator


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

PostPosted: Fri May 25, 2007 11:28 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri May 25, 2007 7:13 pm
Reply with quote

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
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top