Time periods

<< Click to Display Table of Contents >>

Navigation:  Gekko User Manual > User manual introduction >

Time periods

Previous pageReturn to chapter overviewNext page

Many Gekko statements accept a local time period stated inside the <>-brackets. For such statements, omitting a local time period generally means that the global time period (cf. TIME) is used instead. There are the following exceptions to that rule:

List of statements where lack of local period means all observations
 

COPY

Handling variable objects, copying them inside the same databank or between databanks.

READ, WRITE

Read or write variables from an external file.

 

For instance, copy x to y; will copy the entire object, including all observations (and not just the observations corresponding to the global time period), whereas copy <2010 2020> x to y; will only copy the observations 2010-20. To copy only the observations corresponding to the global time period, use copy <respect> x to y;. Similarly, READ<respect> and WRITE<respect> can be used.

 

It should be noted that the similar statements IMPORT and EXPORT respect the global time period, in contrast to READ and WRITE. To force IMPORT and EXPORT to use all observations, IMPORT<all> and EXPORT<all> can be used.

 

 


 

Note

 

User defined functions and procedures may also use a <>-field to indicate time period arguments. This can be used to define a local time period to be used inside the function/procedure.