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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Comparing two files one is declared as COMP and other as Dis
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: 2150
Location: At my coffee table

PostPosted: Wed Sep 26, 2007 4:08 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Wed Sep 26, 2007 5:26 pm    Post subject:
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    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 Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


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