Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us