MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compare two files records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sushshibu
Beginner


Joined: 21 Jul 2004
Posts: 3
Topics: 3
Location: chennai

PostPosted: Sat Jul 24, 2004 12:40 am    Post subject: compare two files records Reply with quote

Hi All
is there any option for comparing 2 files records with just one command in cobol.
sush
Back to top
View user's profile Send private message
NutCracker
Beginner


Joined: 13 Dec 2002
Posts: 45
Topics: 3
Location: 3rd Block from the SUN

PostPosted: Sat Jul 24, 2004 1:49 am    Post subject: Reply with quote

1/ Open File-1 in Edit/View mode
2/ On the Command Line, type in COMPARE '<File-2>'
3/ All hightlighted lines with '======' are from File-2

HTH
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Sat Jul 24, 2004 8:45 am    Post subject: Reply with quote

Nutcracker,

That was hillarious Smile . Thinking of it, wouldn't be nice to have such a command?

Sushshibu,

There is NO command in COBOL which will compare the contents of 2 files. Please understand that COBOL is a language and not an utility.

If you want to compare 2 files , then you can use the option 3.13(SUPERC) on the mainframe.

Check this link for comparing files with cobol

http://www.mvsforums.com/helpboards/viewtopic.php?t=11&highlight=match

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sat Jul 24, 2004 2:50 pm    Post subject: Reply with quote

?? COMPare has been part of the ISPF editor since Version 4.1. Do you not have it? If you do, I'm not sure I can see any reason to ever use 3.13. If you don't then your version of ISPF probably has been out of service for about 8 years.
Back to top
View user's profile Send private message Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Sun Jul 25, 2004 9:20 pm    Post subject: Reply with quote

Semigeezer/nutcracker,

Honestly speaking till date I never knew that COMPARE command existed. I always used 3.13 for comparision.

well you always learn something new everyday.

For those who are not aware of the compare feature in ispf , check this link which explains in detail about COMPARE

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPZEM20/3.2.11?DT=20031111032944

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NutCracker
Beginner


Joined: 13 Dec 2002
Posts: 45
Topics: 3
Location: 3rd Block from the SUN

PostPosted: Mon Jul 26, 2004 12:50 pm    Post subject: Reply with quote

Quote:

That was hillarious . Thinking of it, wouldn't be nice to have such a command?


Kolusu, I forgot to mention that COMPARE is part of ISPF.
Thanks 'Semi'Geezer for chipping in.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group