PreviousUNIX Session Recorder UNIX Key Usage ChartNext

Appendix A: Directives for Animator

This chapter describes the Animator directives you can use to control the animation of your program.

A.1 Animator Directives Summary

The following Animator directives are available:

Directive
Function
8BITCHAR Control display of extended ASCII characters
BREAK Set a breakpoint
BREAKPOINTS Set limit on breakpoints
COBAIF Load/save Animator session information
CHECK-CLEAR-BREAKS Clear all breakpoints when a program has been re-checked
COMMSTYPE Set communications type for cooperative animation
END Begin directives for user program
FILECASE Convert characters to upper-case
FLASH Set when to display user screen
FLASH-CALLS Make Animator display user screen on CALLs
HIGHLIGHT Control highlight of current line
HOLDVIEW Set how long to display user screen
INSTALL Pre-install programs
PARMPASS Animate progam under Parmpass
PRELOADIDY Ensure all .idy files are loaded
RESEQ Make Animator display sequence numbers
SCREENPAGE Make screen page when scrolling
USER-MACHINE Specify machine where program runs
USER-SESSION Specify session where program runs
ZOOM Make Animator zoom

A.2 Description of Directives

A.2.1 Key to Animator Directives

Descriptions for all of the Animator directives appear alphabetically. Each description contains the following entries.

A brief description of the function of DIRECTIVE-NAME.

Syntax:
 >>-.---.-.-------DIRECTIVE-NAME-"parameter(s)".-><  
    .-/-+ ..----.-DIRECTIVE-NAME---------------+ 
           .-NO-+

The syntax of the Animator directives is shown using diagrams called "railroad tracks". These show a directive and its parameters joined by lines indicating the order in which they should be written. You read these diagrams from left to right. Each diagram starts with >> and ends with >< . Sometimes the track forks to show alternatives and then joins up again. The length of a track has no significance.

Parameters for directives are shown in quotation marks, although parentheses can be used instead unless otherwise stated. When quotation marks are used the parameter can contain spaces, whereas no spaces are allowed in a parameter surrounded by parentheses.

On UNIX environments, the optional slash is not required and should not be used. Instead of enclosing the parameter to a directive in quotes, it can follow an equals sign following the directive. For example:

FLASH=ZOOM.
Parameters:

Lists and describes valid parameter(s), if any, for the directive.

Properties:
Default:
Environment:
Indicates the directive's default setting
Specifies the environments in which this directive can be used.

Remarks:

Contains any additional information about the directive.


BITCHAR

This directive is maintained for compatibility with older products on UNIX. It has no effect in this system. It will be removed in a future release.

Syntax:
 >>-.---.-.----.--8BITCHAR------------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default:
Environment:
NO8BITCHAR
All
Remarks:

This directive is included for compatibility with older products on UNIX. It is not required with this product.


BREAK

Sets a breakpoint at the specified paragraph or section, and causes Animator to zoom to that point.

Syntax:
 >>-.---.-.-----BREAK--"proc-name"-----.----><  
    .-/-+ .-NO--BREAK------------------+
Parameters:

proc-name Name of a paragraph or section in the program being animated.
Properties:

Default:
Environment:
NOBREAK
All

BREAKPOINTS

Specifies the number of breakpoints that can be set in any one program.

Syntax:
 >>-.---.--BREAKPOINTS--"integer"-----------><  
    .-/-+
Parameters:
integer Integer between 4 and 100 defining the number of breakpoints allowed.
A.2.1..1 Properties:
Default:
Environment:
BREAKPOINTS"100"
All
Remarks:

Only 12 bytes are allocated for each breakpoint you allow for, so you need only change this value if you are very short of memory.

With cross-session or cooperative animation, the number of breakpoints allowed defaults to four and cannot be changed.


CHECK-CLEAR-BREAKS

Causes all breakpoints to be cleared when a program is rechecked.

Syntax:
 >>-.---.-.----.--CHECK-CLEAR-BREAKS--------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default:
Environment:
NOCHECK-CLEAR-BREAKS
All
A.2.1..2 Remarks:

If this directive is not set, Animator remembers the breakpoints set for a program, and restores them whenever Animator is restarted.


COBAIF

Specifies whether to load and save Animator session information.

