14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9 Data Tables 275<br />

Manipulating Columns<br />

The returned value is a name value, not a quoted string. What this means is you can use it anywhere you<br />

would normally use the actual name in a script. For example, you could subscript it:<br />

column name(2)[1];<br />

12<br />

If you want the name as a text string, just quote it with Char:<br />

char(column name(2));<br />

"age"<br />

To retrieve a list of the names of all columns in a data table, submit Get Column Names.<br />

dt

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!