HP3000-L Archives

July 2000, 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:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Tue, 25 Jul 2000 14:41:17 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
At 4:20 PM -0400 7/25/00, [log in to unmask] wrote:
...
>         ELSE
>            ECHO
>            ECHO *I* VALID VERSION !BC_VERSION FOR JOBNAME !CMDNAME
>            ECHO
>            CALC !BC_COUNT2 + 01
>            SETVAR BC_COUNT2 !HPRESULT
>         ENDIF
>      ENDWHILE
>ENDIF
>
>When I run this command file, I get the following displays :
>*I* VALID VERSION 01 FOR JOBNAME AA225
>1, $1, %1
>
>I am not able to figure out why the "1, $1, %1" is being displayed.


This is exactly what CALC is *supposed* to do. It's evaluating the
expression that follows, and displaying the result to $stdlist. Try "calc
1" or
"calc 1 + 1" to see what happens. You're getting an answer in three
different bases: decimal, hex, and octal. ("calc 16" illustrates this
nicely)

But CALC also does string calculations. Try "calc 'str' + 'ing'".

Are you really intending to increment BC_COUNT2? If so, then do
"setvar bc_count2 bc_count2 + 1"


Barry Lake                                 [log in to unmask]
Allegro Consultants, Inc.                  www.allegro.com
(408)252-2330

ATOM RSS1 RSS2