On 16-Dec-2014 11:00 -0600, CRPence wrote:
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
Want to make sure I'm understanding what you're saying.......the two
lines I've shown are within a REXX program. It seems you're thinking
I'm doing this on the command line? Or maybe I'm misunderstanding.
Also, the delim = ',' statement has to do with something later on in
the program. I'm not using it as some sort of delimiter for the
Those just happen to be the first two statements in my program, and I
was getting the aforementioned error message when either one of them
was the first line executed.
Hopefully I'm understanding your info correctly. Thanks!