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
 

 

HSM CDS problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 3:43 pm    Post subject: HSM CDS problem
Reply with quote

I'm having 2 HSM problems, which I suspect could only be solved with a FIXCDS command.
Both problems are about 2 real tapes (ML2), which aren't in the library (and won't be).

Problem #1
Code:
DELVOL TAPE1 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE1 ENTRY NOT DELETED -
ARC0260I (CONT.) VALID DATA MAY EXIST ON VOLUME


Code:
LIST TTOC (TAPE1)
VOLSER    UNIT    VOL      REUSE     VALID   PCT    VOL    RACF  PREV    SUCC    NUM  ONE   ALT     LIB       STORAGE
          NAME    TYPE   CAPACITY    BLKS    VALID  STATUS       VOL     VOL     REC  FILE  VOL                GROUP 
TAPE1    3490    ML2  0006249900 0000000000 000    FULL    NO   *NONE*  *NONE*  001  ***   *NONE*  *NO LIB*  **NO SG*


Tried: MIGRATE VOLUME(TAPE1 DBA(0))
(as mentioned in the documentation) - no effect

Problem #2
Code:
DELVOL TAPE2 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE2 ENTRY NOT DELETED -
ARC0260I (CONT.) SELECTED BY ANOTHER HOST


Code:
LIST TTOC (TAPE2)
VOLSER    UNIT    VOL      REUSE     VALID   PCT    VOL    RACF  PREV    SUCC    NUM  ONE   ALT     LIB       STORAGE
          NAME    TYPE   CAPACITY    BLKS    VALID  STATUS       VOL     VOL     REC  FILE  VOL                GROUP 
TAPE2    3490    ML2  0002757300 0000000000 000    EMPTY   NO   *NONE*  *NONE*  001  ***   *NONE*  *NO LIB*  **NO SG*


Both tapes appear in LIST ML2 MCDS lists.

Any idea/suggestion highly appreciated. icon_smile.gif
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: Mon Jun 14, 2010 4:43 pm    Post subject:
Reply with quote

What has happened to the tapes.
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 4:47 pm    Post subject:
Reply with quote

They were ejected from the library and taken away. icon_rolleyes.gif

A similar problem was discussed here -- http://ibmmainframes.com/viewtopic.php?t=37134
But I couldn't figure out how to apply it to this case.
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: Mon Jun 14, 2010 4:58 pm    Post subject:
Reply with quote

If you can list the datasets that HSM thinks are resident on the ML2 volume, maybe an IDCAMS delete, recover from backup, and remigrate.

I think that once HSM believes that there is no longer any valid data on the tape the DELVOL should work.
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 5:03 pm    Post subject:
Reply with quote

In Problem #1 - LIST TTOC returns FULL (as volume status) but doesn't list any datasets.
Or there is another way to list those datasets?

In Problem #2 - LIST TTOC returns EMPTY (as volume status), so I guess HSM believes there is no longer any valid data, but gives the "SELECTED BY ANOTHER HOST" error.. :/
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: Mon Jun 14, 2010 5:59 pm    Post subject:
Reply with quote

Probably a dumb question but you did use the DSI parameter didn't you

Code:
LIST TTOC(nnnnnn) DSI ODS=('whatever')
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 14, 2010 6:04 pm    Post subject:
Reply with quote

Nope, but tried again with DSI, same result.
(LIST TTOC (TAPE1) DSI)
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: Thu Jun 17, 2010 3:08 pm    Post subject:
Reply with quote

Just a passing thought ................. what happens if you delete the OCDS record for the volume(s).

Can't tell you the exact command as my copy of the DFhsm diagnostics manual is on my personal laptop and not on the one at work.

Suggest you take a backup first icon_biggrin.gif
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 21, 2010 2:46 pm    Post subject: Reply to: HSM CDS problem
Reply with quote

Used commands:
Code:
FIXCDS T L2-TAPE1-0000 DELETE
FIXCDS T L2-TAPE2-0000 DELETE


And now:
Code:
DELVOL TAPE1 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE1 ENTRY NOT DELETED -
ARC0260I (CONT.) CDS ERROR


LIST TTOC (TAPE1) doesn't return anything (empty list).

Code:
DELVOL TAPE2 MIGRATION (PURGE)

ARC0260I MIGRATION VOLUME TAPE2 ENTRY NOT DELETED -
ARC0260I (CONT.) SELECTED BY ANOTHER HOST


LIST TTOC (TAPE2) doesn't return anything (empty list).

I did a FIXCDS T L2-TAPEX-000 DISPLAY on the tapes previously, does that count as a backup? icon_biggrin.gif
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: Mon Jun 21, 2010 2:52 pm    Post subject:
Reply with quote

I did actually mean taking either an IDCAMS REPRO backups of the CDS or a BACKVOL CDS so that in case of need you could recover the CDS back to prior to the delete of the T record.

If I get some time this evening I will go through my notes on HSM and see what I can find as I am sure that I have met the same problem somewhere in the dark and distant past.

Well let's face it, I won't be watching England play in the world cup after Wednesday.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon Jun 21, 2010 2:57 pm    Post subject:
Reply with quote

