Re: Specifying blank custom attribute values in SPSSINC SELECT Variables

Posted by Art Kendall on
URL: http://spssx-discussion.165.s1.nabble.com/Specifying-blank-custom-attribute-values-in-SPSSINC-SELECT-Variables-tp5740494p5740497.html

Thank you.
For the archive.

This is what worked when selecting variables on 3 custom variable attributes
criteria when the value on one criterion was blank.
TITLE 'Variables about HH water '.
SUBTITLE 'Single input variables NOT part of Multiple Response set'.
* DROPPED    /ATTRHASALL 'Var.Grouping' 'Source' 'MR.Set'   .
* which meant all 3 custom attributes had to be non-blank.
*/ATTRVALUES specifies pairs of attribute names and value lists.
*"For each pair, if the variable has the named attribute, .
* the attribute value must be one of the values listed for that attribute.
* If the variable does not have the attribute, the test is ignored.".
*.
* NOTE distinction between  Paired vs Standalone criteria.
*.
SPSSINC SELECT VARIABLES /HELP.
SPSSINC SELECT VARIABLES MACRONAME = '!InputSingle'
    /PROPERTIES
    TYPE=NUMERIC
    /ATTRVALUES
    NAME= Var.Grouping VALUE="Water"
    NAME1=Source VALUE1="input" NAME2=MR.Set VALUE2=""
    /OPTIONS
    ORDER=FILE
    PRINT=YES.



-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Art Kendall
Social Research Consultants