Results 1 to 7 of 7

Thread: solve soc 7 error

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    1

    solve soc 7 error

    how to solve soc 07 error..


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Re: solve soc 7 error

    Kiran,
    There are a few techniques. I am assuming you have a CEEDUMP or an ABEND-AID report which shows which line your program failed with an 0C7.

    0C7 is when you move an alpha character to a numeric field.

    One way to solve is do a NUMERIC check before the MOVE statement.

    Thanks,
    -PK

    Quote Originally Posted by kiran.mf543 View Post
    how to solve soc 07 error..



  3. #3
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Re: solve soc 7 error

    Kiran,

    In ABEND-AID it's having displacement of which field is giving the S0C7 abend.You copy the displacement from the ABEND-AID,after that find the displacement in compiled program SYSUT2.Then you will get the field name and initialize the field properly.Some times the displacement will come in between the range.At that time we can't able to find out the field name.So you can use the displacement in paragraphs.

    Thank's
    Loges


  4. #4
    Junior Member
    Join Date
    Jun 2008
    Answers
    2

    Re: solve soc 7 error

    Kiran,

    I guess the smarter way is to use xpeditor . Compile the program in xpeditor and then excute by pressing F12. cursor will stop in the line excatly where the Soc-7 is(particular line where the problem is). And the only thing remain is just cross verify that statement(may be move commands) and alter as per requirment and compile link.

    Let me know in case of any concern.

    Regards


  5. #5
    Junior Member
    Join Date
    Jun 2008
    Answers
    2

    Re: solve soc 7 error

    soc7 abend happens when u r with datatype mismatch.ie,u may b trying 2 move a numeric value into a datatype declared as floating.this is just an example i said.just try whether there is any data type mismatch


  6. #6
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Re: solve soc 7 error

    Soc 7 abend is datatype mismatch.
    Example:
    77 A PIC X(005) VALUE "INDIA".
    77 B PIC 9(005).

    Move A TO B

    The "INDIA" data move to B. That time we got soc 7 abend.


  7. #7
    Junior Member
    Join Date
    Aug 2008
    Answers
    7

    Re: solve soc 7 error

    SOC7 happens most frequently in cases of data mismatch.
    For eg,
    W-RT-AGE PIC 99
    Now if u move a value 100 into this field, a SOC7 abend would occur.This is just one example of data mismatch.You can use a debugger tool to find the point of abend in the COBOL program.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact