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.x, such scalar variables were stored in memory (RAM), hence the name of the statement.

 


 

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:

 

Work databank: 5 scalar(s) found

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

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

 

DATE, STRING, VAL