The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
get integer part ericaworld Shell Programming and Scripting 3 05-29-2007 03:16 PM
how to pass integer ramneek IP Networking 1 08-25-2005 08:40 AM
awk or grep for integer only apalex UNIX for Dummies Questions & Answers 5 09-01-2004 01:38 PM
integer arrays primal High Level Programming 4 03-09-2002 05:40 PM
How to get a rodom integer toddor High Level Programming 2 10-10-2001 07:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-10-2008
bennichan bennichan is offline
Registered User
  
 

Join Date: Apr 2007
Location: St.Louis
Posts: 6
Cannot store integer value

Hi ,

I have code like below in my ksh script, but getting an error as SP2-0253: data item 1 ("SAMPLE_ID") will not fit on line , pls help me. thanks.


if (( CHECKS == 0 )) || (( CHECKS == 1 ))

then

V_SAMPLE_ID=$( $ORACLE_HOME/bin/sqlplus -S / <<EOF
whenever sqlerror exit 1 rollback;
whenever oserror exit 1 rollback;

--Set up pagesize parameters.
set newpage 0;
set space 0;
set echo off;
set pagesize 0;
set heading off;
set verify off;
set feedback off;
set trimspool off;
set termout on;
set colsep "";
set linesize 5;

select SAMPLE_ID from sample_m
where NAME=$MFGLBL and TVALUE=$C_SAMPLE;
exit;
EOF
)
v_count=$?
print "V_SAMPLE_ID: $V_SAMPLE_ID" >> $LOG_FILE


fi
  #2 (permalink)  
Old 04-10-2008
bennichan bennichan is offline
Registered User
  
 

Join Date: Apr 2007
Location: St.Louis
Posts: 6
right now i'm able to get the value after adding a substr in the select statement, but the value is getting '2003 15588' , instead of '20031558'

thanks
  #3 (permalink)  
Old 04-10-2008
bennichan bennichan is offline
Registered User
  
 

Join Date: Apr 2007
Location: St.Louis
Posts: 6
any solution for this problem
  #4 (permalink)  
Old 04-10-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
It's against the:

Simple rules of the UNIX.COM forums:

to bump up questions!
  #5 (permalink)  
Old 04-10-2008
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
My crystal ball is fuzzy, but I think you're assuming we know your DB schema.....
  #6 (permalink)  
Old 04-10-2008
bennichan bennichan is offline
Registered User
  
 

Join Date: Apr 2007
Location: St.Louis
Posts: 6
realy sorry about that.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0