Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

DCL Programming and Dates?

» close window

The Question is:

 
How do I exclude to my backup command procedure to not incluse sunday and
 mondays night backups.  presently I do a submit.after="tomorrow +01:00:00"
 
 


The Answer is :

 
  Please acquire and read one of the available resources on DCL
  programming.
 
  Most easily, have the procedure resubmit itself on a daily basis
  (eg: /AFTER="TOMORROW+01:00") and then check for and exit based
  on the day of the week.
 
  The following are related examples of basic DCL programming...
 
 
 
$! see if a full backup should be performed, default not...
 
$ DOFULLBACK = "FALSE"
$ day = F$Edit(f$cvtim(,,"WEEKDAY"),"COLLAPSE,UPCASE")
$ if "''day'" .eqs. "FRIDAY" then DOFULLBACK = "TRUE"
 
 
 
 
$! see if a full backup should be performed tonight
 
$ day = F$Edit(f$cvtim(,,"WEEKDAY"),"COLLAPSE,UPCASE")
 
$ skipdays = "SATURDAY,SUNDAY"
$ if f$locate(",''day',",",''skipdays',") .ne. f$length(",''skipdays,'")
$ then
$   EXIT
$ endif
 

answer written or last revised on ( 6-JUN-2001 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.