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
 
COBOL ::is it possible to code variable with S9(22) comp?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: COBOL ::is it possible to code variable with S9(22) comp?
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Sun Aug 05, 2007 4:33 am    Post subject:
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    Post subject:
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    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 Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am

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