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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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