Quote:

Well let's face it, I won't be watching England play in the world cup after Wednesday.


A very good alternative could be watching The Netherlands 36_8_12.gif
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 21, 2010 3:07 pm    Post subject:
Reply with quote

Just a thought... Why not delete the MCDS record of the volumes?
Would that be an incomplete solution?
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: Mon Jun 21, 2010 3:12 pm    Post subject:
Reply with quote

That is what I was going to look at icon_lol.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon Jun 21, 2010 3:15 pm    Post subject:
Reply with quote

expat wrote:
That is what I was going to look at icon_lol.gif


Good choice, have fun.
Back to top
View user's profile Send private message
snoswar

New User


Joined: 22 Aug 2006
Posts: 5
Location: Australia

PostPosted: Mon Jun 28, 2010 8:11 am    Post subject: Reply to: HSM CDS problem
Reply with quote

Silly question . . . as the number of valid blocks appear to be zero . . . what would a RECYCLE have done ?
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Mon Jun 28, 2010 1:55 pm    Post subject: Reply to: HSM CDS problem
Reply with quote

If I remember correctly, it gave an error, can't remember which one exactly.
Can't re-run recycle now, because T records are deleted.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Jun 29, 2010 8:07 pm    Post subject:
Reply with quote

May be worth exploring use of some of the AUDIT commands (they're in the licenced material manuals I think). Something like AUDIT MEDIACONTROLS can identify the problem and even fix the problem if you have the FIX parameter included on the command:

e.g.
HSEND AUDIT MEDCTL VOLUMES(TAPE1) FIX REPORT(ERRORS) -
ODS(your.output.file)

Note that there are numerous other AUDIT command variations so it involves a bit of reading to understand what it does and what it will fix (or not).
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Jun 29, 2010 8:37 pm    Post subject:
Reply with quote

Try the DFHSM AUDIT MEDIACONTROLS command. Some example AUDIT commands:

HSEND AUDIT DIRCTL VOLUMES(ML1VOL) REPORT(ERRORS) +
ODS(output.file) SERIAL(DYNAMIC)
HSEND AUDIT MEDCTL VOLUMES(ML1VOL) FIX +
ODS(output.file) SERIAL(DYNAMIC)
HSEND AUDIT VOLCTL(MIGRATION) VOLUMES(ML1VOL) FIX REPORT(ERRORS) +
ODS(output.file) SERIAL(DYNAMIC)
HSEND AUDIT DSCTL(MIGRATION) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
DSN(file.name) +
ODS(output.file)

HSEND AUDIT VOLCTL(MIGRATION) VOLUME(volser) FIX REPORT(ERRORS) +
ODS(output.file) SERIAL(DYNAMIC)

HSEND AUDIT MEDCTL VOLUMES(volser) FIX REPORT(ERRORS) SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT MEDCTL(SDSP) VOLUMES(ML1VOL1 ML1VOL2) FIX +
REPORT(ERRORS) ODS(output.file) SERIAL(DYNAMIC)

HSEND AUDIT MEDCTL VOLUMES(ML1VOL1 ML1VOL2) FIX +
REPORT(ERRORS) ODS(output.file) SERIAL(DYNAMIC)

HSEND AUDIT DIRCTL VOLUMES(ML1VOL1 ML1VOL2) REPORT(ERRORS)
FIX SERIAL(DYNAMIC) ODS(output.file)

HSEND AUDIT DSCTL(MIGRATION) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT VOLCTL(MIGRATION) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT VOLCTL(RECOVERABLE) REPORT(ERRORS) FIX SERIAL(DYNAMIC +
ODS(output.file)

HSEND AUDIT VOLCTL(BACKUP) BACKUPTYPE(ALL) REPORT(ERRORS) FIX +
SERIAL(DYNAMIC) ODS(output.file)

HSEND AUDIT DSCTL(BACKUP) REPORT(ERRORS) FIX SERIAL(DYNAMIC) +
ODS(output.file)

HSEND AUDIT BVOL REPORT(ERRORS) FIX ODS(output.file)

HSEND AUDIT ALL FIX REPORT(ERRORS) ODS(output.file)
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Wed Jun 30, 2010 2:07 pm    Post subject:
Reply with quote

onn reflection it may be the VOLUMECONTROLS one to use...but I can't be bothered doing the RTFM thing for you
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Thu Jul 01, 2010 2:36 pm    Post subject: Reply to: HSM CDS problem
Reply with quote

Hey Pete, thanks for your response!

I'm familiar with the AUDIT command and I'm using it quite often lately (mostly MEDCTL portion of the command, to fix faulty tapes).
So, trying an AUDIT MEDCTL on the volumes was one of the first tries.
Haven't tried VOLCTL though, but tried it now and it gives NO TTOC message.

I think a FIXCDS command to delete the S or V records of the tape would be a solution, just not sure if it's a proper one.
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 Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm
No new posts TXT2PDF problem - printing @ in PDF vipul65 All Other Mainframe Topics 9 Thu Aug 25, 2016 12:48 am


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