🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pl1
Article #28

Re: Read entire line from SYSIN

#28
From: David Meyer
Date: Sun, 25 Oct 2026 01:00
31 lines
1756 bytes
Peter Flass <Peter@Iron-Spring.com> writes:

> From somewhere I got the L format item, which will read the complete rest of an
> input line.
>
> get:proc options(main);
>   dcl s char(80) varying;
>   get edit(s)(L);
>   put skip list(s);
>   end get;
>

Thank you.

I note that you can achieve the same thing with an A format item:

  ...
  get edit(s)(A);
  ...

The Kednos VMS compiler doesn't support the L format, but the A format
works as long as you specify the input field maximum width:

  ...
  get edit(s)(A(80));
  ...

-- 
David Meyer
Takarazuka, Japan
papa@sdf.org
Technical Details
Message-ID: <87jyn6k30l.fsf@localhost>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <87wlr7895y.fsf@localhost> <11big2t$2ppqq$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: David Meyer <papa@sdf.org>
Newsgroups: comp.lang.pl1
Subject: Re: Read entire line from SYSIN
Date: Sun, 25 Oct 2026 10:00:42 +0900
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <87jyn6k30l.fsf@localhost>
References: <87wlr7895y.fsf@localhost> <11big2t$2ppqq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sun, 25 Oct 2026 00:51:00 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3363475"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/GcYMZE+1acrVulaeNccOE"; posting-host="1889e19884254ec619afcf60873c0f38"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:YMtBjUrlgKZ1KpGUCgsx3TTaTJ4=
	sha1:LXCu5SM7D0gXUZKDjgm7BAYZu+E= sha256:SuvrXV4neW0E7Rggoch/IOIpKKeQofQXjv/1jmGGj0o=
	sha1:oryDGNc/SU99I1MjUfI705+2Zzw= sha256:6X0uWPdPolm3+ESXzoUBvTA/ZoErW1MFylNt+SZTvWo=