HP3000-L Archives

August 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:
Larry Barnes <[log in to unmask]>
Reply To:
Larry Barnes <[log in to unmask]>
Date:
Wed, 22 Aug 2001 13:52:53 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (129 lines)
Thanks,
Larry, that was the problem.

if !db_fname = 0
 setvar db_fname &
 "CA" + rht("0"+"!hpyear",2) + rht("0"+"!hpmonth",2) + rht("0"+"!hpdate",2)
+ &
 ".CAPACITY"
endif
setvar db_first 43
setvar db_last finfo('!db_fname','eof')-14

-----Original Message-----
From: Simonsen, Larry [mailto:[log in to unmask]]
Sent: Wednesday, August 22, 2001 1:08 PM
To: 'Larry Barnes'
Subject: RE: Script Error Puzzlement


The puszzlement is the .capacity on the file name appendage.  In looking
again this is probably a group.

Try '!dbfname'+'.capacity' in the finfo function.

-------------------------------------------------
Larry Simonsen                Phone: 801-489-2450
Flowserve Corporation     Fax: 801-491-1750
PO Box 2200                    http://www.Flowserve.com
Springville, UT 84663      e-mail: [log in to unmask]
-------------------------------------------------
All opinions expressed herein are my own and reflect, in no way, those of my
employer.

-----Original Message-----
From: Larry Barnes [mailto:[log in to unmask]]
Sent: Wednesday, August 22, 2001 1:20 PM
To: 'Simonsen, Larry'
Subject: RE: Script Error Puzzlement

No, I running this from the CI prompt.

-----Original Message-----
From: Simonsen, Larry [mailto:[log in to unmask]]
Sent: Wednesday, August 22, 2001 12:09 PM
To: 'Larry Barnes'
Subject: RE: Script Error Puzzlement


Looks like a MPEX script.

-------------------------------------------------
Larry Simonsen                Phone: 801-489-2450
Flowserve Corporation     Fax: 801-491-1750
PO Box 2200                    http://www.Flowserve.com
Springville, UT 84663      e-mail: [log in to unmask]
-------------------------------------------------
All opinions expressed herein are my own and reflect, in no way, those of my
employer.

-----Original Message-----
From: Larry Barnes [mailto:[log in to unmask]]
Sent: Wednesday, August 22, 2001 1:06 PM
To: [log in to unmask]
Subject: Script Error Puzzlement

I am creating a script file that aborts at the vary beginning and I'm not
sure why.  The command file is called DBSTATS

The first few lines are:

 PARM db_fname = 0
 setvar db_fname !db_fname
 if db_fname = 0
  setvar db_fname &
  "CA" + rht("0"+"!hpyear",2) + rht("0"+"!hpmonth",2) + rht("0"+"!hpdate",2)
 endif
 setvar db_first 43
 setvar db_last finfo('!db_fname.capacity','eof')-14

The error occurs with the setvar db_last

:dbstats
setvar db_fname 0
if db_fname = 0
*** EXPRESSION TRUE
 setvar db_fname "CA" + rht("0"+"1",2) + rht("0"+"8",2) + rht("0"+"22",2)
endif
setvar db_first 43
setvar db_last finfo('0.capacity','eof')-14
                      ^
An error occurred while accessing the file for FINFO. (CIERR 9984)


If I do a showvar db@ this is what you get

:showvar db@
DB_FNAME = CA010822
DB_FIRST = 43


Why doesn't the setvar db_last like the finfo statement?


If I manually enter the setvar command it works fine.

:setvar db_last finfo('!db_fname.capacity','eof')-14
:showvar db@
DB_FNAME = CA010822
DB_FIRST = 43
DB_LAST = 345


Larry A. Barnes
Systems Administrator - HP3000
Coldwater Creek Inc.
751 W. Hanley Ave.
Coeur d'Alene, ID  83815-3213

http://www.coldwatercreek.com
Voice: 208 265-3927
Fax:   208 265-3203
Cell:  208 610-0127

* 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