Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How handle COMP data items in STRING?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How handle COMP data items in STRING?
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: 6967
Location: porcelain throne

PostPosted: Thu Aug 07, 2008 12:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us