IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can we compare 2 longvar variables thru DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sgiri
Warnings : 1

New User


Joined: 07 Aug 2007
Posts: 20
Location: chennai

PostPosted: Mon Aug 13, 2007 6:20 pm
Reply with quote

hi all,

Pls let me know how can we compare 2 longvar variables through the DB2 query.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 13, 2007 6:38 pm
Reply with quote

do you mean varchar?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 13, 2007 9:21 pm
Reply with quote

Hello,

If you post your definitions and what you want to do, it will help.
Back to top
View user's profile Send private message
sgiri
Warnings : 1

New User


Joined: 07 Aug 2007
Posts: 20
Location: chennai

PostPosted: Tue Aug 14, 2007 10:25 am
Reply with quote

I am getting -134 error when comapring the 2 longvar variables. Pls let me know how can i compare them through a Db2 Query
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 14, 2007 3:52 pm
Reply with quote

sgiri,

You need to explain what is the definition of 'longvar variables' or by this what are you referring to?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 14, 2007 4:03 pm
Reply with quote

SQL code -134:
Quote:
A long string was referenced in a context in which long strings are not allowed. For an exhaustive list of such contexts, refer to Varying Length Character Strings in Chapter 3 of SQL Reference.


Start using proper terminology. If you still can't understand why your query is returning the -134, post your sql, ddl and we can help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top