12-13-2010
I am doing like below...
a=call DWH.P_CALC_COUNT('TABLE_NAME',?)
when I am doing echo $a
it is giving below output :
Value of output parameters -------------------------- Parameter Name : ROW_CNT Parameter Value : 100 Return Status = 0
I want to just capture 100 here and store it in some variable.
Kindly let me know if you have any solution.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a procedure with an out parameter, I want to use this value in a shell script, I've done this in perl before but they want this to be a ksh script. what is the syntax to do this.
this was my first thought;
#!/usr/bin/ksh
sqlplus -s scott/tiger@db << EOF
... (1 Reply)
Discussion started by: edog
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have an expression using grep and nawk that captures the ID number of a given Unix process. It gets printed to screen but I don't know how to declare a variable to this returned value!
For example,
ps -ef|grep $project | grep -v grep | nawk '{print $2}'
This returns my number. How... (2 Replies)
Discussion started by: babariba
2 Replies
3. Shell Programming and Scripting
I have the following line in my script:
$sftpcmd $rmthost <<COMMANDS>> $sftplog 2>&1
For some reason this is not capturing the errors from sftp, they go to the file attached to the cron entry
ie
mm hh dd MM * /myscript > cron.out
any idea why?
digital unix 4.0d (6 Replies)
Discussion started by: MizzGail
6 Replies
4. Shell Programming and Scripting
Hi
i'm calling a pl/sql procedure which is returning one variable.
i'm trying to assing this value to variable in shell script
the code i wrote is
** in shell script**
var= 'sqlplus user/pass @ret.sql'
echo $var
**
and
variable dum_var number
exec rt_test(:DUM_VAR);
exit;
in... (4 Replies)
Discussion started by: ap_gore79
4 Replies
5. Shell Programming and Scripting
I am trying to check to see if a file exists on a ftp server, well, I know that cant be done, atleast directly, So I came up with this small script
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd public_html/crap
dir $FILE
quit
END_SCRIPT
Where the $ variable... (2 Replies)
Discussion started by: designflaw
2 Replies
6. Shell Programming and Scripting
Environment: Sun UNIX
Language: Bourne Shell
I have the following script and it works fine. Unfortunately, from user's perspective, it looks very messy because the user is able to see the output of the process caused by the print command.
Is there a better way to overcome it?
Here's the... (10 Replies)
Discussion started by: totziens
10 Replies
7. Shell Programming and Scripting
Explain this?
$ ls | grep -e "crd\|cs"
crd
cs
$ CLONES=`ls | grep -e "crd\|cs"`;echo $CLONES;
crd cs
$ CLONES=`ls | grep -e "crd\|cs"`;echo "$CLONES";
crd
cs (1 Reply)
Discussion started by: blasto333
1 Replies
8. Shell Programming and Scripting
Greetings,
I need to capture the output of a Sybase stored procedure, inside my
shell script( k shell). Based on this output, I need to call another
perl script, with input arguments as the result set of the procedure
execution. I need to keep looping through and call the perl script, ... (2 Replies)
Discussion started by: rajpreetsidhu
2 Replies
9. Shell Programming and Scripting
hi,
Could anyone tell me how to pass the output values of the PL/SQL procedure to Shell script and how to store that values in a shell script variable...
Thanks in advance... (5 Replies)
Discussion started by: funonnet
5 Replies
10. Shell Programming and Scripting
Hi, I'm new to korn and having trouble capturing the text output from one program in an array that I can then feed into another program. Direct approaches didn't work, so I've tried to break it down thus:
The program lonlat2pixline gives the values I need in the second column, so I print that... (4 Replies)
Discussion started by: daurin
4 Replies
LEARN ABOUT DEBIAN
dzen2-dbar
DBAR(1) General Commands Manual DBAR(1)
NAME
dzen2-dbar - simple gadget that you can use in combination with dzen to display a progressbar.
SYNOPSIS
dzen2-dbar [-w characters] [-s symbol] [-min minvalue] [-max maxvalue] [-l string] [-nonl]
DESCRIPTION
dbar is an application that generates semi graphical progress meters, from some values you supply to it.
See the usage examples for a description of the expected input format.
OPTIONS
A summary of options is included below.
-max Value to be considered 100% (default: 100)
-min Value to be considered 0% (default: 0)
-w Number of charcaters to be considered 100% in the bar (default: 25 )
-s Symbol represeting the percentage value in the bar (default: = )
-l label to be prepended to the bar (default: '' )
-nonl no new line, don't put '0 at the end of the bar (default: do print '0)
USAGE EXAMPLES
Static 0% and 100% mark or single value input:
Command: echo 25 | dbar -m 100 -l Sometext
Output: Sometext 25% [====== ]
If your 100% mark changes dynamically or 2-values input:
Command: echo "50 150" | dbar
Output: 33% [======== ]
If your value range is not between [0, maxval] or 3-values input:
Command: echo "50 -25 150" | dbar
Output: 43% [=========== ]
Dbar was written by Robert Manea.
This manual page was written by bertagaz <bertagaz@ptitcanardnoir.org>, for the Debian project (but may be used by others).
Jan 01 2008 DBAR(1)