View previous topic :: View next topic |
Author |
Message |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Wed Apr 13, 2005 10:45 am Post subject: ADRDSSU-DSCHA |
|
|
Hi,
At present most of my backup jobs in the application are such that it includes all datasets starting with A.**. So what happens is that certain datasets get backed up again and again even though there has not been an update since the last backup.
I decided to use the following code such that only those datasets which have either been recently created ot have been updated are backed up. However, its not working as all files are taken up again for selection. Is there any other way to do this?
DS(INCL(A**) -
BY(DSCHA EQ YES)) -
Thanks _________________ Cheers! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Apr 13, 2005 11:34 am Post subject: |
|
|
abracadabra,
Try using
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Wed Apr 13, 2005 11:57 am Post subject: |
|
|
Thanks Kolusu. Zero worked in the sense that it did not pick any of the exiting datasets. If there is a new dataset it picks it up. However, if any old dataset is updated, it does not pick this dataset.
Is there any way tot ake care of this?
What I am really trying to do is enhance the performance of the backup jobs so that it does not keep taking the same back ups again and again. It should only take backups if there is a new file or some old files have been updated.
However, the following code does not seem to be working
Code: |
DUMP DS(INCL(A.**) -
BY(DSCHA EQ 0)) -
OUTDD(TAPE1) -
TOL(ENQF)
|
First time run backed up all the A.* datasets. After I updated a few of those A.* files and ran again it gave a return code of 4 which means none of the datasets were picked up for backup.
From the ADRDSSU document, I could find the following explanation for DSCHA
DSCHA EQ | NE Data-set-changed flag: YES | NO
It should ideally work but I guess I am missing something. Will appreciate any help from you guys.
Thanks _________________ Cheers! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Apr 13, 2005 1:12 pm Post subject: |
|
|
abracadabra,
Please do not open more than 1 topic for the same question. This is the second time you did that. I deleted your other new topic and copied the contents over here. Post any feedback/questions in the same topic
Thanks
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Wed Apr 13, 2005 1:29 pm Post subject: |
|
|
Sorry about that Kolusu. Was hoping to get a reply that way since nobody could give a solution.
Will keep this in mind henceforth _________________ Cheers! |
|
Back to top |
|
 |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Tue May 17, 2005 8:30 am Post subject: |
|
|
Hi,
I was thinking of using a Reference Date check BY(REFDT,GE,*,-7)
This will ensure that only those files which have been opened in the last 7 days are selected.
I think this will also avoid the problem of picking up all available datasets with the naming convention A.**
Does anybody think this will cause a problem ?
Thanks _________________ Cheers! |
|
Back to top |
|
 |
|
|