Syntax:
 >>-.---.-.-------COBAIF--"path-name"--.----><  
    .-/-+ ..----.-COBAIF---------------+ 
           .-NO-+
Parameters:
path-name The location of the Animator information file.
Properties:
Default:
Environment:
COBAIF"idy-path"
All
Remarks:

The Animator information file contains details of breakpoints and monitors. Its extension is .aif.

If no COBAIF directive is specified, the default behavior is to save and load the information files in the directory where the .idy file is found.

If NOCOBAIF is specified, no information files are loaded or saved.

If COBAIF is specified with no path-name, the information files are saved and loaded in the directory specified by the COBAIF environment variable. If the COBAIF environment variable does not exist, the current directory is used.

If COBAIF is specified with path-name, the information files are saved and loaded from the directory specified.


COMMSTYPE

Specifies the type of communications to be used with cooperative or cross-session animation.

Syntax:
 >>-.---.-.-------COMMSTYPE--"comms-type"--.----><  
    .-/-+ ..----.-COMMSTYPE----------------+ 
           .-NO-+
Parameters:
comms-type The name of the CCI module to use. For example, ccinetb or cciipx.
Properties:
Default:

Environment:
COMMSTYPE"ccinetb" for cooperative animation (USER-MACHINE)
COMMSTYPE"ccinamp" for cross-session animation (USER-SESSION)
16-bit COBOL system
See also:

USER-MACHINE Animator directive
USER-SESSION Animator directive


END

Indicates the end of directives to Animator and start of command line parameters to your program.

Syntax:
 >>-.---.--END------------------------------><  
    .-/-+
Parameters:

None

Properties:
Default:
Environment:
Not present
All
Remarks:

This directive can be followed by text for use in ACCEPT ... FROM COMMAND-LINE.


FILECASE

Controls whether or not Animator converts file-names to upper case for use in internal comparisons.

Syntax:
 >>-.---.-.----.--FILECASE------------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default: NOFILECASE on UNIX FILECASE on DOS, Windows and OS/2
Environment: All

FLASH

Sets the default condition under which Animator automatically displays the user screen.

Syntax:
 >>-.---.--FLASH--"mode"--------------------><  
    .-/-+
Parameters:
mode The mode in which Animator displays the user screen.
Properties:
Default:
Environment:
FLASH"ZOOM"
All
Remarks:

The possible values of mode are:

STEP Display user screen before executing each statement.
ZOOM Display user screen before zooming.

The setting can be altered from within Animator.

Using FLASH you can make Animator display the user screen before it calls a subprogram written in another language. This prevents the subprogram's output overwriting the Animator screen.


FLASH-CALLS

Makes Animator display the user screen at every CALL statement and whenever a PERFORM statement is stepped over.

Syntax:
 >>-.---.-.----.--FLASH-CALLS---------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default:
Environment:
NOFLASH-CALLS
All
Remarks:

This should be used when the program being animated makes calls to non-COBOL programs that write to the screen; for example, OS/2 VIO API function calls.


HIGHLIGHT

Specifies whether or not to highlight the line that Animator is currently on.

Syntax:
 >>-.---.-.----.-.-HIGHLIGHT-.--------------><  
    .-/-+ .-NO-+ .-HILITE----+
Parameters:

None

Properties:
Default:
Environment:
HIGHLIGHT
All

HOLDVIEW

With cross-session animation, specifies how long the user screen is displayed before returning to Animator.

Syntax:
 >>-.---.--HOLDVIEW-.-----------.-----------><  
    .-/-+           .-"integer"-+
Parameters:
integer The length of time, in seconds.
Properties:
Default:

Environment:
HOLDVIEW
HOLDVIEW"4" (if USER-SESSION"PM" is also specified)
DOS, Windows and OS/2
A.2.1..3 Remarks:

HOLDVIEW with no parameter specifies an infinite time. In this case, any keystroke causes control to be returned to the Animator. If specified, integer indicates the number of seconds before control is automatically returned to Animator.

HOLDVIEW is needed when the user program is running in a different session, as Animator no longer has control and keystrokes on the user session cannot be detected by Animator.


INSTALL

Specifies a program to install before starting the animation session.

