MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ADRDSSU-DSCHA

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Wed Apr 13, 2005 10:45 am    Post subject: ADRDSSU-DSCHA Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Apr 13, 2005 11:34 am    Post subject: Reply with quote

abracadabra,

Try using
Code:

BY((DSCHA EQ 0))   


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Wed Apr 13, 2005 11:57 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Apr 13, 2005 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Wed Apr 13, 2005 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Tue May 17, 2005 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group