IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Compile and Process a numeric field of S9(25) V9(3)


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deb_parthas

New User


Joined: 24 Nov 2005
Posts: 18

PostPosted: Wed Nov 07, 2007 9:31 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 07, 2007 10:11 pm
Reply with quote

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
View user's profile Send private message
HARLEEN SINGH MANN
Warnings : 2

New User


Joined: 03 Aug 2007
Posts: 17
Location: Pune

PostPosted: Wed Nov 07, 2007 11:24 pm
Reply with quote

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
View user's profile Send private message
deb_parthas

New User


Joined: 24 Nov 2005
Posts: 18

PostPosted: Thu Nov 08, 2007 2:26 am
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Nov 08, 2007 2:34 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Join 2 files according to one key field. JCL & VSAM 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top