Easytrieve: How to invoke macros
search cancel

Easytrieve: How to invoke macros

book

Article ID: 211536

calendar_today

Updated On:

Products

Easytrieve Report Generator PanAudit Plus Easytrieve Plus Report Generator Toolkit

Issue/Introduction

What is the best way to call or invoke a macro within an Easytrieve program?

Is it  %macroname or by CALL macroname

 

Environment

Easytrieve Report Generator, release 11.6

PanAudit Plus, release 3.0

Easytrieve Plus Report Generator Toolkit, release 2.0

Resolution

Regarding invoking macros, yes, this is done via the percent sign:

     %macroname

Regarding the CALL statement, that is in regards to calling a cobol program or an assembler program.

So, to answer your question, macros may be invoked by the '%' sign.  These would also include macros which are delivered in the Easytrieve CBAAMAC, Toolkit CAIMAC, or PanAudit Plus CAIMAC libraries.

Macros would not be called via the CALL statement.

Additional Information

Here is the link, to the documentation on the CALL statement: 
Documentation on the CALL statement

The CALL statement provides a means to dynamically or statically invoke subprograms written in other programming languages.