How to compare file leaving certain filelds?

How to compare two files leaving certain fields, using diff command the
entire file is being compared.

Can any one please help.

Show the input you have and the output you want.

the file which i have to compare is like this

VERSION = 2
SWI_ID = Ericsson3GSGSN
FILE_SEQ_NBR = 695
TOTAL_RECS = 233
FIRST_DTTM = 2008-07-21 16:42:12
LAST_DTTM = 2008-07-21 17:15:58
ORIG_FILE_NAME = UN00695.chg
CONVERTED_REC_STATS = MOC:150;MTC:83
REJECTED_REC_STATS = REJ:0
DISCARDED_REC_STATS =
ADDED_RECS_STATS  = 0
ADD_DUP_CHK_KEY  =
GEN_FIELD_NAME_1  =
GEN_FIELD_NAME_2  =

i dont want the LAST_DTTM field to be compared with a similar type of files .

That's half the input, and none of the output. Can you show the other half of the input, and the matching output please?

the another input file is similar to the 1st input file which i have shown
only last_dttm is different . i have to compare these file using a shell script
and echo that both the files are similar.

Try this

diff -y -b --suppress-common-lines file file1 | grep -v LAST_DTTM
DISCARDED_REC_STATS =                          |    DISCARDED_REC_STATS = 7

Works with diff (GNU diffutils) 3.2 on linux.