API Reference
Execution Commands
Command
Python
Description
interrupts the report (current and upper levels)
prompts a question
will not be implemented
produces a beep sound
changes the current directory
to be implemented
indicates the file and line currently being executed
defines a macro
loops over a list of values
not supported by Python
(un)conditional branch to a label
increments the current period t (default is 1)used when evaluating a LEC expression No equivalent (PythonIS indentation-sensitive)enables or disables indentation
not supported by Python
marks a branch point
maximizes the IODE window (OLD interface)
minimizes the IODE window (OLD interface)
creates a new directory
use backslash \
enables or disables multiple lines
displays a message and waits for a key press
no need
ends a loop
$noparsing
enables or disables parsing of textbetween backquotesdefines a procedure (user defined function)
No need
ends the definition of a procedure
executes a procedure
to be implemented
action to take in case of error
defines a macro by prompting the user
exits IODE
loops over the arguments
defines the characters to be replaced in $repeat
exits the current report
deletes an empty directory
sets the variable t
no equivalent in Python
shifts the report arguments one position to the left
displays a message at the bottom of the screen
pauses the process for a short period
executes a system command
redefines the separators used by @vdrop(),@vtake() and @vcount()
IODE Functions
Strings
Function
Python
Description
converts text to uppercase
converts text to lowercase
substitutes one text for another
formats a number
extracts the first n characters of string.If n is negative, extracts the last n characters. removes the first n characters of string.If n is negative, removes the last n characters. returns the number of elements in string(separated by commas)returns the nth element of list
removes spaces from string
removes trailing spaces from string
see String Methods
converts an Ascii text to Ansi
compares t1 and t2.Returns 1 if equal, 0 otherwisewill not be implemented
returns no text, whatever the arguments
List Of Strings
Function
Python
Description
take the first n elements of the list(or last n elements if n is negative) drop the first n elements of the list(or last n elements if n is negative)return the number of elements in the list
Files
Function
Python
Description
deletes the file filename
writes the text to a file
Directories
Function
Python
Description
returns the current directory
changes the current directory to dirname andreturns the new current directorycreates a new directory dirname
deletes the directory dirname
Dates And Times
Function
Python
Description
returns the date
returns the time
returns the text of the monthin the given languageresets the timer to 0
returns the elapsed time (inmsecs) since the last timer reset
Assuming module time is imported.
Assuming module datetime is imported.
Lists Of Objects
Function
Python
Description
returns the list of comments matching pattern
returns the list of equations matching pattern
returns the list of identities matching pattern
returns the list of lists matching pattern
returns the list of scalars matching pattern
returns the list of tables matching pattern
returns the list of variables matching pattern
returns the list of variables in theequation(s), identity(ies), table(s) returns the list of scalars in theequation(s), identity(ies), table(s)
Objects Content
Function
Python
Description
returns the titles of the tables
returns the relax value for scalars
returns the stderr value for scalars
returns the content of a comments
returns the values of variables as text
returns the (beginning/ending of) thecurrent sample as text
Equations
Function
Python
Description
returns the LEC text of an equation
returns the estimation sampleof the equation returns the FROM part ofthe estimation sample returns the TO part ofthe estimation sample returns the left-hand sideof an equation returns the right-hand sideof an equation
Simulations
Function
Python
Description
returns the value of the convergencecriterion used for the last simulation returns the value of the relaxationparameter used for the last simulation returns the value of the maximumnumber of iterations used for thelast simulation number of iterations required to solvethe model for year period convergence threshold reached whensolving the model for year period
IODE Commands
Report - Command Execution
Command
Python
Description
executes an IODE report(recursive, allows multiple levels of sub-reports)executes an IODE command or function in Python
Files
Function
Python
Description
prints a file to the defined printer
deletes a file on disk with specific extensions
renames a file on disk with specific extensions
copies a file on disk with specific extensions
copies any file on disk with any extension
renames any file on disk with any extension
deletes any file on disk with any extension
SysOemToAnsi
converts file encoding from OEM to ANSI
SysOemToUTF8
converts file encoding from OEM to UTF8
SysAnsiToOem
converts file encoding from ANSI to OEM
SysAnsiToUTF8
converts file encoding from ANSI to UTF8
appends one file to another
imports variables in various formats(DIF, ASCII, etc.) imports comments in various formats(DIF, ASCII, etc.)
Workspace Operations
Function
Python
Description
loads a workspace cmt, …, var from a file
copy_into()copies a workspace cmt, …, var from a file
merges one or several IODE data filesinto a workspace cmt, …, vardeletes a workspace cmt, …, var
clears all workspaces
describes a workspace cmt, …, var
saves a workspace cmt, …, var to a file
saves a workspace cmt, …, var to a filein compressed form changes the sample of the Variablesworkspaceextends series by extrapolation
builds higher frequency series for stocks
builds higher frequency series for flows
builds lower frequency series (sum)
builds lower frequency series (mean)
builds lower frequency series(last observation)builds seasonally adjusted series
selects the seasonal adjustment criterion
computes trend series (Hodrick-Prescott)using log transformationWsTrendStd
computes trend series (Hodrick-Prescott)using the standard methodimports an ASCII file
exports to a file in ASCII format
will not be implemented
imports E-Views equations and scalars
CsvSave
saves a workspace in csv format
CsvDigits
sets the number of decimals in CSV files
CsvSep
sets the cell separator in CSV files
CsvDec
sets the decimal separator in CSV files
CsvNaN
sets the text indicating an undefined valuein CSV filesCsvAxes
sets the name of the variable axisin CSV files
Data Operations
Command
Python
Description
workspace[name]forcreates an object (cmt, …, var)
deletes an object (cmt, …, var)
tests for the existence of an object (cmt, … var)
edits an object (cmt, …, var)
modifies an object (cmt, …, var)
appends an object (cmt / lst)
duplicates an object (cmt, …, var)(an equation cannot be duplicated)renames an object (cmt, …, var)
searches for an object (cmt, …, var)
scans the objects (eqs / idt / tbl)
creates a list of objects given a pattern
sorts a list in alphabetical order
sets the equality threshold for variablecomparison compares the workspace and a file andcreates lists (OLD, NEW, SAME and CHANGED)performs logical operations on lists
calculates a variable based on a LEC expression
displays a graph based on series
saves a graph calculated from series
via GUI
sets the column width for editing series
via GUI
sets the number of decimals for editing series
sets the mode for editing series
via GUI
sets the first period for editing series
via GUI
sets the column width for editing tables
datawidthscl
via GUI
sets the column width for editing scalars
datandecscl
via GUI
sets the number of decimals for editing scalars
via GUI
changes the editing options for variables
RAS method for completing a matrix of series
creates lists of names from a pattern
Equations
Command
Python
Description
estimates an equation or a block of equations
estimates a block of equations and searchesfor the best possible tests for all possiblecombinations of coefficientssets comment to an equation
sets sample to an equation
sets estimation method for an equation
sets instruments for an equation
sets bloc membership for an equation
Printer Configuration
Command
Python
Description
sets the print destination
sets the print destination and resets the print file
sets the number of decimals for printing
sets the default language for printing
prevents the a2m file from being cleared before printing
sets the font for printing
sets the font for tables
sets the border width for tables
enables or disables color in tables
sets the width of tables in Frame and Rtf
enables or disables table breaks across multiple pages
forces a page break before each table
sets the background color (tables and charts)
sets the border width for charts
sets the background density for charts
sets the size of charts
forces a page break before each chart
generates an RTF file for Windows help
creates a new topic (Windows Help)
changes the hierarchical level of the following topics
sets the title for Windows help
sets the copyright text for Windows help
generates an HTML file for HtmlHelp
when generating an HTML file (A2mToHtml), does notgenerate a header or footerenables numbering of headings
sets the page header for printed pages
sets the page footer for printed pages
sets the default printer
sets the paper orientation in the printer
sets the duplex (double-sided) mode of the printer
sets the background color for charts
sets the color considered as “transparent”
indicates if the GIF file should be transparent
indicates if the GIF file should be interlaced
indicates whether to fill bars in bar charts
specifies the font number to use
Object Printing
Command
Python
Description
prints a definition of an object cmt, …, var
specifies whether only the titlesshould be printedspecifies the type of equation to print
specifies the information to print
Table Compilation And Printing
Command
Python
Description
defines files to use when printingcomparison tablesbuilds and prints tables in A2M format
defines files to use when viewingcomparison tablesbuilds and displays tables
ViewByTbl = ViewTbl
alias for ViewTbl
Tableand builds and prints comparison tablesof series in A2M formatTableand views comparison tables of series inA2M format specifies the number of decimals forvalues displayed in tablesViewWidth (obsolete)
via GUI
specifies column width when displayingtablesViewWidth0 (obsolete)
via GUI
specifies the width of the first columnwhen displaying tables
Graphs From IODE Tables
Command
Python
Description
displays tables as graphs
prints one or more graphs defined from tables
prints graphs built directly from variables
Models (Simulations)
Command
Python
Description
decomposes the model into SCCand reorders itprepares new simulation
launches the simulationof a model launches simulation of a modeldecomposed into SCC and sorted defines or cancelsendogenous-exogenous exchangesfor simulation recompiles equations(useful if equations use macros) saves the number of iterationsrequired for each periodduring simulation saves the convergence thresholdreached for each periodduring simulation
Identities Execution
Command
Python
Description
executes identities and calculates series
saves identity calculation trace in A2M file
specifies files to search for variablesduring identity calculation specifies files to search for scalarsduring identity calculation
A2M File Translation
Command
Python
Description
translates A2M file to HTML format
translates A2M file to RTF format
translates A2M file to MIF format (FrameMaker)
translates A2M file to CSV format
interprets and prints an A2M file
Other Report Commands
Command
Python
Description
Dickey-Fuller tests
To be implemented
sets the character to introduce in the code of seriescreated by WsAggr[…]To be implemented
computes the sum of series
To be implemented
computes the mean of series
To be implemented
computes the product of series