Examples of %RO

Example:

	GTM>DO ^%RO
	Routine Output - Save selected routines into RO file.
	Routine: %D
	%D
	Current total of 1 routines.
	Routine: -%D
	%D
	Current total of 0 routines.
	Routine: BEST* 
	BEST BEST1 BEST2 
	Current total of 3 routines.
	Routine: ?D
	BEST BEST1 BEST2
	Routine: <RETURN>
	Output Device: <terminal>: $PRINTER
	
	Header Label: Source code for the BEST modules.
	Strip comments <No>?:<RETURN>
	BEST BEST1 BEST2 
	Total of 53 lines in 3 routines
	GTM>
	

This example adds and subtracts %D from the selection, then adds all routines starting with "BEST" and confirms the current selection. The example sends output to $PRINTER, which sends the output to the system printer. %RO displays the label at the beginning of the output file. The first record of the header label is the text entered at the prompt. The second record of the header label consists of the word "GT.M" and the current date and time.