IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Soc7 when comparing two diff files with having the same data


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
msrinivasa
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 10
Location: chennai

PostPosted: Mon Feb 26, 2007 12:06 pm
Reply with quote

Hi this is srinivasa rao

I am comparing two diff files with having the same data.while run time I am getting the S0c7.in the COBOL program just I am verifying the field values.ex: ntr-name = mtr-name.
Back to top
View user's profile Send private message
jayant_tibhe

New User


Joined: 25 Feb 2006
Posts: 27
Location: Pune

PostPosted: Mon Feb 26, 2007 12:42 pm
Reply with quote

Vasu,

Have you check with the file format? Or the String size you defined for them?

Please provide the details for that..
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 3:40 pm
Reply with quote

S0C7 is packed numeric data exception, why would you have ntr-name or mtr-name definde as packed data?
Back to top
View user's profile Send private message
msrinivasa
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 10
Location: chennai

PostPosted: Mon Feb 26, 2007 3:56 pm
Reply with quote

both the files are same formate and record lentha is also same.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 4:10 pm
Reply with quote

That doesn't matter, why don't you look at the dump and see what decimal value has garbage in it?
Back to top
View user's profile Send private message
msrinivasa
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 10
Location: chennai

PostPosted: Mon Feb 26, 2007 4:26 pm
Reply with quote

Actually iam getting the input files from diff sources. my program is used to ensure that both file will have same data.both the files have diff copy books


code

IF MTF-REFERRAL-ID NOT = MPC-REFERRAL-ID
MOVE 'MTF-REFERRAL-ID' TO EO-FIELD-NAME
MOVE MTF-REFERRAL-ID TO EO-SOURCE-VALUEN
MOVE MPC-REFERRAL-ID TO EO-TARGET-VALUEN
WRITE ERROR-OUT FROM ERROR-LINE-OUT
AFTER ADVANCING 1 LINE
MOVE SPACES TO ERROR-OUT ADD 1 TO WS-NOCOM-CT.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 4:31 pm
Reply with quote

icon_question.gif Did you initialize WS-NOCOM-CT?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top