HP3000-L Archives

October 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Paveza, Gary" <[log in to unmask]>
Reply To:
Paveza, Gary
Date:
Mon, 22 Oct 2001 23:13:49 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (72 lines)
!If    (HPMonth >= 9 and HPMonth <= 6) and &
!      (HPDay >= 2  or HPDay<= 6) Then

If I ran this right now, the expression would expand to:

if (10 >=9 and 10 <=6) and (2 >=2 or 2 <=6) then

so (True and False) and (True or True) then

False and True = False

The problem is your first section, you will never have HPMonth >=9 and
HPMonth <=6 at the same time.  Your expression will always be False.

-------------------------------------------------------------
Gary L. Paveza, Jr.
Production Support Analyst - Lead
(302) 761-3173 - voice
(877) 720-2970 - pager

        -----Original Message-----
        From:   Connie Samuel [SMTP:[log in to unmask]]
        Sent:   Monday, October 22, 2001 10: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 *

ATOM RSS1 RSS2