Does PL/I put a newline BEFORE the current line?

36 Views Asked by At

I've been reading about PL/I just for interest (I like learning about old programming languages). I see a lot of output statements of the form

PUT SKIP LIST 'Hello, world!'

and I understand this outputs a newline character followed by the data ('Hello, world!'). Is this the normal way around for PL/I? What is the rationale for that? In almost all other languages, the convention is to output a newline character at the end of the line:

print('Hello, world!\n');

How do you do that in PL/I? (Or maybe you just don't?)

0

There are 0 best solutions below