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:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Thu, 10 Mar 2005 10:05:11 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (90 lines)
The INPUT command reads the input as a string.  Comparing that string to
an integer doesn't work.  To convert the string to an integer, you will
need to dereference it in a SETVAR:
  SETVAR USER_INT !USER

You might want to precede that with IF NUMERIC(USER) to make sure the
string contains only numeric data.

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Reggie Monroe
Sent: Thursday, March 10, 2005 9:34 AM
To: [log in to unmask]
Subject: If statement

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