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

Comparing two files one is declared as COMP and other as Dis


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

New User


Joined: 07 Mar 2005
Posts: 17
Location: India

PostPosted: Wed Sep 26, 2007 4:01 pm
Reply with quote

Hi,
I am having two files. One file has varibles decled with DISPLAY and other file is declared as COMP.
COMP file is like below.
---------------------------------------------
-LE PIC S9(4) USAGE COMP.
-ACCT PIC S9(9) USAGE COMP.
-OU PIC S9(9) USAGE COMP.
-DATASRC PIC X(03).

DISPLAY file is
-------------------------------
LE PIC S9(4)
ACCT PIC S9(9)
OU PIC S9(9)
DATASRC PIC X(03)

How do I need to compare these two manually? I mean by opening the two files?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Sep 26, 2007 4:08 pm
Reply with quote

To what end are you comparing?
If -LE = LE?
Back to top
View user's profile Send private message
ganna_f16

New User


Joined: 07 Mar 2005
Posts: 17
Location: India

PostPosted: Wed Sep 26, 2007 5:06 pm
Reply with quote

I am comparing the same.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Sep 26, 2007 5:26 pm
Reply with quote

Just compare them, any numeric field (comp, comp3 or display) can be compared against any numeric field (comp, comp3 or display)......
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 Duplicate transid's declared using CEDA CICS 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top