English

How To: Flagging AML errors with a beep

Procedure

Question:

Can an AML be made to beep whenever an error or end of routine is encountered?

Cause:

Not applicable

Answer:

On UNIX systems, AML can access the keyboard bell by using the "CTRL G" key sequence with the &TYPE directive. The following line can be added to any error checking routine:

&TYPE ^G

The '^G' is created by holding down the Ctrl key and holding down the shift key and pressing g. On the screen and in a text file, it will look like ^G. But it would be one character and not two, i.e, you will not get a beep if you put a ^ and a G next to each other.

You can create the ^G by:

Arc: &watch beep.wat
Arc: &type ^G /*press Ctrl + Shift + g
Arc: &watch off
Arc: &cwta beep.wat beep.aml