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: 6965
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: 19243
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: 6248
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: 6965
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts Substitution of JCL variables CLIST & REXX 10
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
Search our Forums:


Back to Top