![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| 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 06:44 AM |
| cp and rm return non zero value | latitude | High Level Programming | 7 | 08-26-2007 08:04 AM |
| Return Key | chapmana | Shell Programming and Scripting | 2 | 11-29-2006 04:52 AM |
| FTP return value | Shaz | UNIX for Advanced & Expert Users | 7 | 06-11-2003 04:09 PM |
| the return value $? | gusla | Shell Programming and Scripting | 3 | 12-08-2002 08:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|