Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Eviews5 / EViews5 / Docs / EViews 5 Command Ref.pdf
Скачиваний:
47
Добавлен:
23.03.2015
Размер:
5.23 Mб
Скачать

@temppath—641

Cross-references

See “The FOR Loop” beginning on page 102. See also exitloop (p. 635), for (p. 636), next (p. 637).

stop

Program Statement

 

 

Break out of program.

The stop command halts execution of a program. It has the same effect as hitting the F1 (break) key.

Syntax

Command: stop

Cross-references

See also, exitloop (p. 635), return (p. 639).

subroutine

Program Statement

 

 

Declare a subroutine within a program.

The subroutine statement marks the start of a subroutine.

Syntax

subroutine name(arguments)

[commands]

endsub

Cross-references

See “Subroutines” beginning on page 109. See also endsub (p. 634).

@temppath

Support Function

 

 

Syntax:

@temppath

Return:

string

Returns a string containing the directory path for the EViews temporary files as specified in the global options File Locations.... menu.

642—Appendix H. Programming Language Reference

Examples

If your currently executing copy of EViews puts temporary files in “D:\EVIEWS”, then:

%y = @temppath

assigns a string of the form “D:\EVIEWS”.

Cross-references

See also cd (p. 234) and @evpath (p. 635).

then

Program Statement

 

 

Part of IF statement.

then marks the beginning of commands to be executed if the condition given in the IF statement is satisfied.

Syntax

if [condition] then

[commands if condition true] endif

Cross-references

See “IF Statements” on page 100. See also, else (p. 634), endif (p. 634), if (p. 636).

@time

Support Function

 

 

Syntax:

@time

Return:

string

Returns a string containing the current time in “hh:mm” format.

Examples

%y = @time

assigns a string of the form “15:35”.

Cross-references

See also @date (p. 633).

@toc—643

to

Expression || Program Statement

 

 

Upper limit of for loop OR lag range specifier.

to is required in the specification of a FOR loop to specify the upper limit of the control variable; see “The FOR Loop” on page 102.

When used as a lag specifier, to may be used to specify a range of lags to be used in estimation.

Syntax

Used in a FOR loop:

for !i=n to m

[commands]

next

Used as a Lag specifier:

series_name(n to m)

Examples

ls cs c gdp(0 to -12)

Runs an OLS regression of CS on a constant, and the variables GDP, GDP(–1), GDP(–2), …, GDP(–11), GDP(–12).

Cross-references

See “The FOR Loop” beginning on page 102. See also, exitloop (p. 635), for (p. 636), next (p. 637).

@toc

Support Function

 

 

Syntax: @toc

Return: integer

Compute elapsed time (since timer reset) in seconds.

Examples

tic

[some commands]

!elapsed = @toc

644—Appendix H. Programming Language Reference

resets the timer, executes commands, and saves the elapsed time in the control variable !ELAPSED.

Cross-references

See also tic (p. 510) and toc (p. 511).

wend

Program Statement

 

 

End of WHILE clause.

wend marks the end of a set of program commands that are executed under the control of a WHILE statement.

Syntax

while [condition]

[commands while condition true]

wend

Cross-references

See “The WHILE Loop” on page 106. See also while (p. 644).

while

Program Statement

 

 

Conditional control statement. The while statement marks the beginning of a WHILE loop.

The commands between the while keyword and the wend keyword will be executed repeatedly until the condition in the while statement is false.

Syntax

while [condition]

[commands while condition true]

wend

Cross-references

See “The WHILE Loop” on page 106. See also wend (p. 644).

Соседние файлы в папке Docs