Error: SQL3100W while export in DB2


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error: SQL3100W while export in DB2
# 1  
Old 11-10-2010
Error: SQL3100W while export in DB2

Problem has been resolved

Last edited by ustechie; 11-10-2010 at 04:23 PM..
# 2  
Old 11-10-2010
Well if the record value is greater than the field size, its certainly not a shell issue but more a DB issue...
I see no other alternative but to do a query to delete the record (or correct it...).
How did it get there in the first place?
# 3  
Old 11-10-2010
Record value is not greater than the field size.
In fact there is no data in that field but the length of that field is greater than 254 char (VARCHAR 255). This is causing the issue.

Last edited by ustechie; 11-10-2010 at 04:24 PM..
# 4  
Old 11-10-2010
Try to select first 254 char from that column and rest of column as it is.

Code:
substr(PRST_ERR_MSG_TXT,1,254)

# 5  
Old 11-10-2010
It is still a DB2 message not shell...
Here:
Web-Based SLM Reports

You are saved by the look of things:
Quote:
Notes:

1. Each time the DB2 Export command runs, the file the table is being exported to is overwritten and all previous data in that file will be lost.

2. You may receive a DB2 warning message SQL3100W for certain table exports. This warning indicates that a character column with a length greater than 254 is being exported. You can ignore this message.
as if you believe IBM, its just a warning...
# 6  
Old 11-10-2010
This is not possible as the script is a generic script. We cannot use that logic because the table name keeps on changing every time we execute that script. Currently this script was used for this table (mentioned in the post). Next time same script will be used for another table which may or may not have a field having length greater than 254 char.
# 7  
Old 11-10-2010
Code:
11/06/10   21:51:01 ANS1802E Incremental backup of '/opt' finished with 1 failure

Dont you (ustechie that is) find similarities in message code format? with this other IBM product?
If you know better than the manufacturer, why post here?
Something else:
Code:
zra:/home/vbe $ titi
/usr/bin/ksh: titi:  not found
zra:/home/vbe $ ls -VT
ls: illegal option -- V
ls: illegal option -- T
usage: ls -1ARadeCxmnlogrtucpFLbqisf [files]

First case : shell message
second : command message
So once the shell executes the command and succeeds (the command is found and running) whatever message you get from that point is from the command (or program or...)...
No comment...

Last edited by vbe; 11-10-2010 at 12:38 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX with DB2 error status Issue

I have a shell script main.ksh We are calling dbscript.ksh from main.ksh I am using select statement in dbscript.ksh but there is a problem with the select statement in dbscript.ksh but still echo $? is showing as zero. I am using DB2 commands in dbscript.ksh Main.ksh dbscript.ksh echo $? ... (13 Replies)
Discussion started by: vamsi.valiveti
13 Replies

2. Homework & Coursework Questions

DB2 Export and Import Oracle

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: is this enough to make the data perfect export into delimited file? there are some posted that i read, they... (9 Replies)
Discussion started by: Sonny_103024
9 Replies

3. Homework & Coursework Questions

DB2 Export and Import Oracle

Hi Guys, I Just wanted your opinion/ suggestion/ Help on my unix script about db2 export data with deli file and import into oracle. db2 connect to Tablename user id using psswrd db2 "EXPORT TO '/cardpro/brac/v5/dev/dat/AAAAA.DEL' OF DEL select * FROM AAAAA" db2 "EXPORT TO... (3 Replies)
Discussion started by: Sonny_103024
3 Replies

4. Solaris

Zpool import/export error

A backup/clone script of ours was recently ran. It normally only clones the rpool and renames in rpoolA. Something must've changed as it found another one of our pools that it shouldn't have. It exported that pool unbeknownst to us. Later on when a coworker realized the other pool was missing he... (2 Replies)
Discussion started by: beantownmp
2 Replies

5. Shell Programming and Scripting

Weird Perl error using db2.

I have having a heck of a time figuring this out so any help is much appreciated. Here is the code where it seems to be dying, I bolded the part it is complaining about: $sth = $dbh->prepare( $query ) or die "error with query\n"; $sth->execute() or die "error executing query ...\n"; while(... (1 Reply)
Discussion started by: savigabi
1 Replies

6. Shell Programming and Scripting

Export Error in Shell script

All, While executing the bellow commnad after the sed, awk command to export the value to, i am getting the fallowing error. line="_AABBB.EEEEEEE.LOG4JDISPLAY.PATH_=/apps/opt/abcde/pdstdsd/esapp/apadsfasdf/logadsfasdf.xml" keystring=`echo $line | awk -F"=" '{ print $1 }'`... (1 Reply)
Discussion started by: jothi basu
1 Replies

7. Shell Programming and Scripting

Run DB2 export command in loop

Hi All, I have list of 100 table names in a file, how to read table name from and pass to DB2 export command and run for all tables in loop. Please help me with script. db2 EXPORT TO ~/data_export/<table name from file>.ixf OF IXF MESSAGES messages.txt "SELECT * FROM ITG.<Table Name... (4 Replies)
Discussion started by: srimitta
4 Replies

8. Shell Programming and Scripting

Export data from DB2 table to .txt file(space delimited)

Hi I need help on this. Its very urgent for me.. please try to help me out.. I have data in tables in DB2 database. I would like to export the data from DB2 tables into a text file, which has to be space delimited. so that I can carry out awk, grep operations on that file. I tried to export... (2 Replies)
Discussion started by: ss3944
2 Replies

9. Shell Programming and Scripting

error while using export command

Hi All, In my script i am using data from oracle table for validation. #!/bin/sh export UID=dun_ind export PWD=`getID dun_ind` fed_ctrl=`sqlplus -s $UID/$PWD@lms <<END set feedback off; set heading off; select sta from controls where sta = 'ABC'; EXIT; END` echo $fed_ctrl... (1 Reply)
Discussion started by: Amit.Sagpariya
1 Replies

10. UNIX for Dummies Questions & Answers

Exception while loading DB2 driver Class.forName("com.ibm.db2.jcc.DB2Driver")

Hi... I m working on UNIX z/OS. Actually i have to pass the parameters from the JCL to java-db2 program thru PARM. I am able to pass the arguments but the problem occured is, it is throwing an exception while loading the db2 driver as 'Javaclassnotfound:com.ibm.db2.jcc.DB2Driver'... (0 Replies)
Discussion started by: Sujatha Gowda
0 Replies
Login or Register to Ask a Question