What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?
Answers were Sorted based on User's Feedback
Answer / guest
S0C1-May be due to 1.Missing or misspelled DD name
2.Read/Write to unopened dataset 3.Read to dataset opened
output 4.Write to dataset opened input 5.Called subprogram
not found
S0C4-may be due to 1.Missing Select statement(during
compile) 2.Bad Subscript/index 3.Protection Exception
4.Missing parameters on called subprogram 5.Read/Write to
unopened file 6.Move data from/to unopened file
S0C5-May be due to 1.Bad Subscript/index 2.Closing an
unopened dataset 3.Bad exit from a perform 4.Access to I/O
area(FD) before read
S0C7-may be due to 1.Numeric operation on non-numeric data
2.Un-initialize working-storage 3.Coding past the
maximum allowed sub script
S0CB-may be due to 1.Division by Zero
| Is This Answer Correct ? | 150 Yes | 20 No |
Answer / aap
I completely agree with Answer 1.
Just to add to B37 abend (while agreeing to it) -
we get abends like SB37, SD37 etc.
Actually S is for system, 37 denotes the space abend.
But the 2nd alphabet B is for blocks, D is for DASD
etc...the unit of colume for which the space parameter has
been defined..This helps to resolve a lot of confusions :-)
| Is This Answer Correct ? | 53 Yes | 9 No |
Answer / brian
B37 - Runtime ABEND usually encountered when writing to a
file and running out of space allocated in the dataset
paramemters of the DD statement.
| Is This Answer Correct ? | 43 Yes | 11 No |
Answer / rja
S0C7-may be due to Numeric operation on non-numeric data
| Is This Answer Correct ? | 24 Yes | 1 No |
Answer / varun jain
SOC 1 - JCL DD name missing.
SOC 4 / SOC 5 - Subscript error
| Is This Answer Correct ? | 16 Yes | 4 No |
Answer / sujitha
THE ANSWER 1 IS EXACTLY CORRECT
SOC1-DD NAME MIS SPELT
READ THE FILE IN OUTPUT MODE
WRITE THE FILE IN INPUT MODE
SOC4-BAD SUBSCRIPT OR INDEX
OPENING THE ALREADY OPENED FILE
SOC7-WHEN WE TRY TO PERFORM THE NUMERIC OPERATION ON NON
NUMERIC DATA
AND THE SPACE ABENDS THAT WE GET ARE SB37,SE37 AND SD37
SB37-END OF THE VOLUME
SE37-IN THE SPACE PARAMETER IF WE DONT SPECIFY THE NO OF
DIRECTORY BLOCKS
SD37-IN THE SPACE PARAMETER IF WE DONT SPECIFY THE
SECONDARY QUANTITY
| Is This Answer Correct ? | 12 Yes | 13 No |
Answer / sampath kumar
soc1 :-operation exceptions...
causes for this abend
misspelled ddname
error in parameters passed to subroutins.. etc
soc4 :- protection exception-
invalid address was refferenced due to subscript error
or bad parms..etc
soc7 :- decimal exception-
dicimal data is incorrect or improperly overlapped or
not validly initialized...etc
socb :- decimal devide exception..
a quotient exceeds the specified data size...etc
| Is This Answer Correct ? | 3 Yes | 8 No |
Answer / tom
S0CB -this is also the space abend.(ie)Due to unavalability
of enough space.
| Is This Answer Correct ? | 15 Yes | 52 No |
When output dataset space is required, what quantity categories are used?
A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?
What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?
what is JCLLIB and PROCLIB in jcl and their syntax
what is the resolution for sb37 error
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
How can a fb file convert to vb file using sort program?
how many max steps can we use in a job? pls answer to my question
What is a Generation Data Group (GDG)?
. What is the difference between the following statements : I) step#1 exec PGM=accpay ii) step#1 exec tbalance
Suppose i have 2 steps in my pgm. Step1- creates a file, Step2 - generates report from file in step1, What changes have to be made in Step2, so that if the file in Step1 is empty Step2 should not be executed? No changes to be made to Step1.
How to delete AIX ? i) IEBGENER ii) IDCAMS iii) PURGE iv) All of the above