Grammatical error in scripting program.

Hi,

I have one script program (lod0361.job) ,where i am using errorlog() function with some arguments like below.

call errorlog ("---- unload to \"TESTNAME.out\" select * from TESTNAME")

but when i run the lod0361.job then i am getting below errors.

call errorlog ("---- load from "lod0361.unl" delimiter \'|\' insert into lod036"
)
|______________________________________^
|
| A grammatical error has been found on line 27, character 40.
| The construct is not understandable in its context.
| See error number -4373.
|
| The function "errorlog" has already been called with a different
| number of parameters.
| See error number -4333.
load from "lod0361.unl" delimiter '|' insert into lod036

But when i use the ' ' instead of " " then no issue .
Below is my changed function .

call errorlog ("---- unload to \'TESTNAME.out\' select * from TESTNAME")

This mystery is happening on AIX platform only and on other platform (Linux ,Solaris ) no issue .

could any one please help me for solving this mystery .

Thanks in advance.

Hi, just an idea. I've never seen or used errorlog, but when You "call" errorlog You pass a string with escaped double quotes, but then that is what errorlog has to work with, and errorlog sees a string with unmatched double quotes. Maybe?
What shell are You using?

/Lakris