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

Regarding the delete command


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

New User


Joined: 02 Jun 2005
Posts: 16

PostPosted: Tue Dec 06, 2005 10:44 am
Reply with quote

Hi all
If i type D against a dataset can that dataset be restored...?

If i do the same delete with the JCL using IDCAMS Utility is it still possible to restore it?

Thanks
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 11:13 am
Reply with quote

Hi saurabh7878,

For your question I think you can restore the dataset using JCL. In JCL you need to specify the DCB, Record format and Block size to retrieve it.

For your first part of your question I think try using 'hrecover' option in the command prompt.

Usage

hrecover 'myid.mypds'


Hope this helps.
Back to top
View user's profile Send private message
saurabh7878
Warnings : 1

New User


Joined: 02 Jun 2005
Posts: 16

PostPosted: Tue Dec 06, 2005 11:34 am
Reply with quote

HI know
Thanks for the help...
Can you please give me the syntax JCl to restore the dataset........

Appreciate your help

THanks
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 11:55 am
Reply with quote

Hi saurabh7878,

This is the JCL which I have used when my file got corrupted. Here you can retrieve all the members in the dataset except the member name you have specified.

Code:
//BACKUP$  JOB MSGCLASS=X,MSGLEVEL=(1,1),CLASS=B,
//                       REGION=5M,NOTIFY=&SYSUID,PRTY=15
//SPET1  EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD *
//SYSUT2 DD DSN=MYID.MYPDS(abc),DISP=OLD,
//                  DCB=(DSORG=PO,RECFM=FB,LRECL=80,BLKSIZE=8000)
//SYSIN   DD DUMMY 


Hope this helps.

NOTE

I have used the above JCL when unknowingly I specified my LOADLIB as my PDS so everythig got BROWSE substituted. So I used the above JCL to recover my DS but I couldn't recover the source program for which I used wrong JCL.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Dec 07, 2005 10:55 am
Reply with quote

Hi,

Can u pl explain the usage of hrecover option.

hrecover 'myid.mypds'

I tried , but showing as invalid command.
Back to top
View user's profile Send private message
EnjoyMF

New User


Joined: 27 May 2005
Posts: 88

PostPosted: Wed Dec 07, 2005 12:13 pm
Reply with quote

Hi saurabh

use 3.4 option & next to the dataset give the option HRecover

check the below site for other details
www.it.jhu.edu/etso/engineeringservices/mainframe/storageadmin.html


Cheers...prasad
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Dec 07, 2005 12:31 pm
Reply with quote

Thanks for yr help..
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top