compile error IGYDS1145-S

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
S Bangera
New Member
Posts: 1
Joined: Fri Mar 25, 2016 12:02 am

compile error IGYDS1145-S

Post by S Bangera »

Hi,

I have compile error IGYDS1145-S. More than 18 digit positions were specified in a "PICTURE" string for a numeric or numeric edited item. A "PICTURE" string of "S9(18)" was assumed.
User avatar
zum13
Registered Member
Posts: 85
Joined: Thu May 04, 2023 12:58 am

Re: compile error IGYDS1145-S

Post by zum13 »

Hello.

The COBOL standards specified a maximum numeric length of 18 digits. By default, the compiler is configured to enforce this limit which is where the message is coming from.

The IBM compiler does have the facility to override this if the "ARITH" option is specified. The default is "ARITH(COMPAT)" which ensures compatibility. "ARITH(EXTEND)" expands the limit from 18 digits to 31 (which happens to be the architectural limit for a packed decimal number).
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”