![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 03:44 AM |
| cp and rm return non zero value | latitude | High Level Programming | 7 | 08-26-2007 05:04 AM |
| Return Key | chapmana | Shell Programming and Scripting | 2 | 11-29-2006 12:52 AM |
| FTP return value | Shaz | UNIX for Advanced & Expert Users | 7 | 06-11-2003 01:09 PM |
| the return value $? | gusla | Shell Programming and Scripting | 3 | 12-08-2002 04:30 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
return DB2 SQLCODE
Hello All,
I have 2 shell scripts. script1.sh script2.sh script1.sh call script2.sh script2 will connect to DB2 database and execute a insert statement. I am capturing the return value of insert statement in an variable called SQLCODE. I want to return this SQLCODE to the calling script script1.sh SQLCODE can have negative values and positive values which are more than 255. There should be a way to send the SQLCODE accross the scripts. How do I return or capture the SQLCODE in script1? exit $SQLCODE or exit $RETCODE does not help. Thanks for the help. Appreciate it. -Jai |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|