View previous topic :: View next topic
|
Author |
Message |
saurabh7878 Warnings : 1 New User
Joined: 02 Jun 2005 Posts: 16
|
|
|
|
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 |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
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 |
|
|
saurabh7878 Warnings : 1 New User
Joined: 02 Jun 2005 Posts: 16
|
|
|
|
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 |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
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 |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Hi,
Can u pl explain the usage of hrecover option.
hrecover 'myid.mypds'
I tried , but showing as invalid command. |
|
Back to top |
|
|
EnjoyMF
New User
Joined: 27 May 2005 Posts: 88
|
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Thanks for yr help.. |
|
Back to top |
|
|
|