Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us