<< Click to Display Table of Contents >> MEM |
![]() ![]() ![]() |
Prints a list of all scalar variables (value, date, string). Before Gekko 3.0, such scalar variables were stored in memory (ram), hence the name of the statement. In Gekko 3.0, scalars are stored in databanks, like series and other variable types.
mem;
Consider this example:
%s1 = 'cat'; |
This will produce an overview similar to this:
6 scalars found in 'Work' databank --------------------------------- type name value --------------------------------- DATE %d1 2010 DATE %d2 2011q3 STRING %s1 'cat' STRING %s2 'dog' VAL %v 123.45 --------------------------------- |
For scalars, you may use VAL?, DATE?, STRING?, to print out these individually.
Otherwise, you can also print scalars with the PRT statement.