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: 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 change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm


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