View previous topic :: View next topic
|
Author |
Message |
msrinivasa Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 10 Location: chennai
|
|
|
|
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 |
|
|
jayant_tibhe
New User
Joined: 25 Feb 2006 Posts: 27 Location: Pune
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
S0C7 is packed numeric data exception, why would you have ntr-name or mtr-name definde as packed data? |
|
Back to top |
|
|
msrinivasa Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 10 Location: chennai
|
|
|
|
both the files are same formate and record lentha is also same. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
That doesn't matter, why don't you look at the dump and see what decimal value has garbage in it? |
|
Back to top |
|
|
msrinivasa Warnings : 1 New User
Joined: 31 Jan 2007 Posts: 10 Location: chennai
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Did you initialize WS-NOCOM-CT? |
|
Back to top |
|
|
|