|
GROUP LABEL TO STRINGSName:
It may sometimes be useful to convert these group labels to individual strings to permit greater flexibility in how they are used. With this command, you define a base name. Then an integer is appended to the base name to create the individual strings. For example, if the base name is S and there are 10 values in the group label variable, this command will create the strings S1, S2, ..., S10. Currently, a maximum of 999 strings can be created with this command.
where <sbase> is the base name for the strings to be created; and <ig> is a previously created group label variable name.
The current maximum number of names (i.e., for all parameters, variables, matrices, and functions/strings) is currently set to 50,000. An error message will be generated if either of these limits is exceeded when running this command.
set convert character on skip 25 read draft69c.dat rank day month . let ig = group label month let smonth = group label to strings ig print smonth1 to smonth^numstrinThe following output is generated. FUNCTIONS-- SMONTH1 --January SMONTH2 --February SMONTH3 --March SMONTH4 --April SMONTH5 --May SMONTH6 --June SMONTH7 --July SMONTH8 --August SMONTH9 --September SMONTH10--October SMONTH11--November SMONTH12--December
Date created: 10/21/2011 |