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
 

 

Trace back HSM formatted data set to original data set

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

New User


Joined: 27 Jun 2008
Posts: 11
Location: Chennai

PostPosted: Wed Sep 01, 2010 7:31 pm    Post subject: Trace back HSM formatted data set to original data set
Reply with quote

I have a list of HSM back up data set in the HSM format (i.e:- KHSM.BACK.**). I would like to know the original data set name of these HSM data set relates to. I tried searching but no joy. Kindly suggest.
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: Wed Sep 01, 2010 7:41 pm    Post subject:
Reply with quote

Listing the BCDS will give you both the HSM name and the real name.
An unload of the BCDS will also give the same info into a file.

Storage is good fun isn't it icon_lol.gif
Back to top
View user's profile Send private message
rithuarjun

New User


Joined: 27 Jun 2008
Posts: 11
Location: Chennai

PostPosted: Thu Sep 02, 2010 5:41 pm    Post subject: Reply to: Trace back HSM formatted data set to original data
Reply with quote

Hi Expat,

Yes, storage is very interesting. I felt hard initially but after that it made me to love. (I hope love involves everything!!! Cry, laugh!! etc :lol: )

I tried to unload the BCDS thru IDCAMS DCOLLECT and checked the below website to check for the HSM data set name but not able to found one record which states as HSM data set name.

http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.idaj100/ams997c.htm


Tried to run the PRINT IDS of IDCAMS against the BCDS but it showed as in use. Hence tried the backup version of BCDS but the data looks clumsy and unable to find the data set name.

I have tried to run the REPRO of IDCAMS with the backup version of BCDS but still the data is not clear. all are jumbled words.

Kindly suggest how to get the desired information from the BCDS.
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 Sep 02, 2010 6:17 pm    Post subject:
Reply with quote

If you REPRO the backup of the BCDS into a flat file, then the HSM name should be in pos 1 and the real name in pos 65 of each record.
Back to top
View user's profile Send private message
rithuarjun

New User


Joined: 27 Jun 2008
Posts: 11
Location: Chennai

PostPosted: Thu Sep 02, 2010 8:05 pm    Post subject: Reply to: Trace back HSM formatted data set to original data
Reply with quote

Hi Expat,

I am sorry to bug you.

I've tried to do a repro to a flat file but giving the o/p like below in the flat file.

,,,,,,e,,,,,,,,,Á,,,,,,,,,,,,,,,,,,,B,,,,,,,,,APL195,\,,8,,¨ã",J×,,¶mw
,,,,,,%,,,,,,,,,<,,,,,,,,,,,,,,,,,,,B,,,,,,,,,APL344,\,,8,,A,¿þÎ,!B[,à
,,,,,,¡,,,,,,,,,«,,,,,,,,,,,,,,,,,,,B,,,,,,,,,CMDA15,\,,8,,Fc,+Å>,ñ¾,ì
,,,,,,æ,,,,,,,,,@,,,,,,,,,,,,,,,,,D,,,,,,,,,CMD109,\,,8,,¨,,,¬­Ú-Þ1¿õC

I am using the below JCL

//BCDSLIST EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INDD1 DD DSN=HSM.BCDS.BACKUP.D0008682,DISP=SHR
//OUTDD1 DD DSN=OSG.AS.BCDS.LIST,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(100,100),RLSE),
// DCB=(RECFM=VB,LRECL=27994,BLKSIZE=27998)
//SYSIN DD *
REPRO INFILE(INDD1) OUTFILE(OUTDD1)
/*


Kindly suggest.
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: Fri Sep 03, 2010 11:28 am    Post subject:
Reply with quote

Methinks that you may find that the dataset you are using may be in DFdss format, depending on your HSM definitions.

Have you read the IDCAMS manual to see the parameter, I think, that you could use to REPRO the current BCDS to a flat, which bypasses RLS allocation.

If not, then you may have to perform a recovery of the BCDS from the backup, obviously to a new name icon_lol.gif , and then repro the recovered BCDS to a flat file.
Back to top
View user's profile Send private message
rithuarjun

New User


Joined: 27 Jun 2008
Posts: 11
Location: Chennai

PostPosted: Tue Sep 07, 2010 6:09 pm    Post subject: Reply to: Trace back HSM formatted data set to original data
Reply with quote

Thanks for your suggestion.

The REPRO didn't help me to find the data set names from the BACKUP version of BCDS.

I've tried to do the PRINT IDS(backup version) CHARACTER in batch and it did worked for me.

My issue has been resolved. Thanks a lot.
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


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