Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

SAMELINE

The SAMELINE option specifies whether the system prompt occurs on the same line as the statement that prompts for input.

Read syntax diagramSkip visual syntax diagram               .-N-.
>>-SAMELINE--(-+-Y-+-)-----------------------------------------><
 

The following examples show the results of certain combinations of the PROMPT and SAMELINE options:

Example 1
Given the statement PUT SKIP LIST('ENTER:');, output is as follows:
prompt(y), sameline(y)
prompt(n), sameline(y)
prompt(y), sameline(n)

prompt(n), sameline(n)
ENTER: (cursor)
ENTER: (cursor)
ENTER:
(cursor)
ENTER:
(cursor)
Example 2
Given the statement PUT SKIP LIST('ENTER');, output is as follows:
prompt(y), sameline(y)
prompt(n), sameline(y)
prompt(y), sameline(n)


prompt(n), sameline(n)
ENTER: (cursor)
ENTER (cursor)
ENTER
:
(cursor)
ENTER
(cursor)
Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide