This is an old revision of the document!
Examples of common export calls are provided below.
It is convenient to set up one or more import directory paths up front. For example:
string $exportDir= $home + "/exportData"
This code exports a 2-dimensional population TOOL object (by age, by time) to a csv file with age in the rows and time in the columns.
export (refPop[a,ts]; dataFormat=coordinate, fileFormat=text, allCoord=off, delimiter=",", \ heading=on, file=$exportDir/refPop.csv)
This is an example of exporting to whatIf's native (binary) TOOL file format:
export (customCensusPop[pzce,s,byrs,acc]; file=$exportDir/customCensusPop, format=tool)