MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error while rewriting tape file.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Wed May 30, 2007 1:30 am    Post subject: Error while rewriting tape file. Reply with quote

Hi ,
I came across an error while taking backup of a file using ADRDSSU.

Wht my job was doing?
I had 10 tape files (GDG versions - say, MY.GDG.BKUP.G000V001 to 10) which were the back up taken for files MY.GDG.G000V001 TO 10.
I was trying to take the backup of MY.GDG.G000V007 on MY.GDG.BKUP.G000V007 again ( ie, i was trying to rewrite the tape file with the updated data in gen 7.) All the tape files were created in the same volume.

I got the error -
IECTMS3 0D16, 344021,IS NOT SCRATCH(56).
Explanation: This message indicates that the tape has been rejected for processing.The condition code (56) following the IECTMS3 message indicates the reasonfor the rejection and it says - An attempt has been made to create a secondary data set and a data set exists that
has a higher file sequence number.

As i mentioned before , all my tape files were in a single volume and had file sequence number from 1 to 10.(I had created it that way!!!!)

Resolution:
I recreated the tape files to diffrent volumes. And re submitted the job.
The job ran succesfully.

I want to know why this was happening - My understanding from this was if we have the generations of the same GDG in the same volume , ie n and n+1 with sequence number say 1 and 2 resp., then we will not be able to rewrite the tape file n.

Can some one give me a clear picture on this problem?

Cheers,
Eliza.......
.
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Wed May 30, 2007 2:40 am    Post subject: Reply with quote

You can not rewrite tapes, it is that simple. How do you think that this could work? I think you need to learn some basics of how things work for a start.
Back to top
View user's profile Send private message Visit poster's website
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Wed May 30, 2007 3:49 am    Post subject: Reply with quote

When i wrote 'rewrite' what i meant was, i took a back up a GDG gen say MY.GDG.G000V00x to MY.GDG.BKUP.G000V00x (x - 1to 10) and say , i updated the data in the seventh gen and i was trying to overrwrite the tape file (BKUP.G000V007) with the updated value.
And this is possible.

Cheers,
Eliza
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 30, 2007 4:09 am    Post subject: Reply with quote

Your tape has a retention period on it which means it cannot be overwritten until that date is reached or number of days has lapsed. Even if you did not specify a retention perios (LABEL=RETPD=xxx) your tape management system (TMS) will probably impart some sort of minimum.

If you need to reuse it before it has expired you have to tell your TMS that the tape can be reused.

(It may be that it will also have to rewrite the label at the front of the tape to say it is a scratch.)
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Wed May 30, 2007 6:28 am    Post subject: Reply with quote

But I was able to overwrite the tape file, when I created the BKUP generations on different volumes. Only when there were more than one generation on the same volume, I was not able to overwrite the tape files.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed May 30, 2007 7:00 am    Post subject: Reply with quote

Eliza,

What is the JCL disposition used when you tried to rewrite the file?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 30, 2007 7:22 am    Post subject: Reply with quote

You have multiple files on a tape and you are trying to overwrite one in the middle? Cannot be done - what if the new data is more than the old data - you will start to overwrite the next dataset - it is strictly sequential processing not write as much as you can and if you need more go to the end of all data and start writing. When you write to a new volume there is no data on it - what data is there can be overwritten. But you cannot write to an existing volume unless a) ALL data is to be regarded as expired or b) you write a new dataset after the existing last dataset.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Wed May 30, 2007 7:36 am    Post subject: Reply with quote

Hi,

For the BKUP file , I gave the disposition as DISP=OLD.

Thank u.
Back to top
View user's profile Send private message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Wed May 30, 2007 8:03 am    Post subject: Reply with quote

Thanks Nic. Now I understand why the job was failing.
Just one more question. What does file sequence number indicate (one that we give in LABEL parameter).
My understanding is if we give the following label parameter LABEL=(1,SL,EXPDT=99000) then the job would actaully try to allocate the space in an empty volume Question ..... correct me if I am wrong!!!! Very Happy
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 30, 2007 8:17 am    Post subject: Reply with quote

Tapes consist of labels and data - labels identify a) the tape (volume serial number (tape number!)) b) the data - datset name dcb lrecl etc and HOW LONG BEFORE it can be used again. Label 1 refers to the first label and you are saying in this case that the data remains valid until 31st December 2098 and that the tape has Standard Labels.

There is a whole manual on tape labels so this is a brief and inaccurate, but good enough for the purpose, summary
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Thu May 31, 2007 4:34 am    Post subject: Reply with quote

Thank you Nic.
Back to top
View user's profile Send private message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Thu May 31, 2007 4:38 am    Post subject: Reply with quote

Can you please let me know any refrence manuals for understanding the tape fundas?
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu May 31, 2007 11:16 am    Post subject: Reply with quote

Eliza,

Check this link.,

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2M310/CCONTENTS?DT=20020118094117

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
Eliza
Beginner


Joined: 28 May 2007
Posts: 8
Topics: 1

PostPosted: Mon Jun 04, 2007 12:35 am    Post subject: Reply with quote

Thank you Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group