col

0     0     Edited Jun 15, 2017

Returns value in the specified column.

Usage

x ← col(string_column_name)  


Arguments

string_column_name
The column whose data value is to be returned. Note that it must be a string, e.g., "Q1" rather than just a character sequence, e.g., Q1


Examples

pctin(col("Q1"),1)

The above is equivalent to:
pctin(Q1,1)



This function is useful when the column name is stored in a variable, such as in a loop instance variable. For example:

pctin(col(@loopvar),1)

pctin(strreplace("Q5_{brandcode}_1", @loopvar_brandcode),1)

See Also


Leave a Comment

Please sign in to leave a comment.