Here documents create strings containing embedded new lines, which *ix systems 
encode as LF. They do not allow strings not containing embedded new lines to be 
split across multiple lines of the source code.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Jeremy Nicoll [[email protected]]
Sent: Friday, June 25, 2021 8:40 AM
To: [email protected]
Subject: Re: Coding for the future

On Fri, 25 Jun 2021, at 05:08, Seymour J Metz wrote:
> No, by multi-line string I mean a string literal split across multiple
> lines of the source code, whether or not it contains CR, LF or NEL. In,
> e.g., HLASM you can split a string across multiple lines, although the
> syntax is ugly.

For those who haven't seen this sort of thing in other languages, here's
how it's done in perl and python:

https://secure-web.cisco.com/1-tvxvdf20JT0R5zzWbJNqeUIsaO1qQ2tFTypZ2Azvl3FXkNojNt07y9p9ArFW9OtzMgrlsFVnahNR9yOMCv1KLinrQIA9JDuQLFtdHPIh69DqQgtdqhSulCEXiv_nLbIWNXpY_ZjVjIM0nq-3PqEQsrpqSMYXvFh54Di9-2lW317gatXSVl-9Qogt20ZcLbWsgD-wl2luwBLbfyuhl0WuzAWNHhi83UBip-iWXgc8Nfjsxi_YbFFHYaibXw5f8HnMiCY11zx_68rjLfSlZ0zMskpf_QJCs3PerFflkmVSHiVv-gy_jV0xt_E4nBNoc3ddePnezk9IAbFS7ljdEJDVtPWn0EpQOETWCk4XLoyh6p9mTbx_IVzI_lfhm1MOFLGvAnPjbDh8XVacC5Lju1TTjTVflcza5EzbCFELTGs-Omc1LqAVV04SCm_VE4Q6qVX/https%3A%2F%2Fperlmaven.com%2Fhere-documents

https://www.w3schools.com/python/gloss_python_multi_line_strings.asp

--
Jeremy Nicoll - my opinions are my own.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to