|
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
command string.
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
OVRDBF command.
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!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.