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

How handle COMP data items in STRING?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
babu_hi

New User


Joined: 11 Apr 2006
Posts: 93

PostPosted: Thu Aug 07, 2008 11:22 am
Reply with quote

I am facing the problem with COMP variables in a string cmmand.For my requirement we are using Dynemic sql cursor for implementing a generic cursor. Here i am moving sql statements in to a String and used in cursoe diclaration.at same i am receving different where clause fields so i ahve mentined in a Evaluate sttement and set the flag for required string.This string contains the Where clause ofall fileds.

i have changed COMP variables in to edited variables bcz STRING is not accepting the COMP items,but at the time of cursor execution ai am gettin the SQL erro bcz DATABAS variable and WHERE clause variaable data types are differnrt.
Please tell me how can handle COMP variables ina string?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Aug 07, 2008 12:57 pm
Reply with quote

either use the reference name of the comp host variable in the where clause, or move your comp variable to a display field and string the display field - thus using a literal instead of host variable in the where clause.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top