Chapter Contents

Previous

Next
DMYTECWD

DMYTECWD



Determines the total number of words in a DataMyte packet

Windows specifics: all


Syntax
Details
See Also

Syntax

DMYTECWD (first-string, second-string)

first-string
represents a fewer-than-200 character portion of the packet.

second-string
represents the balance of the packet. If the packet is 200 or fewer characters long, specify second-string as a null 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.