1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
<html>
<head>
<!-- This file has been generated by unroff 1.0, 03/01/02 09:13:43. -->
<!-- Do not edit! -->
<STYLE TYPE="text/css">
<!--
A:link{text-decoration:none}
A:visited{text-decoration:none}
A:active{text-decoration:none}
-->
</STYLE>
<title>ploticus: proc print</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550 ><tr>
<td>
<table cellpadding=2 width=550><tr>
<td><br><h2>proc print</h2></td>
<td align=right>
<small>
<a href="../doc/Welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
<a href="../doc/Welcome.html">Welcome</a>
<a href="../gallery/index.html">Gallery</a>
<a href="../doc/Contents.html">Handbook</a>
<td></tr></table>
</td></tr>
<td>
<br>
<br>
<title>Manual page for proc_print(PL)</title>
</head>
<body>
<h2>DESCRIPTION</h2>
<b>proc print</b> may be used to print messages and debugging info.<tt> </tt>
It can print the contents of variables and/or
data fields to a file or to standard error.<tt> </tt>
It is mainly useful for displaying or exporting information
pertaining to outlier cases and for debugging a script.<tt> </tt>
<p>
Unless the <tt>outfile</tt> attribute is specified, information is
printed to the file/stream controlled by the <b>-diagfile</b>
command line option.<tt> </tt>
<h2>FEATURES</h2>
Cases may be selected using a conditional expression,
for purposes such as identifying outliers.<tt> </tt>
<h2>VARIABLES THAT ARE SET</h2>
<b>NSELECTED</b> is set to the number of records selected.<tt> </tt>
Thus proc print may be used to count number of records meeting a certain criteria.<tt> </tt>
<h2>PREREQUISITES</h2>
None.<tt> </tt>
<h2>ATTRIBUTES</h2>
<p>
<b>label</b>
<a href="attributetypes.html#text">
<i> text </i>
</a>
<dl>
<dt><dd><p>
Arbitrary text that will be printed once. May include
@variable references using one at-sign (@). Typically
used to examine contents of variables or to print a header
for the cases listed by the <tt>select</tt> and <tt>print</tt> attributes.<tt> </tt>
</dl>
<p>
<b>select</b>
<a href="condex.html">
<i> conditional-expression </i>
</a>
<dl>
<dt><dd><p>
<i>conditional-expression</i> is a conditional expression which
is applied to each data record (row).<tt> </tt>
If specified and if the expression evaluates to true,
the <tt>print</tt> template is printed,
otherwise it is not.<tt> </tt>
</dl>
<p>
<b>print</b>
<a href="attributetypes.html#text">
<i> text </i>
</a>
<dl>
<dt><dd><p>
A template which may include variable and data field references.<tt> </tt>
This template will be printed once for every data record
that passes the selection condition.<tt> </tt>
Data fields are referenced by preceding with two at-signs (@@).<tt> </tt>
See example below.<tt> </tt>
</dl>
<p>
<b>outfile</b> <i>filename</i>
<dl>
<dt><dd><p>
If specified, the results of proc print will be written to this file.<tt> </tt>
If unspecified, results are written to the diagnostic stream (controllable
using -diagfile on command line).
</dl>
<p>
<b>outmode</b> <tt>w</tt> | <tt>a</tt>
<dl>
<dt><dd><p>
Controls the file write mode for <tt>outfile</tt>. Default is <tt>w</tt>.<tt> </tt>
w = write (create new file / erase
any current contents); a = append (append to any existing contents; if none then
create new file). See also fopen(2).<tt> </tt>
</dl>
<h2>EXAMPLE</h2>
Example:
<pre>
#set TODAY = $todaysdate()
#proc print
label: Outliers (run on @TODAY)
select: @@3 > 300
print: @@1 @@2 had a score of @@3
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/Welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif">
</center>
</td></tr>
</table>
</pre>
<p><hr>
Markup created by <em>unroff</em> 1.0, <tt> </tt> <tt> </tt>March 01, 2002.
</body>
</html>
|