if you have big pgm. during compilation is abends with
(soc7)how do you know which line has soc 7 error.
Answers were Sorted based on User's Feedback
Answer / lu
When you COMPiLE your program !!!! How can u get soc7 ????.
Don't confuse the COMPILATION and EXECUTION your program...
I have compile a program more 100000 lines, i never get
SOC7.....but i execute my pgrm i chet it because sapce or
alpha in my numeric field....
correct me if i'm wrong..
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / bala
Check for the offset address. which will give you the extact
line which is responsible for S0C7.
Also use Abend-aid if have it....
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / harish
use the abend-aid to display sysdump....which is same as
sysout.........abend-aid has a diagonostic section , which
will give two things the the variable which caused the abend
adn the the nexat squential instruction ..........generally
soc7 will occur due to bad data....i.e an unintialised
working-storage section item.........to be more
precise....an arthimetic operation performed on non-numeric
junk......there lot of ways to check and correct this, i've
jus told one method..
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anu
By using Parm.cobol=test also u can able to identified, on
which line abend is occur.
| Is This Answer Correct ? | 2 Yes | 2 No |
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
using cursor how can you fetch more than one record into a variable
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
a dd statement has 2 types of parameters. Name them?
Can we Execute a job without specifying Job Name in the Job Card?
In DCB, what is LRECL,BLKSIZE,DSORG
If a JOBSTEP abends, AND without using COND also, all the subsequent steps execute, then what is the use of using EVEN ? Why do we use EVEN when without it also all the JOBSTEPs execute ?
Describe the various parameters utilized in the creation of a gdg?
If a field is declared as a comp-3 field and if we want to sort a dataset based on this field, then how will the sort card be??? e.g- if we want to sort by a field which is defined as a PIC X(5) then we will mention - sort fields=(1,5,ch,a). Likewise if a field is defined as PIC S9(10)COMP-3 then in this case how will the sort field be defined (because in this case a sign is also involved)???
how can i use the parameters decalred in main pgm in sub pgm
Where can program checkpoints be stored for use in a restart?
What is job control language?