|
proc print is a utility proc that doesn't draw anything. Instead, it has the following uses:
Result can be written to a file if outfile is specified; otherwise the result
appears on the diagnostic stream (controlled by the pl -diagfile command line option).
Because proc print turns out to have some distinct usefulness, it is no longer deprecated as of 2.41
Attributeslabel text
select select expression
print text
outfile filename
outmode w | a
Variables that are set by proc printNote, these variables are available to the ploticus script after the proc completes execution. We recommend that you use #endproc to delineate the end of proc print. Also, you don't need to print anything if you're just getting these values. NSELECTED is set to the number of records selected. This may be used, for example, to count number of records meeting a certain criteria (as given in the select statement). FOUNDROW is set to the row number (first = 1) of the first data row to successfully match the select statement. 0 when no matches are found. This may be used (along with the select statement) to find the data row where a certain item resides. (new in 2.41)
Example#proc print label: Outliers: select: @@3 > 300 print: @@1 @@2 had a score of @@3 #endproc #proc print label: @NSELECTED rows met the above criteria. |
![]() data display engine Copyright Steve Grubb ![]() |
Ploticus is hosted at http://ploticus.sourceforge.net |
|