× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 = ','
'OVRDBF FILE(STDIN) TOFILE('TEST'/'TESTRAWJRN') MBR('TESTNONJRN')'

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]:

"OVRDBF FILE(STDIN) TOFILE(TEST/TESTRAWJRN) MBR(TESTNONJRN)"

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


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.