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
 

 

Regarding the delete command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Regarding the delete command
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: 413
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 11:13 am    Post subject: Re: Regarding the delete command
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    Post subject: Re: Regarding the delete command
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: 413
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 11:55 am    Post subject: Re: Regarding the delete command
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    Post subject: Re: Regarding the delete command
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    Post subject:
Reply with quote

Hi saurabh

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

check the below site for other details
http://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    Post subject: Re: Regarding the delete command
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    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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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