Sets the costs of operations for later use by the COMPGED function
Category: | Character |
Restriction: | Use with the COMPGED function |
Interaction: | When invoked by the %SYSCALL macro statement, CALL COMPCOST removes quotation marks from its arguments. For more information, see Using CALL Routines and the %SYSCALL Macro Statement. |
is a character constant, variable, or expression that specifies an operation that is performed by the COMPGED function.
is a numeric constant, variable, or expression that specifies the cost of the operation that is indicated by the preceding argument.
Restriction | Must be an integer that ranges from –32767 through 32767, or a missing value |
options pageno=1 nodate linesize=80 pagesize=60; data test; length String $8 Operation $40; if _n_ = 1 then call compcost('insert=',10,'DEL=',11,'r=', 12); input String Operation; GED=compged(string, 'baboon'); datalines; baboon match xbaboon insert babon delete baXoon replace ; proc print data=test label; label GED='Generalized Edit Distance'; var String Operation GED; run;