07-16-2008
Error in scripts
I am using following code but getting error
Error on line 136:
(SQR 3710) Unknown argument type.
Given below part of program where i am getting error.......
input $p_region type=char
if ( '$p_region' = 'ESAP' )
let $msg = 'YES'
do log_msg ({PROG_NAME}, {SEV_INFO}, $msg)
else
let $msg = 'NO'
do log_msg ({PROG_NAME}, {SEV_INFO}, $msg)
fi
could you please let me know what is the solution for this.
10 More Discussions You Might Find Interesting
1. HP-UX
Hi ! I wish extract one information(error code) from the machine which is running on the HP-UX platform. Can anyone help me?
Wanted to write a scripts that monitor real time at the error code and transfer the information out from the machine. The information is then process and SMS out to the... (9 Replies)
Discussion started by: JOHNSON
9 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am using few ISQL statements to update and delete from a few tables in sybase, now i want to roll back the transaction when any of the statements fail.How i can i capture these errors in the shell scripts.Please advise.
Thanks,
Gopi (4 Replies)
Discussion started by: bhgopi
4 Replies
3. Solaris
hi on Solaris....m getting following error while running a perl script...any suggestions....
install_driver(Oracle) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: perl: fatal: /home/oracle/lib32/libclntsh.so.9.0:... (1 Reply)
Discussion started by: Amardeep
1 Replies
4. Shell Programming and Scripting
Greets all. I'm using Slackware 12.0 with the bash shell. Calling my scripts with /bin/sh...
I'm building gnome-2.18.3 and I have all my build scripts ready and working but I'm calling them from a parent script which executes each child/build script in a certain order (for loop).
I have "set... (6 Replies)
Discussion started by: madpenguin
6 Replies
5. Shell Programming and Scripting
What i need to do is when the database connection is not successful , the script should move to next list i.e skip the current.
But when i do this -
if ; then
break;
fi
The script break but it goes to the condition -
if ; then
for LIST in $LISTS
do
for TABLE in $TABLES
do... (2 Replies)
Discussion started by: dinjo_jo
2 Replies
6. Shell Programming and Scripting
Hi all
I've got a question regarding error handling in shell scripts. My background is mainly object oriented programming languages, but for a year or so I've been doing more and more (bash) shell scripting (which I quite enjoy by the way).
To handle errors in my scripts I... (3 Replies)
Discussion started by: script_man
3 Replies
7. Shell Programming and Scripting
Hi,
I have a shell script confug-msys.sh which callls config-common.sh. When run from command prompt,these work fine but give the below error when i try to run from code-blocks
line 7: --without-contrib: command not found
...Also I am unable to understand what the second script does...... (4 Replies)
Discussion started by: binnyshah
4 Replies
8. HP-UX
Hi Members,
Can members please advise or suggest how to write UNIX script which
move all zip files in source directory and when done delete zip files from source directory? We want to delete only on successful transfer to the destination. secondly want to add some error checking if the FTP... (1 Reply)
Discussion started by: dxj0815
1 Replies
9. Solaris
Hi,
All the scripts placed in /home/bin had 755 permissions. Sometimes scripts are failing with cannot execute errors.
Let me describe a simple scenario.
MasterScript.sh had 755 permissions. It is success most of the times. But, sometimes failing with cannot execute error.
Really... (1 Reply)
Discussion started by: sureng
1 Replies
10. Shell Programming and Scripting
Dear all
I have shell script where files have been organized into directory, i pass the directory name and it shold pick all the files within the directory and move to differnet path.
When i run the scripts it doesn't move and come out with error and i am not able to understand it
the... (2 Replies)
Discussion started by: guddu_12
2 Replies
LEARN ABOUT PHP
cubrid_error_code_facility
CUBRID_ERROR_CODE_FACILITY(3) 1 CUBRID_ERROR_CODE_FACILITY(3)
cubrid_error_code_facility - Get the facility code of error
SYNOPSIS
int cubrid_error_code_facility (void )
DESCRIPTION
The cubrid_error_code_facility(3) function is used to get the facility code (level in which the error occurred) from the error code of the
error that occurred during the API execution. Usually, you can get the error code when API returns false as its return value.
PARAMETERS
This function has no parameters.
RETURN VALUES
Facility code of the error code that occurred: CUBRID_FACILITY_DBMS, CUBRID_FACILITY_CAS, CUBRID_FACILITY_CCI, CUBRID_FACILITY_CLIENT
EXAMPLES
Example #1
cubrid_error_code_facility(3) example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
$req = @cubrid_execute($conn, "SELECT * FROM unknown");
if (!$req) {
printf("Error facility: %d
Error code: %d
Error msg: %s
",
cubrid_error_code_facility(), cubrid_error_code(), cubrid_error_msg());
cubrid_disconnect($conn);
exit;
}
?>
The above example will output:
Error facility: 1
Error code: -493
Error msg: Syntax: In line 1, column 15 before END OF STATEMENT
Syntax error: unexpected 'unknown'
SEE ALSO
cubrid_error_code(3), cubrid_error_msg(3).
PHP Documentation Group CUBRID_ERROR_CODE_FACILITY(3)