Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Soc7 when comparing two diff files with having the same data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: Soc7 when comparing two diff files with having the same data
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 3:40 pm    Post subject:
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    Post subject: Reg soc7
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 4:10 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 4:31 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us