|
CHARACTER VARIABLE (SET)Name:
Dataplot has two commands for creating character variables. If the SET CONVERT CHARACTER command is set to ON or CATEGORICAL, then the READ command will parse character variables and save them to the file "dpzchf.dat". The LET ... = STRING VARIABLE command can create a character variable from a list of pre-defined strings (or literal text enclosed in quotes). This command will also save the character variable to "dpzchf.dat". By default, either of these commands will overwrite the current contents of "dpzchf.dat". However, you can request that the new character variables be appended to the current contents of "dpzchf.dat" instead. Typically, the append option is most likely to be used with the LET ... = STRING VARIABLE command.
where OVERWRITE specifies that the current contents of "dpzchf.dat" will be overwritten and APPEND specifies that the new character variables will be appended to the current contetns of "dpzchf.dat".
SET CHARACTER VARIABLE APPEND
rm dpzchf.dat
set convert character on
read ix iy
Row_1 xxxxx
Row_2 yyyyy
Row_3 zzzzz
end of data
list dpzchf.dat
pause
The following output is generated
2
IX 3
IY 3
Row_1 xxxxx
Row_2 yyyyy
Row_3 zzzzz
.
set character variable append
read iw
aaaa
bbbb
cccc
dddd
end of data
list dpzchf.dat
The following output is generated
3
IX 3
IY 3
IW 4
Row_1 xxxxx aaaa
Row_2 yyyyy bbbb
Row_3 zzzzz cccc
dddd
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 01/22/2020 | ||||||||||