Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DASD to TAPE move using SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: DASD to TAPE move using SORT
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

Site Director


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

PostPosted: Fri May 25, 2007 3:01 am    Post subject:
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    Post subject: Re: Reg: DASD to TAPE move
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

Site Director


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

PostPosted: Fri May 25, 2007 3:41 am    Post subject:
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

Site Director


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

PostPosted: Fri May 25, 2007 3:45 am    Post subject:
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

Site Director


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

PostPosted: Fri May 25, 2007 5:00 am    Post subject:
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    Post subject: Re: DASD to TAPE move using SORT
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 25, 2007 11:28 am    Post subject:
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

Site Director


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

PostPosted: Fri May 25, 2007 7:13 pm    Post subject:
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    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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us