Hi Yuni, The manual describes how macros work in detail, but what works for me is to define the macro early in the command input file and then run the macro when your computations are done and the results are available in the database, i.e.: &dimen .…