This works like a charm:

/**/
if = 1
then = 'TYPE PROFILE EXEC A 1 1'
if if then ' 'then

The high colons in front of the second "then" let it fly  ;-)



-----Ursprüngliche Nachricht-----
Von: The IBM z/VM Operating System [mailto:[email protected]] Im Auftrag 
von P S
Gesendet: Freitag, 31. Juli 2009 17:21
An: [email protected]
Betreff: Re: REXX DATE - Julian and Centry

On Thu, Jul 30, 2009 at 10:30 PM, Bob Woodside<[email protected]> wrote:
>    Oh, my. Well, if we must explore it fully, I have to excerpt a
> snippet from a Rexx course I recently taught, illustrating how the use
> of "not quite reserved" keywords as variable names *can* trip you up.
> It typically happens when one is dynamically building a string to be
> interpreted.

Beat me to it, I saw this after tinkering with:

/**/
if = 1
then = 'TYPE PROFILE EXEC A 1 1'
if if then then

which doesn't quite work, but this does:

/**/
if = 1
then = 'TYPE PROFILE EXEC A 1 1'
if if then (then)

Reply via email to