|
Chapter Contents |
Previous |
Next |
| The INTPOINT Procedure |
proc sort data=arcdata;by _name_;prior to calling PROC INTPOINT. Technically, you do not have to sort the data, only to ensure that all similar values of the NAME list variable are grouped together. If you specify the ARCS_ONLY_ARCDATA option, PROC INTPOINT automatically works as if GROUPED=ARCDATA is also specified.
proc sort data=condata;by _row_;prior to calling PROC INTPOINT. Technically, you do not have to sort the data, only to ensure that all similar values of the ROW list variable are grouped together. If you specify the CON_SINGLE_OBS option, or if there is no ROW list variable, PROC INTPOINT automatically works as if GROUPED=CONDATA has been specified.
proc sort data=condata;by _col_;prior to calling PROC INTPOINT. Technically, you do not have to sort the data, only to ensure that all similar values of the COLUMN list variable are grouped together.
... _XXXXX_ ....
bbb
bbb
aaa
ccc
ccc
is a candidate for the GROUPED= option.
Similar values are grouped together. When PROC INTPOINT is reading the ith observation,
either the value of the _XXXXX_ variable is the same as the (i-1)th
(that is, the previous observation's) _XXXXX_ value, or it is a new _XXXXX_ value
not seen in any previous observation. This also means that if the
ith _XXXXX_ value is different from the (i-1)th _XXXXX_ value,
the value of the (i-1)th _XXXXX_ variable will not be seen in any
observations i, i+1, ... .
options validvarname=v6;
options validvarname=v6;
data arcdata;
input _from_ $ _to_ $ _name $ ;
datalines;
from to1 .
from to2 arc2
TAIL TO3 .
;
data densecon;
input from_to1 from_to2 arc2 tail_to3;
datalines;
2 3 5
;
proc intpoint
arcdata=arcdata condata=densecon;
run;
The SAS System does not uppercase character string values within SAS
data sets. PROC INTPOINT never
uppercases node names, so the arcs in observations 1, 2, and 3 in
the preceeding ARCDATA= data set have
the default names from_to1, from_to2, and TAIL_TO3,
respectively.
When the dense format of the CONDATA= data set is used,
PROC INTPOINT does uppercase values
of the NAME list variable, so the name of the arc in the
second observation of the
ARCDATA= data set is ARC2.
Thus, the second arc has two names; its default from_to2
and the other that was
specified ARC2.
input from_to1 from_to2 arc2 tail_to3;as really being
INPUT FROM_TO1 FROM_TO2 ARC2 TAIL_TO3;The SAS variables named FROM_TO1 and FROM_TO2 are not associated with any of the arcs in the preceeding ARCDATA= data set. The values FROM_TO1 and FROM_TO2 are different from all of the arc names from_to1, from_to2, TAIL_TO3, and ARC2. FROM_TO1 and FROM_TO2 could end up being the names of two nonarc variables.
data arcdata;
input _from_ $ _to_ $ _name $ ;
datalines;
from to1 .
from to2 arc2
TAIL TO3 .
;
data densecon;
input from_to1 from_to2 arc2 TAIL_TO3;
datalines;
2 3 5
;
proc intpoint
arcdata=arcdata condata=densecon;
run;
options validvarname=v6;all NAME list variable values in the ARCDATA= data set are uppercased. See the "Case Sensitivity" section.
ERROR: The HEAD list variable value in obs i in the ARCDATA is missing, - the TAIL list variable value of this obs
is nonmissing. This is an incomplete arc specification.
If there are lots of observations that have this fault,
messages that are similar are issued for only the first VERBOSE=
such observations.
After the ARCDATA= data set has been read,
PROC INTPOINT will issue the message
NOTE: More messages similar to the ones immediately above
could have been issued but were suppressed as VERBOSE= v.
If observations in the ARCDATA= data set have this error, PROC INTPOINT stops
and you have to fix the data.
Imagine that this error is only a warning and PROC INTPOINT proceeded to
other operations such as reading the CONDATA= data set.
If PROC INTPOINT finds there are numerous errors when reading that data set,
the number of messages issued to the SAS log are also limited
by the VERBOSE= option.
NOTE: To see all messages, specify VERBOSE=v.is issued. The value of v is the smallest value that should be specified for the VERBOSE= option so that all messages are displayed if PROC INTPOINT is run again with the same data and everything else.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2000 by SAS Institute Inc., Cary, NC, USA. All rights reserved.