DSMPAR580S TOO MANY TOKENS IN CONTROL LINE


Question

How many tokens is "too many"? I got this on a macro call with 1 3-character token and 60 1-character tokens. This was far less than Script's 255-char limit, so I was surprised to run into it. It's user data, so I have no control over its format. I'm operating on this stuff as a string, so I don't need it tokenized at all...is there any way to tell Script that?

Answer

 Put the stuff inside quotation marks to cause the whole string
 to be treated as a single token. That token buffer is 1024 bytes.
 Each string token uses a variable number of those bytes, plus
 a length, plus a code that indicates "string". The maximum number of
 short string tokens seems to be around 55.

 Appended by: Katie Huxford

Last updated: 95/07/18 18:53:23

Previous Contents Next