Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us