You can retrieve state information about print-job-specific variables at runtime by using the $(variable) syntax. These macros can be used to specify arguments to commands and DLL function calls through the job events (Start of Page, Each Page, File Close, End of Job) on the Run tab.

Raster Image Printer will perform instant macro expansion of all parameters and control string values in the $(variable) format. Because the state of these variables may change from page to page during a print job, you may want to instruct Raster Image Printer to perform deferred macro expansion instead.

Deferred macro expansion waits until the event happens to fill in the appropriate data. Use an extra dollar sign for this purpose, that is, use $$(variable) rather than $(variable).

The macro values of the following variables can be retrieved at runtime:

Output Variables
Page Variables
Date and Time Variables
Other Variables