Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: To Compile and Process a numeric field of S9(25) V9(3)
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

Site Director


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

PostPosted: Wed Nov 07, 2007 10:11 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: To Compile and Process a numeric field of S9(25)
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us