How to solve SOC7. I have the cobol coded as below

01 A PIC 9(4).
01 AIN REDEFINES A.
05 AIN1 PIC S9(4)
01 B PIC 9(4)V99.
01 BIN REDEFINES B.
05 BIN1 PIC S9(4)V99.

PROCEDURE DIVISION.
START-PARA.
INITIALIZE A AIN B BIN.
ACCEPT A B.
DISPLAY 'VALUE OF A=' A.
DISPLAY 'VALUE OF B=' B.
DISPLAY 'VALUE OF BIN1=' BIN1.
DISPLAY 'VALUE OF AIN1=' AIN1.
COMPUTE AIN1 = BIN1 - AIN1.
DISPLAY 'VALUE OF AIN1=' AIN1.

When i'm executing this code i'm getting SOC7 for A = 12 &
B=34. Can someone explain

SDSF OUTPUT DISPLAY TCOM058R JOB05458 DSID 102 LINE
0 COLUMNS 02- 81
COMMAND INPUT
===> SCROLL ===>
CSR
********************************* TOP OF DATA
**********************************
VALUE OF
A=12

VALUE OF
B=34

VALUE OF
BIN1=34

VALUE OF
AIN1=12

CEE3207S The system detected a data exception (System
Completion Code=0C7).
From compile unit PROG1 at entry point PROG1 at
statement 29 at compile
+000004CE at address 00007ECE.

Please address how to solve this issue Thanks in
advance.



How to solve SOC7. I have the cobol coded as below 01 A PIC 9(4). 01 AIN ..

Answer / guest

try by providing the input values as A=0012 and B=003400 through the JCL SYSIN.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

what are the working storage fields in BMS macro?

2 Answers   IBM,


hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a record and if some condition is matched tat particular record must be deletd fom the ps

5 Answers   iNautix,


Hai friends why we need to read a file before re-write a record?

7 Answers   L&T,


Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,


If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.

2 Answers  






how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


What is amode(24)?

0 Answers  


What are different data types in cobol?

0 Answers  


Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,


what is difference between the sysabend and userabend?

2 Answers  


What is the difference between CONTINUE & NEXT SENTENCE ?

2 Answers  


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

2 Answers   IBM, Wipro,


Categories