HP3000-L Archives

August 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:
Francois Desrochers <[log in to unmask]>
Reply To:
Francois Desrochers <[log in to unmask]>
Date:
Wed, 10 Aug 2005 07:51:38 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (96 lines)
Jim,

This may look a bit silly and may not be very efficient but how about letting Store do the checking. Be aware that I'm making assumptions on how Store works...

:comment 
:comment The file equate should cause a failure
:comment when Store starts setting the backup destination.
:comment This assumes that the fileset validation has
:comment occurred prior to this.
:comment
:file t;dev=disc;save
:store test~-test01;*t;show
STORE/RESTORE VERSION   C.70.16 (C) 1986 HEWLETT-PACKARD CO.

STORE  test~-test01;*t;SHOW

WED, AUG 10, 2005,  8:27 AM


EXPECTED A '.', '/', ',', OR ';' TO FOLLOW THE FILE NAME PART OF
A FILESET.  '.' SPECIFIES A GROUP NAME PART IS TO FOLLOW, '/'
SPECIFIES A LOCKWORD IS TO FOLLOW, ',' SEPARATES THIS FILESET FROM
THE NEXT, AND ';' SPECIFIES THE END OF THE FILESETLIST.
SYNTAX 'fname[/lockword][.gname[.aname]]'  (S/R 1012)

STORE aborted because of error. (CIERR 1090) 

:store test@-test01;*t;show
STORE/RESTORE VERSION   C.70.16 (C) 1986 HEWLETT-PACKARD CO.

STORE  xsa@-xsa01;*t;SHOW

WED, AUG 10, 2005,  8:36 AM


FILENAME GROUP    ACCOUNT  VOLUME RESTRICTIONS            SECTORS CODE   MEDIA
STORE WAS UNABLE TO CREATE NEW PERMANENT DISC FILE
 "/MYACCT/MYGROUP/T", OLD FILE EXISTS (S/R 2306)

STORE aborted because of error. (CIERR 1090)
:purge t


You can then check STOREJCW and/or STORE_ERROR. If it's 2306, the fileset is likely valid. It does not tell you what's wrong with it, not does it tell you if it will actually back up all the files you want / don't want.

Just an idea.

_________________________________ 
François Desrochers
QA Analyst, AMXW
Speedware
Division of Activant Solutions Inc.

6380 Cote de Liesse Rd., Suite 110
St. Laurent, Quebec
Canada H4T 1E3

T: 514.747.7007 ext. 8271
F: 514.747.3380


E-mail:   fdesroch.<<removethis>>@speedware.com 
Web site: www.speedware.com
_________________________________

Notice: This transmission is for the sole use of the intended recipient(s) and may contain information that is confidential and/or privileged. If you are not the intended recipient, please delete this transmission and any attachments and notify the sender by return email immediately. Any unauthorized review, use, disclosure or distribution is prohibited.

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Vance, Jeff H (Cupertino)
Sent: Wednesday, August 10, 2005 12:48 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] Silly question on syntax checking.

 Hi Jim,

There isn't a single CI function which does this. However, you could parse out filenames left and right of the minus sign and pass each of these filenames to FSYNTAX.  You might need to special case the fact that a space is required after the minus in POSIX syntax.

HTH,
 Jeff Vance, vCSY

-----Original Message-----
Among the CI evaluator functions there is one called
FSYNTAX("<string>") that evaluates a string and then returns another string indicating what kind of filename was parsed or an error if nothing or an invalid one given.  Is there a similar function available to parse whether or not a string is a valid STORE fileset expression, like "@[log in to unmask], @[log in to unmask]@ - @[log in to unmask]" for example?

Regards,
Jim

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


Notice: This transmission is for the sole use of the intended recipient(s) and may contain information that is confidential and/or privileged.  If you are not the intended recipient, please delete this transmission and any attachments and notify the sender by return email immediately.  Any unauthorized review, use, disclosure or distribution is prohibited.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2