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

Changing compiler options in changeman


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pullaiah.cts

New User


Joined: 02 Sep 2010
Posts: 50
Location: Pune

PostPosted: Mon Jan 09, 2012 12:02 pm
Reply with quote

Hi,

In my program,one variable is having pic clause as

15 WS-PRICE PIC -9(11).9(8)

While compiling through JCL getting the below error message:

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.

I read the posts which are explaining the reason for this issue.I came to know that the resolution for the error is to change the compiler option 'ARITH' to 'ARITH(EXTEND)'.
we are using Changeman in our shop and I don't know how to change the compiling options in Changeman.
Currently ARITH option is like below:
ARITH(COMPAT)
Can you please let me know how to change this to ARITH(EXTEND) in changeman.
Thanks in advance.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jan 09, 2012 12:27 pm
Reply with quote

The whole idea of a Repository
is to prevent what you are attempting:
not following site procedure.


that said,
i believe this is one of those compiler options
that can be COB'd in the source code.
if you don't know what i am talking about,
read the programming guide as it explains all options, etc....
programming manual does also, but the explanations are often brief.
after testing, then you can/should go to your site ops people and have them expand the changeman 'behind the scenes stuff'.

may turn-out that even a COB OPT does not override changeman.

as well as,
what application needs an amount edit mask
(that is your picture clause)
with 11 significant and 8 decimal????
who prices anything to 8 decimals?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 09, 2012 4:05 pm
Reply with quote

You seem to be thinking in the corect direction. ARITH(COMPAT) is a default and you've to use ARITH(EXTEND) to get the quoted picture clause working for you, as it uses 21-bytes.

ChangeMan is a tool driven by options and 'screens' and its set-up is subject to change from shop to shop. For a hint and which is not very accurate hint, check if any of the screen, while you compile your program you see "COMP" - at many shops I've seen Changeman using this as the place where you can pass the COMPiler options. Said that, suggest you talk to someone around in your project or changeman admin to know how to get it working for you.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 09, 2012 4:10 pm
Reply with quote

And yeah as Dick says, precision up to 8th place of decimal is little too much! These days 1$~=55 Rupees, if your application is getting implemented in India, what will you get in the bargain to that level of precision...icon_biggrin.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Jan 09, 2012 4:16 pm
Reply with quote

From another topic, it looks like TS is using he CUSIP price, so has no control over the size of that. Cusip is 10 before, eight after. Don't know, yet, why TS wants 11 before. Cusip has eight so that any sort of financial instrument can be covered by one file.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 09, 2012 4:21 pm
Reply with quote

Thanks for the quick info Bill. It surely pays when you log in to Forums pretty too often! icon_wink.gif
Back to top
View user's profile Send private message
pullaiah.cts

New User


Joined: 02 Sep 2010
Posts: 50
Location: Pune

PostPosted: Mon Jan 09, 2012 5:04 pm
Reply with quote

Sorry all for mentioning the wrong number of decimal positions in the picture clause.I have mentioned 19 digits though I needed only 18 digits,the confusion was because of signed bit.
Bill has calrified my doubt and now I am able to compile the program successfully.Anyways,I will check for the option in changeman to change the compiler options.

Thank you all for your great suggestions and help.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 09, 2012 5:09 pm
Reply with quote

Glad you got it working and Thanks for the feedback!

Yeah, Bill is one of the kind nuerons around here! icon_smile.gif
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 How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts changing defaults in db2 admin - Unlo... DB2 0
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Tilde Characters Changing to COLONs i... CLIST & REXX 22
Search our Forums:

Back to Top