View previous topic :: View next topic
|
Author |
Message |
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Hi,
In Cobol pgm we are moving the data from DB2 table (using Embedded SQL) to Edited Variable. Below is the variable definition
Source S9(15)V9(2) Comp-3 - Value 5858.00
Target -9(15).9(2)
But Target display as 58.58.
Please could you let me know where it went wrong? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
You didn't read the manual. This is a question an expert would never ask! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
A PIC S9(15)V9(2) COMP-3 will NEVER, unless you do something with REDEFINES, have a value of 5858.00 as you posted. It may have a value of 5858 or 585800 (leading zeros ignored) but it will not have 5858.00 since the decimal point is only implied in the PICTURE and will not be part of the value. So either you are editing what the computer tells you or you are lying to us.
Post a DISPLAY of the COMP-3 variable (using the Code tag) so we can see which it is.
And this is definitely not an expert's questions -- perhaps you should be posting in Beginners and Students Forum instead? |
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Hi,
Not to offend anyone - I thought this was a forum I could get an immediate reply as I always got in past. Anyways never mind. |
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Thanks a lot for the reply, Robert Sample.
please note - the above comment was not meant to you. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
sreekusr wrote: |
Not to offend anyone - I thought this was a forum I could get an immediate reply as I always got in past. |
Which is as about as offensive as you can get... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
what could You expect from somebody who claims as
Quote: |
Mainframe skills : Making friends,Music anf going out |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
A forum like this is not a place to expect immediate replies. Responding is voluntary on this, and most, fora -- meaning people respond when they have the time, and the knowledge of the topic; it is entirely normal for hours to days to pass before a response. |
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Thanks all for the response!! I think I am having a bad at office ..Sorry for the trouble caused.... I think I should have been more mature in asking questions, in fact I should gone through my basics before putting here, my bad. Apologies.
Regarding the Issue - it seems the coder has did some mistake of editing it before passing to target which screwed things up.. |
|
Back to top |
|
|
|