HP3000-L Archives

March 2005, Week 2

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:
Paul Christidis <[log in to unmask]>
Reply To:
Date:
Thu, 10 Mar 2005 10:01:22 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (92 lines)
Reggie,

The 'user' variable is of type string and you are trying to perform a
numeric comparison.

Add the statement:
        !setvar user ![RTRIM(user)]
after the line with the 'input' statement and your command file will work.

Regards
Paul Christidis


HP-3000 Systems Discussion <[log in to unmask]> wrote on 03/10/2005
09:34:12 AM:

> I am trying to create a small if statement and I can not seem to resolve
> this error. I would appreciate any assistance.
>
>
> Here is what I am doing.
>
> !setvar user 0
> !input user<ms1.files
> !showvar user
> !if user>3
> !tell reggie,manager.sys user count is larger than 3
> !endif
>
>
> this is the error I am receiving.
> 217 :SETVAR user 0
>
> 218 :INPUT user<ms1.files
>
> 219 :SHOWVAR user
>
> 220 USER = 47
>
> 221
>
> 222 :IF user>3
>
> 223 ^
>
> 224 Unexpected character found in string. (CIERR 9815)
>
> 225 :TELL reggie,manager.sys user count is larger than 3
>
> 226 :ENDIF
>
> 227 This ENDIF command does not have a corresponding IF.
>
> 228 The ENDIF is ignored. (CIWARN 1747)
>
> 229 :EOJ
>
>
> Regards,
>
> Reginald Monroe
> Spvsr., Systems Admin
> Mercury Insurance - Information Technology
> (714) 671-6753
> [log in to unmask]
>
>
> This email and/or any files or attachments transmitted with it are
> confidential and intended solely for the use of the individual or
> entity to whom they are addressed, and may contain information that
> is privileged, confidential and exempt from disclosure under
> applicable law. If you are not the intended recipient, or the
> employee or agent responsible for delivering the message to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this e-mail and/or any files or
> attachments transmitted with it is strictly forbidden. If you have
> received this email in error, please delete the e-mail and/or any
> files or attachments, and also notify the system manager
> ([log in to unmask]) of the error. Please note that any
> views or opinions presented in this email are solely those of the
> author and do not necessarily represent those of the company.
> Finally, the recipient should check this email and any attachments
> for the presence of viruses. The company accepts no liability for
> any damage caused by any virus transmitted by this email and/or any
> files or attachments transmitted with it.
>
> * 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