PRINT and ZPRINT Commands PRINT and ZPRINT Commands Writes one or more lines of the currently loaded InterSystems IRIS routine to the current device.ZPRINT has the same effect and arguments as PRINT. Syntax PRINT ZPRINT PRINT x ZPRINT x PRINT x:y ZPRINT x:y where Argument Definition (none) The PRINT or ZPRINT command with no arguments prints the entire routine. x,y The variables x and y indicate the range of lines to print. They can be either a line reference of the form TAG+OFFSET, or a line number of the form +7. Referring to a line not in the routine implies the empty line following the routine’s last line. x = First or only line to print. y = Last line to print. For more information, see PRINT in the ObjectScript Language Reference. Example This example prints the first line of the current routine, four lines starting at INIT, and all the lines from FINI to the end: INIT SET a=1 SET b=2 SET c=3 SET d=4 FINI SET x=24 SET y=25 SET z=26 PRINT +1,INIT:INIT+3,FINI:+9999