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

Fetching report from HSM


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

New User


Joined: 16 Feb 2008
Posts: 19
Location: Bangalore

PostPosted: Thu Mar 11, 2010 2:24 pm
Reply with quote

Hi,

First of all, I am not sure under which topic this should be posted. Kindly divert this to the right forum.

My requirement: To find HSM dataset that have been archived for more than one year.

I am new to HSM, I am trying to find out various commands to get the report from HSM like DCOLLECT, TTOC etc. I even dont know I am trying the right commands.

While Trying LIST TTOC command when i issued the command directly, the below is the output i got from the syslog, but the output file is empty.

F HSM, LIST TTOC ODS(DCOLLECT.OUT5)
ARC0140I LIST COMPLETED, 23 LINE(S) OF DATA 284
ARC0140I (CONT.) OUTPUT

When i issue the same through JCL i get the following

READY
HSENDCMD LIST TTOC
ARC1007I COMMAND REQUEST 00102238 SENT TO DFSMSHSM
READY
END

Below is my JCL.

//HLIST JOB (MI05),'HSM REPORT',TIME=1440,
// MSGLEVEL=(1,1),MSGCLASS=Q,CLASS=A,NOTIFY=STHIAGA
//STEP1 EXEC PGM=IKJEFT01,REGION=512K
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//OUTDS DD DSN=STHIAGA.DCOLLECT.OUT5,DISP=SHR
//SYSTSIN DD *
HSENDCMD LIST TTOC
/*

Here agian my output file is empty
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 11, 2010 2:28 pm
Reply with quote

The date and time of dataset migration are contained in the DCOLLECT M records.

Click HERE to see the relevant manual section.
Back to top
View user's profile Send private message
MFSubbu

New User


Joined: 16 Feb 2008
Posts: 19
Location: Bangalore

PostPosted: Thu Mar 11, 2010 2:41 pm
Reply with quote

Expat,

I am not aware of what command should be used. I tried with SMSDATE SCDS().. where the output didnt list the dataset name.

I also tried with MIGRATEDATA

Belwo is the error

IDC21804I FAILURE DURING MIGRATION DATA COLLECTION SERVICE PROCESSING -
IDC21804I RETURN CODE WAS X'08' REASON CODE WAS X'00000001

JCL used is

//DCOLLECT JOB (MI05),'ACCOUNT CREATION',TIME=1440,
// MSGLEVEL=(1,1),MSGCLASS=Q,CLASS=A,NOTIFY=STHIAG
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//OUTDS DD DSN=STHIAGA.DCOLLECT.OUT4,DISP=SHR
//* DSORG=PS,
//* DCB=(RECFM=VB,LRECL=32756,BLKSIZE=0),
//* SPACE=(1,(100,100)),AVGREC=K,
//* DISP=(NEW,CATLG,KEEP)
//SYSIN DD *
DCOLLECT -
OFILE(OUTDS) -
MIGRATEDATA
/*
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 11, 2010 2:49 pm
Reply with quote

You will need to read the manual to find out the requirements of specifying MIGRATEDATA.

I can see from your JCL what is wrong.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Thu Mar 11, 2010 2:50 pm
Reply with quote

MCDS is missing.

MIGRATEDATA requires collection of information on migrated data sets from the specified MCDS (Migration Control Data Set). The desired MCDS must be allocated to the ddname MCDS.
Back to top
View user's profile Send private message
MFSubbu

New User


Joined: 16 Feb 2008
Posts: 19
Location: Bangalore

PostPosted: Fri Mar 12, 2010 9:20 am
Reply with quote

After specifying the MCDS name.. i am able to get the output... but the expiration date for all the datasets are 00000, but my requirement is to find out the datasets which are expired for more than one year.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 12, 2010 12:17 pm
Reply with quote

If the dataset has expired it would not be held by HSM, so the dataset has not expired.

In your original post you asked for the archive date - which I assume you to mean as migration date - Another example of terminology misuse icon_evil.gif

So if you were kind enough to say exactly what you want then maybe we could help you more.
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 Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top