11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NotesPrinting to the Current DeviceThe output from PRINT is sent to the current device. You establish the current device withthe USE command. <strong>Caché</strong> maintains the current device ID in the $IO special variable.Printing a RangeTo print a range, include the lineref2 option. lineref2 can be specified in the same two formsas lineref1. Consider the following example:PRINT Getid:Getid+6The previous example prints the first through seventh (offset+1) lines within label Getid.You can use different label names when specifying a range, but only if the second label followsthe first. For example, if label Checkid follows label Getid, the following command printsonly the first line of Checkid:PRINT Checkid:Getid+2On the other hand, the following command prints all lines from the first line in Getid to thethird line in Checkid:PRINT Getid:Checkid+3ZPRINT Equivalent to PRINTThe ZPRINT command is the equivalent of the PRINT command.See Also• ZLOAD command• ZPRINT command• ZREMOVE command• The Spool Device in <strong>Caché</strong> I/O Device GuidePRINT<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!