Syntax:
 >>-.---.--INSTALL--"program"------------><  
    .-/-+
Parameters:
program The name of the program to install.
Properties:
Default:
Environment:
None present.
All
Remarks:

Enables the use of programs like the External File Mapper when invoking Animator from the command line.

Example:
INSTALL"$COBDIR\MFEXTMAP" 

PARMPASS

Invokes the program being animated under the control of PARMPASS.

Syntax:
 >>-.---.-.----.--PARMPASS------------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default: NOPARMPASS
Environment: All

PRELOADIDY

Specifies whether to load and save Animator session information.

Syntax:
 >>-.---.-.----.--PRELOADIDY----------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default:
Environment:
PRELOADIDY
DOS, Windows and OS/2
Remarks:

This directive is for compatibility with earlier versions of this system. Its behavior can be achieved by using the COBAIF directive.

See also:

COBAIF


RESEQ

Makes COBOL line sequence numbers appear on Animator's display of the source.

Syntax:
 >>-.---.-.----.--RESEQ---------------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default:
Environment:
RESEQ
All
Remarks:

Do not use RESEQ if the program contains ++INCLUDE or -INC statements.


SCREENPAGE

Causes the screen to page up or down when you scroll or Step to a line of code not currently displayed on the screen.

Syntax:
 >>-.---.-.----.--SCREENPAGE----------------><  
    .-/-+ .-NO-+
Parameters:

None

Properties:
Default:

Environment:
NOSCREENPAGE on DOS, Windows and OS/2
SCREENPAGE on UNIX
All

Remarks:

If this directive is not set, you can scroll or Step continuously through your source code.

If this directive is set, the current line appears as either the third line from the top of the next screen or the third line from the bottom of the previous screen.


USER-MACHINE

With cooperative animation, specifies the machine where the user program runs.

Syntax:
 >>-.---.-.-----USER-MACHINE--"netname"-.---><  
    .-/-+ .-NO--USER-MACHINE------------+
Parameters:
netname Network name. An alphanumeric string of up to eight characters.

Properties:
Default:
Environment:
NOUSER-MACHINE
16-bit COBOL system
Remarks:

Animator and the cooperative program Animuser communicate using a network name, netname. The default network name is COOPANIM. If more than one cooperative animation is likely to take place on the same network at the same time, each must use a different network name. In this case you must specify a unique name with this directive when starting Animator and Animuser.

See also:

COMMSTYPE Animator directive


USER-SESSION

With cross-session animation, specifies the session to be used for the user program.

Syntax:
 >>-.---.--USER-SESSION--"session"----------><  
    .-/-+
Parameters:
session The session to use for the user program.
Properties:
Default:
Environment:
USER-SESSION"CURRENT"
16-bit COBOL system on OS/2
Remarks:

The possible values of session are:

CURRENT Same session as Animator.
FULL-SCREEN Separate OS/2 full screen session
PM As a Presentation Manager application.
WINDOWED Separate OS/2 windowed session.
HARDMODE A Presentation Manager or native Windows application in hard mode.

This is a form of debugging that prevents the desktop from freezing when debugging programs using the Presentation Manager or Windows API. When you are stopped in Animator, you cannot switch to any other application.

If the selected session is not "current" and NOUSER-MACHINE is specified (or default), this directive makes Animator start a cross-session animation. If USER-MACHINE is specified, this directive specifies the session to be activated on the user machine. For any session other than "current" the user machine must be running OS/2.

In all cases, the user program is started by Animator. If it is running in a different session, the session is also started by Animator.

With USER-SESSION"PM" the default for HOLDVIEW is HOLDVIEW"4".

See also:

COMMSTYPE Animator directive
HOLDVIEW Animator directive


ZOOM

Invokes Animator in zoom mode.

Syntax:
 >>-.---.-.-------ZOOM--"program-name"-.----><  
    .-/-+ ..----.-ZOOM-----------------+ 
           .-NO-+
Parameters:
program-name Zoom until this subprogram is entered.
Properties:
Default:
Environment:
NOZOOM
All
Remarks:

In zoom mode, Animator executes the program at full speed, displaying the user screen rather than the source code.


Copyright © 1998 Micro Focus Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.
PreviousUNIX Session Recorder UNIX Key Usage ChartNext