MEM

<< Click to Display Table of Contents >>

Navigation:  Gekko User Manual > Gekko statements >

MEM

Previous pageReturn to chapter overviewNext page

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.

 


 

Syntax

 

mem;

 

 


 

Example

 

Consider this example:

 

%s1 = 'cat';
%s2 = 'dog';
%= 123.45;
%d1 = date(2010); //or use 2010a or 2010a1 to make it a date.
%d2 = 2011q3;
mem;

 

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    

---------------------------------

 

 


 

Note

 

For scalars, you may use VAL?, DATE?, STRING?, to print out these individually.

 

Otherwise, you can also print scalars with the PRT statement.

 

 


 

Related statements

 

STRING, DATE, VAL