No need to guess.  There is a trailing blank in the variable name.
Frank could change to
spec w1.  Or use STRLITERAL.

On 13 September 2011 20:42, Rob van der Heij <[email protected]> wrote:
> Guess there is maybe a trailing blank on the variable name?
> On Sep 13, 2011 9:38 PM, "Frank M. Ramaekers" <[email protected]> wrote:
>> I have the following REXX/PIPELINE:
>>
>>
>>
>> /* */
>>
>> ABC = "ABC"
>>
>> BCD = 123
>>
>> CDE = "Now is the time for all good men
>>
>> DEF = 1.235
>>
>> EFG = "Added variable"
>>
>> Vars="ABC BCD CDE DEF"
>>
>> "PIPE (endchar ?)",
>>
>> " VAR VARS",
>>
>> "| SPLIT AT BLANK",
>>
>> "|o:FANOUT",
>>
>> "|i:FANINANY",
>>
>> "| SPEC 1-* 1 /=/ NW READ 1-* NW",
>>
>> "| CONSOLE",
>>
>> "?o:",
>>
>> "| VARFETCH",
>>
>> "|i:"
>>
>>
>>
>> This works just fine:
>>
>>
>>
>> ABC = ABC
>>
>> BCD = 123
>>
>> CDE = Now is the time for all good men
>>
>> DEF = 1.235
>>
>>
>>
>> But, if I add and additional variable via APPEND LITERAL, I get:
>>
>>
>>
>> /* */
>>
>> ABC = "ABC"
>>
>> BCD = 123
>>
>> CDE = "Now is the time for all good men"
>>
>> DEF = 1.235
>>
>> EFG = "Added variable"
>>
>> Vars="ABC BCD CDE DEF"
>>
>> "PIPE (endchar ?)",
>>
>> " VAR VARS",
>>
>> "| SPLIT AT BLANK",
>>
>> "| APPEND LITERAL EFG",
>>
>> "|o:FANOUT",
>>
>> "|i:FANINANY",
>>
>> "| SPEC 1-* 1 /=/ NW READ 1-* NW",
>>
>> "| CONSOLE",
>>
>> "?o:",
>>
>> "| VARFETCH",
>>
>> "|i:"
>>
>>
>>
>> Result:
>>
>> ABC = ABC
>>
>> BCD = 123
>>
>> CDE = Now is the time for all good men
>>
>> DEF = 1.235
>>
>> PIPRVR235E Variable name is not valid: EFG.
>>
>> PIPMSG003I ... Issued from stage 2 of pipeline 2.
>>
>> PIPMSG001I ... Running "VARFETCH".
>>
>> EFG =
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Frank M. Ramaekers Jr.
>>
>>
>>
>>
>>
>> Systems Programmer
>>
>> MCP, MCP+I, MCSE & RHCE
>>
>>
>>
>> American Income Life Insurance Co.
>>
>> Phone: (254)761-6649
>>
>>
>>
>> 1200 Wooded Acres Dr.
>>
>> Fax: (254)741-5777
>>
>>
>>
>> Waco, Texas 76701
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _____________________________________________________
>> This message contains information which is privileged and confidential and
> is solely for the use of the
>> intended recipient. If you are not the intended recipient, be aware that
> any review, disclosure,
>> copying, distribution, or use of the contents of this message is strictly
> prohibited. If you have
>> received this in error, please destroy it immediately and notify us at
> [email protected].
>

Reply via email to