Can we edit a file on Tape Drive?

All sort of Mainframes Interview Questions.
Post Reply
Ram Charan
Registered Member
Posts: 12
Joined: Mon Aug 19, 2013 10:13 pm

Can we edit a file on Tape Drive?

Post by Ram Charan »

Hi,

Please help me to know if we can edit a tape file? I've been asked this question in an interview. I'm not sure if I understood the question itslef. I've asked the interviewer but he repeated the same.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we edit a file on Tape Drive?

Post by Robert Sample »

It is not possible to edit a tape file. Edit implies change and once written to a tape, the data CANNOT be changed (at least not without writing to a different tape).
Ram Charan
Registered Member
Posts: 12
Joined: Mon Aug 19, 2013 10:13 pm

Re: Can we edit a file on Tape Drive?

Post by Ram Charan »

But that idea can be applied to a DASD file too, right?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we edit a file on Tape Drive?

Post by Robert Sample »

Actually, the concept applies (sort of) to a DASD file. The key difference, however, is that a DASD file can be rewritten whereas a tape cannot. The edit process is to read the data set into memory, make all the changes to the copy in memory, and when the edit session is complete then write the data set back out to DASD, replacing the previous copy. Since the last step is not possible for tapes, edit of a tape data set does not occur.

Note that rewriting data to tape is not possible because a tape may contain multiple files, and rewriting a tape could impact every file on the tape.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Can we edit a file on Tape Drive?

Post by William Collins »

It does depend on what "edit" means. DITTO can. I should think Filemanager/File-Aid can as well.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”