soc7 error

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
krishnaveni
Member
Posts: 5
Joined: Fri Jan 02, 2009 12:05 pm

soc7 error

Post by krishnaveni » Thu Jan 22, 2009 9:58 am

hi every one , i got soc7 error when i tried to move a comp-3 variable to a non comp-3 variable ?





edited by dbz.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Thu Jan 22, 2009 10:31 am

Welcome to mainframegurukul.com.

Please delete your first two post which does not contain any matter.

Regarding your question on s0c7 - program gives S0C7 error when there is
invalid value in COMP-3 field. please check comp-3 field might contain invalid data.
Last edited by Natarajan on Thu Jan 22, 2009 7:17 pm, edited 1 time in total.
Natarajan
Chennai

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Jan 22, 2009 11:03 am

Hello,

What's the definition of "non comp-3 variable" - Alphanumeric, Numeric(99) ?
Regards,
Anuj

krishnaveni
Member
Posts: 5
Joined: Fri Jan 02, 2009 12:05 pm

non comp-3 variable

Post by krishnaveni » Thu Jan 22, 2009 11:48 am

the non comp-3 variable which i used is numeric.

thank you anuj

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri Jan 23, 2009 4:12 pm

the sending field should be interrogated with an:

Code: Select all

IF COMP-3-FIELD NUMERIC
THEN
      MOVE ::::
ELSE
     PERFORM INVALID-COMP-3-FIELD-DATA
END-IF
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others