Try this: HP989/SGAII:if hpmonth >= 7 and hpmonth <= 8 and hpday > 1 or hpday <6 *** EXPRESSION TRUE This was just too complicated: HP989/SGAII:If (HPMonth >= 9 and HPMonth <= 6) and & HP989/SGAII:(HPDay >= 2 or HPDay<= 6) Then *** EXPRESSION FALSE: COMMANDS IGNORED UNTIL MATCHING ELSEIF/ELSE/ENDIF HP989/SGAII: -----Original Message----- From: Connie Samuel [mailto:[log in to unmask]] Sent: Monday, October 22, 2001 7:54 PM To: [log in to unmask] 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 *