Subject: | |
From: | |
Reply To: | |
Date: | Mon, 22 Oct 2001 20:25:14 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I think what you meant to do was:
!If (HPMonth >= 9 OR HPMonth <= 6) and...
for the Sep to June part. The July and August part should work fine.
Harmik
----- Original Message -----
From: "Connie Samuel" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Monday, October 22, 2001 9:53 PM
Subject: [HP3000-L] Help with a JOB needed
> Below is listed a job that I was hoping would automate our backup.
> Unfortunately, no matter what day it is, the computer returns a false at
> the end of the first IF statement.
>
> I am hoping someone on the list can point out where I am going wrong with
> this job.
>
> Thanks in advance for your help.
>
> /l all
> 1 !JOB BACKDRV,MANAGER/password.SYS;PRI=CS;INPRI=8
> 2 !
> 3 !COMMENT This is the backup that should be run on
> 4 !COMMENT weekdays
> 5 !
> 7 !stream BACKDRV.JOB.SYS;IN=1
> 8 !If (HPMonth >= 9 and HPMonth <= 6) and &
> 9 ! (HPDay >= 2 or HPDay<= 6) Then
> 10 !strmu FOB.job
> 12 ! Echo Run backups Monday thru Friday
> 13 ! Echo from Sep. To Jun.
> 14 !strmu FOB.job
> 15 !ElseIf(HPMonth >= 7 and HPMonth <= 8) and &
> 16 ! (HPDay > 1 or HPDay < 6) Then
> 18 ! Echo Run bcckups on Friday, Saturday, and Sunday
> 19 ! Echo from July. to Aug.
> 20 !Else
> 21 !TELL MANAGER.SYS ------
> 22 ! Exit
> 23 ! EndIf
> 24 !EOJ
> /
>
> Connie Samuel
> Clatsop Community College / Astoria, Oregon
> 503/338-2320
> [log in to unmask] / www.clatsop.cc.or.us
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|