CLOCK Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
09-15-83 |
|
|
|
|
|
|
aBCDEFGH |
|
| |||||
|
|
|
|
|
|
09-15-83 |
|
|
|
|
|
|
09-15-83 |
Example 2:
|
|
|
|
|
|
|
|
|
|
|
|
|
11-13-65 |
|
|
|
|
|
|
xxZZZ |
|
| |||||
|
|
|
|
|
|
11-13-65 |
|
|
|
|
|
|
11-13 |
Example 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12:14:54.00 |
|
|
|
|
|
|
xxx345XX |
|
| |||||
|
|
|
|
|
|
12:14:54.00 |
|
|
|
|
|
|
12:14:54 |
Example 4:
|
|
Variable |
PL |
FP |
LP |
Contents |
|
Before: |
|
|
|
|
18:45:34.50 |
|
|
|
5 |
3 |
5 |
xxABC |
|
| |||||
|
After: |
|
|
|
|
18:45:34.50 |
|
|
|
5 |
1 |
5 |
18:45 |
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
|
17:23:59.50 |
|
|
|
|
|
|
xx9xxxxxxxx |
|
| |||||
|
|
|
|
|
|
17:23:59.50 |
|
|
|
|
|
|
17:23:59.00 |
Example 6:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.1.1 SUNDBSYS 02 |
|
|
|
|
|
|
aBCdefghijklmnopqrst |
|
| |||||
|
|
|
|
|
|
1.1.1 SUNDBSYS 02 |
|
|
|
|
|
|
10.0 PLBWIN 18rst |
Example 7:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
miscellaneous data |
|
| ||||||
|
|
|
|
|
|
|
(each byte defined below) |
|
|
|
|
|
|
|
01 |
|
|
|
|
|
|
|
blank |
|
|
|
|
|
|
|
24 |
|
|
|
|
|
|
|
blank |
|
|
|
|
|
|
|
80 |
|
|
|
|
|
|
|
blank |
|
|
|
|
|
|
|
NNNNNNNNNNNNNNNNNNNNNNYNYYN |
|
|
|
|
|
|
|
blank |
|
|
|
|
|
|
|
YYYYYYNNYYYNN |
|
|
|
|
|
|
|
blank |
|
|
|
|
|
|
|
C |
In this SUNDB86x example, the program is being run on Port 01 on a 24 by 80 screen. The two lowest and the fourth lowest available drives are logged on-line, with drive C as the current booted drive. The terminal is defined as supporting all the screen functions except for the Graphics mode, Highlighting, Insert line, Delete line, Insert character or Delete character. This information is retrieved from the screen definition file
Example 8:
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
| |||||
|
|
| ||||
|
|
|
|
|
|
COMSPEC=C:\COMMAND.COM |
This example assumes that COMSPEC is the first entry in the environment table.
Example 9:
|
|
Variable |
PL |
FP |
LP |
Contents |
|
Before: |
system info | ||||
|
|
DATA |
30 |
7 |
7 |
COMSPEC |
|
| |||||
|
After: |
system info | ||||
|
|
DATA |
30 |
1 |
22 |
COMSPEC=C:\COMMAND.COM |
This example retrieves the entry for COMSPEC.
Example 10:
The following code displays the entire environment table.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Since the first time through ENTRY is null, the first entry in the table is retrieved. Subsequent CLOCK ENV instructions retrieve the next entry because ENTRY contains a valid environment table entry. If there are no more entries, the OVER flag is set.
Example 11:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This example uses the CLOCK instruction to return the value associated with the PLB_TERM entry in the current INI file. The value is then DISPLAYed.
Example 12:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This example uses the CLOCK instruction to return the value associated with the "Source" entry in the "[Directories]" section of the current INI file. This assumes that the user has modified the ini file and added both the section and the keyword.
![]() |