Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Changing compiler options in changeman

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Changing compiler options in changeman
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    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 09, 2012 4:05 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 09, 2012 4:10 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Mon Jan 09, 2012 4:16 pm    Post subject: Reply to: Changing compiler options in changeman
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

Senior Member


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

PostPosted: Mon Jan 09, 2012 4:21 pm    Post subject:
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    Post subject: Reply to: Changing compiler options in changeman
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

Senior Member


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

PostPosted: Mon Jan 09, 2012 5:09 pm    Post subject:
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    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 Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm
No new posts Problem Compiling cobol code with Cob... amitc23 COBOL Programming 2 Wed Aug 24, 2016 1:50 pm
No new posts DB2 Unload format options Susanta DB2 2 Fri Aug 12, 2016 5:42 pm
No new posts COBOL compiler upgrade vicky10001 COBOL Programming 4 Mon Jul 25, 2016 1:44 pm
No new posts changing z/os unicode conversion service meykh2014 All Other Mainframe Topics 0 Tue Jul 12, 2016 10:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us