On 16-Dec-2014 07:11 -0600, Bill Howie wrote:

I'm trying to work through creating my first REXX program on the
AS/400 and I'm getting a very generic error that I'm trying to figure
out. Here are the first two lines of my code:

delim = ','

No matter if I have either of these lines as my first line, I get
this error either way:
"Error in line 1: Invalid character in program"

I can't seem to find anything online about what might cause this.
Wondering if we have any REXX gurus out there who might lend
assistance. Please advise. Thanks!

The preferred string delimiter for the EXEC *COMMAND environment is the double-quote character, not the apostrophe character. And if using apostrophes, then be sure [like in most situations] the character is properly escaped.

The desired command string is presumably properly effected with the following request [assuming the defaults for the unspecified parameters are expected, notably the Override Scope (OVRSCOPE), and the environment is the *COMMAND]:


Note how there is no requirement to place delimiters [neither apostrophes nor double-quote characters] around the names in command string.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].