A sentence is basically just a paragraph (see Paragraphs above) with only one command.
Compare...
>ED VOC TEST.PA
New Record.
----: I
0001= PA
0002= DISPLAY Hello mum!
0003=
Bottom at line 2.
----: FI
"TEST.PA" filed in file "VOC".
>TEST.PA
Hello mum!
...with...
>ED VOC TEST.S
New Record.
----: I
0001= S
0002= DISPLAY Hello mum!
0003=
Bottom at line 2.
----: FI
"TEST.S" filed in file "VOC".
>TEST.S
Hello mum!
The results are identical. In fact, there are only two differences between sentences and paragraphs:
1. Any parameters entered after the sentence name on the UniVerse command line are automatically added to the end of the command in the sentence before it is executed.
Using the paragraph and sentence created above, compare the command...
TEST.PA ...and dad!
Hello mum!
...with...
TEST.S ...and dad!
Hello mum! ...and dad!
The sentence automatically appended the parameters ...and dad!
to its DISPLAY
command before executing. To read the command parameters in the paragraph, you would have had to use in-line prompts (see Paragraphs above).
2. Sentences simply ignore all commands after the first.
Compare...
>ED VOC TEST.PA.2
New Record.
----: I
0001= PA
0002= DISPLAY Hello mum!
0003= DISPLAY Hello dad!
0004=
Bottom at line 3.
----: FI
"TEST.PA.2" filed in file "VOC".
>TEST.PA.2
Hello mum!
Hello dad!
...with...
>ED VOC TEST.S.2
New Record.
----: I
0001= S
0002= DISPLAY Hello mum!
0003= DISPLAY Hello dad!
0004=
Bottom at line 3.
----: FI
"TEST.S.2" filed in file "VOC".
>TEST.S.2
Hello mum!
Note that while the paragraph displayed both messages, the sentence only displayed the first.