|
Usage |
Top Previous Next |
|
Acronyms can be used in scalar, parameter and table statements as well as in calculation - assignment statements and conditionals. Examples: acronyms nameforit,nextone; acronym acronym3 the third one acronym doit any old acronym set i /i1, i2, i3 /; parameter textstrings(i) /i1 nameforit, i2 nextone, i3 acronym3/ ; parameter textstring(i) /i1 doit, i2 1, i3 doit/ ; display textstrings; file putacronym; put putacronym; put nameforit // loop(i,if(textstrings(i)= nameforit, put 'Something'); put textstrings(i) / ); scalar flagtome; flagtome=doit; equation aa(i); variables x(i); aa(i)$(textstring(i)=doit).. 3*x(i)=e=1; display flagtome,textstring; parameter zz(i),rr(i); zz(i)=textstring(i) ; display zz; table acks(i,i) i1 i2 i3 i1 doit i2 doit i3 doit; display acks; Notes:
|