While it would be less convenient than a macro if you are doing it often, would
this not work (in open code)?
&tmp SETC 'This is a literal string'
&len SETA L'&tmp
MVC Target(&len),=C'&tmp'
--Art Celestini
At 09:41 PM 5/17/2012, John Ehrman wrote:
>Robin observed:
>
>>They are no substitute for
>>
>> MVC A(L'B-1),B
>
> MVC A(L'=C'...60-character literal...'),=C'...60-character
>literal...'
>
>where the repeated typing is error-prone, and the need for continuations is
>clumsy initially, and especially if the literal must be modified.
>
>Certainly, the literal can be replaced by a named constant, but many
>programmers like seeing the literal's contents where it's used.
>
>John Ehrman