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

Need to Know about files writing on Tapes.


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

New User


Joined: 25 Nov 2010
Posts: 70
Location: Sivakasi, India

PostPosted: Tue Dec 28, 2010 11:32 pm
Reply with quote

Hi

This question is in general. Please excuse if u feel it is not jcl related.
But i have this doubt for some days. Can we write files directly on Tapes? If it can be done, do we need to use any utility for that. Also i am told that the files in DASD will automatically be migrated to TAPE after certain period of time if we dont use them at all. When we want to use them again, it just restores them on the DASD. Is it possible to view the contents of TAPE files without restoring back it to DASD ?

Also if there is any related material to know about this please suggest me.


Thanks in advance!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 28, 2010 11:40 pm
Reply with quote

If your JCL has an output DD name that points to a tape with the correct (for your site -- some parameters can be site-specific) values, the data will be written to the tape. No utility is required as the operating system understands how to write tapes.

Files on DASD automatically migrating to tape is an archive process, typically done under the control of HSM or other storage management utility. The archived data on tape cannot be directly read and understood since it is compressed to save space. Typically, archive tapes are handled differently than data tapes written by an application.

However, if your program writes data to a tape, you can use a utility such as IDCAMS or IEBGENER to print the data on tape.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Dec 29, 2010 12:08 am
Reply with quote

Hello,

Your topic has been relocated to the SMS & VSAM part of the forum.

The original post mentions JCL, but was posted in the COBOL part of the forum. I believe this part of the forum may be more suited. If you'd like to have this moved, just post a reply.

When working with data on tape, keep in mind that data from tape usually must be copied (entirely or in part) to dasd to be worked with online. Batch jobs can read data tapes (rather than backup/archive volumes) directly.
Back to top
View user's profile Send private message
sureshmurali
Warnings : 1

New User


Joined: 25 Nov 2010
Posts: 70
Location: Sivakasi, India

PostPosted: Wed Dec 29, 2010 12:43 am
Reply with quote

Yes Dick. I need to move this to the respective forum. Please kindly move.
Thanks.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Wed Dec 29, 2010 5:13 pm
Reply with quote

These links might interest you:

ibmmainframes.com/about26800.html
www.ibmmainframes.com/viewtopic.php?t=46621&highlight=tape
www.3480-3590-data-conversion.com/article-mainframe-tape-details.html
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 592
Location: London

PostPosted: Fri Dec 31, 2010 7:18 pm
Reply with quote

Suggest you talk to your Storage pr System Programmers as typically there are certain UNIT names or DATACLAS names to code in the JCL when you want to write to TAPE and these are site specific.

Remember that TAPE files are always Sequential.

Once a dataset is written to tape and cataloged you can just reference it by the tape dataset name and DISP=OLD. If it is not cataloged you have to code the VOLSER and UNIT name as well as dsname to be able to access it.

Be careful that you specify the correct EXPDT in the JCL as this can affect the way the tape file is retained (or not) in the Tape Management System.

For DASD datasets migrated by DFHSM or FDRABR type products you only have to try and open the file and that will invoke DFHSM to recall the file from archive back to DASD after which you can access it as normal.
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 3 files concatenated to 1 DFSORT/ICETOOL 2
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files and write Matched/Unm... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top