Chapter Contents |
Previous |
Next |
DMYTECWD |
Windows specifics: | all |
Syntax | |
Details | |
See Also |
Syntax |
DMYTECWD (first-string, second-string) |
Details |
The DMYTECWD function return the number of tokens, or words, in a packet. Because data packets sent from DataMyte can be up to 256 characters long, but the SAS System can only process strings up to 200 characters long, you may have to break the packet up into two strings. Always break up the packet at a token delimiter, which is a semicolon (;). Both the first-string and second-string arguments can be a character variable, a character literal enclosed in quotes, or another character expression.
The following example counts words in the two character variables, FIRSTSTR and STR.
data dmyte2; length firststr str $ 200; firststr='07/16/83,14:00;M. Jones;Press 1;000;2.43;2.91'; str='2.83;2.80;'; count=dymtecwd(firststr,str); /* This sample packet contains 18 words. */ put count=; run;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.