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.
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 |
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
how to resolve the file status 47.......
In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-programs will always will always in Initial Mode. My question is : Do we need to code CANCEL or (IS INITIAL) for dynamically called sub-programs or it is the property of Dynamically called pgms so every time sub-pgms are called they will be in initial mode. ***This question is only Dynamic call****, Please reply. Thank you in advance.
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
wht is the diff b/w if and evaluate stmts ?
Can a Search can be done on a table with or without Index?
What is the difference between copy and include in cobol?
wht is structured cobol pgm and non structred cobol pgm ?