-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathidentifier.html
More file actions
314 lines (224 loc) · 8.05 KB
/
identifier.html
File metadata and controls
314 lines (224 loc) · 8.05 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!-- Creator : groff version 1.22.3 -->
<!-- CreationDate: Mon Mar 25 10:05:27 2024 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
h1 { text-align: center }
</style>
<title>identifier</title>
</head>
<body>
<h1 align="center">identifier</h1>
<a href="#NAME">NAME</a><br>
<a href="#SYNTAX">SYNTAX</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#PREDEFINED VARIABLES">PREDEFINED VARIABLES</a><br>
<a href="#NOTES">NOTES</a><br>
<a href="#COPYRIGHT">COPYRIGHT</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<hr>
<h2>NAME
<a name="NAME"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">identifier,
variable − rwl program syntax for identifiers and
variables</p>
<h2>SYNTAX
<a name="SYNTAX"></a>
</h2>
<pre style="margin-left:11%; margin-top: 1em">identifier ::=
(<b> a</b> |<b> b</b> ...<b> z</b> |<b> A</b> |<b> B</b> ...<b> Z</b> {<b> a</b> |<b> b</b> ...<b> z</b> |<b> A</b> |<b> B</b> ...<b> Z</b> |<b> _</b> |<b> 0</b> |<b> 1</b> ...<b> 9</b> )
| (<b> $</b> |<b> 0</b> |<b> 1</b> ...<b> 9</b> {<b> 0</b> |<b> 1</b> ...<b> 9</b> } )
|<b> $#</b></pre>
<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The RWP*Load
Simulator uses identifiers to name variables, procedures,
etc. Ordinary identifiers are sequences of upper and lower
case letters followed by upper or low case letters,
underscore or digits. In addition to these, $# and a $
followed by digits are identifiers.</p>
<p style="margin-left:11%; margin-top: 1em">There is one
single name-scope for all identifiers and you can e.g. not
have a sql statement and an integer with the same name.</p>
<h2>PREDEFINED VARIABLES
<a name="PREDEFINED VARIABLES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The following
lists predefined variables that are read only except when
explicitly noted.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>threadnumber</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>An integer variable that is assigned a unique number in
each worker thread; numbering starts at 1. It can be used
for e.g. debugging, printing, etc.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>processnumber</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>An integer variable that by default gets it value from
the operating system process id as returned by getpid(), but
can be overwritten using the -p option.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>runnumber</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>An integer variable that uniquely identifies each run,
it is maintained as a database sequence in the results
database, it is valid in the main thread and in worker
threads if a results database is provided.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>loopnumber</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>An integer variable that is used internally in control
loops. It is initialized to 1 when a control loop starts and
is incremented by 1 for every execute in the block; it can
e.g. be used for debug printing as needed.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>everyuntil</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A double variable that is used in control loop. When a
loop starts, it is set to the expected timestamp to start
the <i>next</i> loop. Your rwlprogram can set a different
value if required.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>usrseconds</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A double variable that contains the user time in seconds
from the last call to the getrusage statement.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>sysseconds</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A double variable that contains the system time in
seconds from the last call to the getrusage statement.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>oraerror</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>An integer variable that contains the Oracle error
number of the most recently executed SQL statement. As an
example, if executing a single row query that returns no
rows, its contents will be 1403.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>oraerrortext</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A string variable that contains the Oracle error text of
the most recently executed SQL statement</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>stderr</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A file variable that can be used in write/writeline
statements to write output to stderr.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>stdout</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A file variable that refers to stdout. Mostly useful
with fflush when using the output from rwloadsim in a
pipeline.</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>stdin</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A file variable that refers to stdin; it can be used in
read loops to make rwloadsim part of a pipeline.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>hostname</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>A string variable that gets its value from gethostname
and which is inserted into the repository table, rwlrun. The
value is otherwise not used by rwloadsim. If you are using
multi process execution, the value of the variable is the
name of the host where the multi process preparation takes
place even if you via ssh arrange for a multi process
execution to take place on some other system.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>$1, $2, etc</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>String variables that are made available as positional
arguments when e.g. the -A option is used. The shift
statement shifts these once to the left without modifying
the right most of them.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="20%">
<p><b>$#</b></p></td>
<td width="1%"></td>
<td width="68%">
<p>Integer variable containing the number of positional
arguments. Reduced by 1 for every call to shift.</p></td></tr>
</table>
<h2>NOTES
<a name="NOTES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">You can write
<b>runseconds</b> and <b>epochseconds</b> as if these two
were variables containing the same values as the functions
of the same name; this is deprecated and will be desupported
in some future release. Since they really are functions,
they cannot be used to do SQL bind.</p>
<h2>COPYRIGHT
<a name="COPYRIGHT"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">Copyright
© 2023 Oracle Corporation <br>
Licensed under the Universal Permissive License v 1.0 as
shown at https://oss.oracle.com/licenses/upl</p>
<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><a href="simpledeclaration.html">simpledeclaration(1rwl)</a>,
<a href="statement.html">statement(1rwl)</a>, <a href="declaration.html">declaration(1rwl)</a> <a href="expression.html">expression(1rwl)</a>,
<a href="controlloop.html">controlloop(1rwl)</a></p>
<hr>
</body>
</html>