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 three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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