Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Long arguments passed to programs


From   Michael Ingre <[email protected]>
To   <[email protected]>
Subject   Re: st: RE: Long arguments passed to programs
Date   Thu, 08 Jan 2004 12:55:26 +0100

Nick Cox:
> First, and perhaps perversely, I'd recommend something
> different. Why insist on commas? Why not recommend
> a space-separated list?

I agree with space separated lists and that is what I will have, however I
would like to be able accept several different lists each separated by a
comma sign as a single argument:

. longarguments arguments( arg1_list1 arg2_list1 arg3_list1 , arg1_list2 ///
. arg2_list2 arg3_list2 , arg1_list3 , arg1_list4 arg2_list4 arg3_list4 ///
. arg4_list4 arg5_list4 ar6_list4 )

The thing is, the limit of 244 characters for a string variable is on the
margin for me. I would like to be able to accept longer lists (up to around
1000 characters) for a single argument.

> Second, see help on -limits- or [R] limits.

Thanks Nick. That was exactly what I was looking for. The limit of 1,081,511
characters in a macro is well beyond my need!

It would be perfect for me if there was a way to pass the argument list
described above directly into a macro, avoiding the limit of string
variables. An -optional_namelist- that accepted a comma sign (or another
list delimiter however, comma signs are intuitive) as an element would be
perfect. 


Michael

----------------- 
PhD-student 
Department of Psychology
Stockholm University &
National Institute for
Psychosocial Medicine
 






*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index