Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us