Using SETSYSTEMVAL in Quiz

Brian Schalme bschalme@airspeed.mb.ca
Thu, 26 Sep 2002 14:48:20 -0500


	Guy,

	SETSYSTEMVAL returns a boolean. QUIZ is gagging because you are trying
to assign a boolean value to an integer item. Try something like:
def a integer size 1 = 1 if setsystemval('STDATE',ascii(st-date,8))

	HTH.

		Brian Schalme
		Airspeed Consulting
		Winnipeg MB
		http://www.airspeed.ca



Guy Werry wrote:
> 
> Hey there all.  Quiz 7.33.D3 on HP-Ux 10.20.
> 
> I'd really like to be able to use Quiz to do a SETSYSTEMVAL, but it keeps
> gagging on me, even though the manual seems to indicate that Quiz knows how
> to use SETSYSTEMVAL.
> 
> Below is an example of the sort of error that I get:
> 
> > def a         integer signed size 1 =
> (setsystemval('STDATE',ascii(st-date,8)))
>                                          ^^^^^^^^^^^^
> *E* Expected:  -  (  ABSOLUTE  CEILING  CHECKSUM  DATE  DATEEXTRACT  DAYS
>       ROUND  LINKVALUE  FLOOR  LASTDAY  ADDCENTURY  REMOVECENTURY  NCONVERT
>       SIZE  INDEX  MOD  SUM  <number>  MISSING  NULL  SYSDATE  SYSTIME
>       <qualifier>  <item>
> 
> Anyone got any bright ideas?
> 
> G.L. (Guy) Werry
> Senior Systems Analyst
> Hudson Bay Mining & Smelting
> Ph:  204-687-2374
> Fax: 204-687-2771
> guy.werry@hbms.ca
> 
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
> Unsubscribe: "unsubscribe" in message body to powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.