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

how to compare COMP and character values


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

New User


Joined: 30 Jul 2006
Posts: 1

PostPosted: Sun Jul 30, 2006 11:37 am
Reply with quote

I have one query .
I am fetching data of X(20) from table
I have to store that value in a array .
Then I need to compare that value against another table's value which a S9(4) COMP.Any solution plz...
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Mon Jul 31, 2006 7:48 pm
Reply with quote

What kind of values do you expect to be getting in the X(20) field? All Numeric values or mixed? Please give us more info on your requirements.

Thanks,

Dave
Back to top
View user's profile Send private message
chiranjeevi_mca

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Thu Aug 03, 2006 10:32 am
Reply with quote

Hi,

declare one new dataitem with s9(4) comp

move x(20) dataitem into new dataitem
then compare with the new dataitem.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top