Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to specify device parameters with variable?

27 views
Skip to first unread message

Kevin Toppenberg

unread,
Mar 14, 2024, 6:22:32 PM3/14/24
to Everything MUMPS
I can't figure out how to set device parameters via a string.


It specifies " An indirection operator and an expression atom evaluating to a list of one or more USE arguments form a legal argument for a USE."

I don't exactly understand what this is trying to tell me.    See erroneous trials below

yottadb>U $P:(WIDTH=81)

yottadb>SET S="WIDTH=82"

yottadb>U $P:(@S)
%YDB-E-DEVPARUNK, Deviceparameter unknown

yottadb>U $P:(S)
%YDB-E-DEVPARINAP, Device parameter inappropriate to this command

yottadb>U $P:(@S@)
%YDB-E-DEVPARUNK, Deviceparameter unknown

yottadb>U $P:(WIDTH=82)

Can anyone tell me how I could set device parameters via a variable?

Thanks
Kevin

Sam Habiel

unread,
Mar 14, 2024, 10:05:45 PM3/14/24
to Kevin Toppenberg, Everything MUMPS
VEHU>set x=50

VEHU>use $p:(width=x)



--
You received this message because you are subscribed to the Google Groups "Everything MUMPS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to everythingmum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/everythingmumps/288a8806-5486-4ef0-962e-216369c217e1n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Toppenberg

unread,
Mar 15, 2024, 7:56:01 AM3/15/24
to Everything MUMPS
This doesn't answer the question.  I need to construct a string with arbitrary combinations of parameters.  The manual says that indirection is supported.  

Your reply doesn't address my question.

Kevin

Kevin Toppenberg

unread,
Mar 15, 2024, 7:57:16 AM3/15/24
to Everything MUMPS
Actually, to be fair, construction a string with arbitrary combinations of parameters is what was in my mind.  Looking back, I see I didn't explicitly say that.  Sorry.

Kevin

Sam Habiel

unread,
Mar 15, 2024, 8:00:42 AM3/15/24
to Kevin Toppenberg, Everything MUMPS
Use @x (the whole thing)

Jens Wulf

unread,
Mar 15, 2024, 8:12:21 AM3/15/24
to Everything MUMPS
Yes, it works like this:


YDB>S x="(with=499:CLEARSCREEN:Y=0)"

YDB>U $P:@x

Jens Wulf

unread,
Mar 15, 2024, 8:17:36 AM3/15/24
to Everything MUMPS
And I wondered why CLEARSCREEN had no effect.
It seems the the sequence of the parameters is important.
S x="(X=0:Y=0:CLEARSCREEN)"
U $P:@x

works as I expected.
Reply all
Reply to author
Forward
0 new messages