Answer Posted / madhu
If you get S0C7 means some of your numeric variables/data
items have invalid data. now we need to find out how to do
this.
while compiling use compiler option LIST. it will give
listing of your cobol program in spool.
Now, run your program, it will abend will with S0C7
go to spool and take the last four bytes of offset.
open the compiler listing and find those 4 bytes in the
compiler listing.
you can find the position, where S0C7 occured.
In this way , we can find the position where S0C7 error got
generated.
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Does jcl support automatic restart?
Differentiate between the joblib and the steplib statements?
Explain the hierarchy levels in jcl?
when can a job time-out occur? How to overcome that?
Explain the purpose of dd dummy statement?
What is job control language?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 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
Is it possible to define dd statements as you want?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Is acct parameter mandatory?
How can the disposition of sysout datasets be set for an entire jobstream?
Define concatenating?
What are some jcl statements that are not allowed in procedures?
What is the motivation behind coding class parameter in job statement?