Hi Gil,
No, the LINEND Character does not work in this instance (to retain the command buffer post-CMS crash.)

The LINEND Character (default "#") LOGICALLY separates the command(s) being placed into the CMS Buffer. This buffer is destroyed when CMS crashes (due to the TERM CONMODE 3270 Command). The Linend is a "physical" separator in the CP buffer. That means everything before it is placed into the CMS Buffer.
Everything after the x"15" is run by CP after CMS crashes.

Here is an IPL EXEC from one of my MVS Guests:
/* Rexx */
CMD='TERM CONMODE 3270'
/* CMD=CMD || '15'X || 'IPL D21C LOADPARM 030624' */
/* CMD=CMD || '15'X || 'IPL D401 LOADPARM 030625' */
/* CMD=CMD || '15'X || 'IPL 0A80 LOADPARM 0A82CS' */
/* CMD=CMD || '15'X || 'IPL 0A80 LOADPARM 0A8223' */
/* CMD=CMD || '15'X || 'IPL 0A80 LOADPARM 0A8224' */
/* CMD=CMD || '15'X || 'IPL 0AC0 LOADPARM 0A8224' */
/* CMD=CMD || '15'X || 'IPL 0A80 LOADPARM 0A82WS' */
   CMD=CMD || '15'X || 'IPL 0A80 LOADPARM 0A8224'
SAY CMD
CMD

Regards,
David

On 2021-06-26 23:48, Paul Gilmartin wrote:
On Sat, 26 Jun 2021 22:49:43 -0400, David Spiegel wrote:
The newline as part of a string is critical in VM-Land for PROFILE EXECs
which want to IPL a Guest in a Rexx Exec.
It is necessary because, as soon as the TERM CONMODE 3270 is issued, CMS
is blown away, yet, the string is still in the CP Command buffer
(waiting to executed).

Isn't that neither X2C("0A") nor '15'x nor ESC_N, but the value set by
CP TERM LINEND, by default '#'?

I set CP TERM LINEND off in my PROFILE EXEC because all the default
options are too useful otherwise.

XEDIT has its own LINEND setting.  Default was '#" which caused me a
problem trying to XEDIT a file (supplied by IBM) with '#' in its name
when I couldn't disable XEDIT's LINEND before LOADing the file.
IBM fixed that by APAR to make XEDIT's default the CP value/

On 2021-06-26 08:25, Paul Gilmartin wrote:
On Fri, 25 Jun 2021 16:57:54 -0700, Charles Mills wrote:
And regarding #2, similarly

Bar = "blah blah" || X2C("0A") || "blah blah"

Or, perhaps:
      ... || '15'x || ...

This may motivate a question on TSO-REXX.

-----Original Message-----
From: Seymour J Metz
Sent: Friday, June 25, 2021 4:32 PM
     ...
2. A string literal whose value includes an embedded new line
-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to