Acronyms

Top  Previous  Next

Assignment statements can involve acronyms.

Examples:

(acronym.gms)

acronyms nameforit,nextone;

acronym  acronym3

acronym  doit

parameter textstrings(i)

     /i1 nameforit,       i2 nextone,      i3 acronym3/ ;

parameter textstring(i)

     /i1 doit,      i2 1,      i3 doit/ ;

display textstrings ;

parameter zz(i);

zz(i)= textstring(i)  ;

display zz;

Notes:

Assignment statements involving acronyms can only set other items equal to acronyms or other parameters containing acronyms.
Numerical operations (+ - * / **) cannot be done.
Numbers can be mixed in with acronyms in a data item but cannot be subsequently manipulated numerically.
Acronyms cannot be used in numerical terms in equation specification (..) commands excepting where they appear in conditionals.