# Headers

This section is mandatory and must be the first one in the mads text file. It includes, in fixed order, the name of the country, the name of the project, and a second name to specify the model (data set name). The local currency is defined by its name and exchange rate to the US dollar. This is followed by the opportunity cost of capital (OCC – used for present value calculations), and the project life (period of analysis). Then there is an optional section to define file specifications for Data import-export , and finally an indicator on the type of output for calculation results (plain text or html web format). The syntax is shown in the example below.

### Example of headers

Country Name = ‘Mali’ ;
Project Name = ‘Plaine de Daye’;
Data Set Name = ‘Analyse financière’;
Currency Name = ‘000 FCFA’; Exchange Rate = 0.32;
OCC = 12.0 %;
Project life = 20 years;
Results as html;

### Editor templates

There are two possible templates, they cover Headers as part of an entire empty model.

In English:

Country Name = ‘countryName’ ;
Project Name = ‘projectName’ ;
Data Set Name = ‘dataSetName’ ;
Currency Name = ‘currency’ ;
Exchange Rate = 1 to the US Dollar ;
OCC = 12 % ;
Project life = 20 years ;
File specs : ??
// optional list of file specs for import : export
end ; ??
Results as [plain or html];

// A model is made of declarations of type Commodity, Plan, Script or Table
// A script item can be a command (print, display, filespec or export), a variable declaration
// or an instruction (variable declaration or variable Reference = expression)
// where expression combines numbers, [series], varRef, commRef, functions using - / * ^ or ()
//
// Use ctrl-space for content proposals

end model

With keywords in French:

Nom du pays = ‘countryName’ ;
Nom du projet = ‘projectName’ ;
Nom du jeu de données = ‘dataSetName’ ;
Nom de la monnaie = ‘currency’ ;
Taux de change = 1 pour un Dollar EU ;
COC = 12 % ;
Vie du projet = 20 années ;
File specs : ??
// optional list of file specs for import : export
end ; ??
Résultats = [plain or html];
// A model is made of declarations of type Commodity, Herd, Plan, Script or Table
// A script item can be a command (print, display, filespec or export), a variable declaration
// or an instruction (variable declaration or variable Reference = expression)
// where expression combines numbers, [series], varRef, commRef, functions using - / * ^ or ()
//
// Use ctrl-space for content proposals

end model

The ‘File specs’ section is optional. Specifying files for data export or import can also be done within a Script . A file specification is defined by the fileSpec keyword followed by an ID and a string:

Example of fileSpec:
fileSpec MyFile1 = “C:\users\msimeon\Documents\myfile1.ods” ;