View previous topic :: View next topic
|
Author |
Message |
deb_parthas
New User
Joined: 24 Nov 2005 Posts: 18
|
|
|
|
Hi Friends,
We have a requirement wherein a field in the output file from a Cobol has a declaration of S9(25) V9(3) but as we know, the default compiler option in Cobol is only upto 18 bytes. We however compiled successfully after adding the below line at the beginning of the code..
CBL ADV,SSRANGE,TRUNC(STD),DATA(31),DYNAM,ARITH(EXTEND),DIAGTRUNC
but now the job abends with S0C4 while trying to execute the compiled program. It does not even enter the procedure division.
Could you please suggest how an integer field of length S9(25) V9(3) can be compiled and populated?
thanks so much...[/list] |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is the posted CBL used in all of your programs (without the ARITH(EXTEND))?
Ask your system support people if the DATA(31) is correct. You ma y need DATA(24).
Look at the linkedit to see if there are any warnings. |
|
Back to top |
|
|
HARLEEN SINGH MANN Warnings : 2 New User
Joined: 03 Aug 2007 Posts: 17 Location: Pune
|
|
|
|
the option that u have used : arith(extend) is absolutely the requirement.
but the reason the prog is givin a SOC4 are multiple. plz let know the exact error. line no. etc. |
|
Back to top |
|
|
deb_parthas
New User
Joined: 24 Nov 2005 Posts: 18
|
|
|
|
Harleen,
Thanks for looking into this. Unfortunately, the error logs do not show more information on the S0C4. But further debugging shows that it does not execute any statement inside procedure division. Also, when the program is compiled with DATA(24), the job abends with S0C1 instead of S0C4. Hope this provides some help..
Thanks for any suggestion.
Partha |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi,
Can you give us the compiler and version you're using?
Also what were the "canned" options in use before you changed them?
Can you provide the sysmsg info produced when you ran the job? |
|
Back to top |
|
|
|