EDAPRINT: Inserting a Custom Message in the EDAPRINT Log File

How to:

The EDAPRINT function enables you to add a text message into the EDAPRINT log file and assign it a message type. The returned value of the function is zero (0).

Syntax: How to Insert a Message in the EDAPRINT Log File

EDAPRINT(message_type, 'message')

where:

message_type

Keyword

Can be one of the following message types.

  • I. Informational message.
  • W. Warning message.
  • E. Error message.
'message'

Is the message to insert, enclosed in single quotation marks.

Example: Inserting a Custom Message in the EDAPRINT Log File

The following procedure inserts three messages in the EDAPRINT log file.

-SET &I = EDAPRINT(I, 'This is a test informational message');
-SET &W = EDAPRINT(W, 'This is a test warning message');
-SET &E = EDAPRINT(E, 'This is a test error message');

The output is shown in the following image.