how to write pretty good macros in stratus
TRANSCRIPT
How to write pretty good Macros in Stratusa guide by www.srinimf.com
Rules
You need to follow these rules to write good Macros
Syntax
Macro.cmA command macro always has an extension like “.cm”
How to run a macro
Testmacro -form
By typing above command, you will see options present in the macro.
How macro run
A “macro processor” in the operating gets instructions. And, macro will be executed.
What is a macro line
Any macro line can have either of these 3 values-Command line-Macro line-Input line
What is command line
A command line is a combination of command strings and are separated by ‘;’
How to write command macro
Ampersand (&) Keyword&begin_parameters
Writing commentsFor example, the first two lines of the following macro are comment lines:
& This command macro is named set_cursor.cm.&
ParameterA parameter in a command macro is a named variable that is declared within the parameter declaration section (defined below) of a command macro. A parameter receives its initial value in one of the following ways:
from an argument specified in the command string that calls the macrofrom a default value specified within the macro.
Declare parameterFor example, the following parameter declaration section declares two parameters, source_module and output_file. Note that neither of these declarations has a parameter descriptor:
&begin_parameters source_module output_file&end_parameters
Label
A label is an optional element of a parameter descriptor. Its purpose is to provide a descriptive term that will be useful to the user of a macro. It has the following form:
label:
Sample Macro
Macro with explanation HERE
Final Point: Thank YouSubscribe towww.srinimf.com
TipWorld’s most popular website
www.srinimf.com