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

COBOL ::is it possible to code variable with S9(22) comp?


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

New User


Joined: 06 Feb 2006
Posts: 10
Location: Bangalore

PostPosted: Sun Aug 05, 2007 3:45 am
Reply with quote

Is it possible to code variable with S9(22) comp.? If we code in program what error it will show? pls any one help icon_smile.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sun Aug 05, 2007 3:54 am
Reply with quote

Give the compiler ARITH(EXTEND) and you can do it. It allows extended numeric types
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Aug 05, 2007 4:33 am
Reply with quote

If you look at the Appendix B. Compiler limits in the Enterprise COBOL for z/OS and OS/390 Language Reference you would see that S9(22) is possible:
Code:
Language element                                   Compiler limit             
PICTURE character-string                           50                         
Numeric item digit positions
If the ARITH(COMPAT) compiler option is in effect: 18                 
If the ARITH(EXTEND) compiler option is in effect: 31
Back to top
View user's profile Send private message
rambabu110
Warnings : 1

New User


Joined: 06 Feb 2006
Posts: 10
Location: Bangalore

PostPosted: Mon Aug 06, 2007 11:08 pm
Reply with quote

Thanks for your quick response !!
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top