Grammatical error in scripting program.

Tags
error, scripting, shell script, shell scripting, shell scripts, unix scripting, unix scripting basics

 
Thread Tools Search this Thread
# 1  
Old 12-23-2008
Question 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.
# 2  
Old 12-23-2008
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

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Bash Scripting program rami-ali Homework & Coursework Questions 2 11-21-2018 11:57 AM
To check if the JAVA Program is successfully executed in sh shell scripting preema Shell Programming and Scripting 1 09-06-2017 08:03 AM
Error in my FORTRAN program KathyB148 Programming 5 09-04-2015 02:05 PM
Error in executing the C program Ravi Tej Programming 4 12-15-2014 10:39 PM
Help Scripting: Sync Photos Program abudis Shell Programming and Scripting 1 07-01-2013 02:56 AM
scripting an interactive program session nomadvisuals Shell Programming and Scripting 2 02-27-2012 03:22 PM
An error in my c++ program... please help urgent. poonam.gaigole Programming 6 03-17-2011 03:37 AM
Runtime error in C++ Program - Help arunkumar_mca Programming 3 01-06-2010 06:03 PM
an error in perl program binnybio Linux 0 11-07-2009 01:29 AM
Need help with program error glock1800 Shell Programming and Scripting 2 10-24-2009 04:17 PM
little program error. joey Programming 4 11-19-2008 07:39 AM
Shell scripting Program balaji23_d Shell Programming and Scripting 1 10-06-2008 01:31 PM
Shell scripting Program balaji23_d Shell Programming and Scripting 1 10-06-2008 09:45 AM
Program Error Carmen123 AIX 0 11-23-2006 07:20 AM
Error Compiling C program Vivek Programming 3 10-25-2001 12:13 PM