View previous topic :: View next topic
|
Author |
Message |
Revathy.nair0485
New User
Joined: 02 Nov 2017 Posts: 3 Location: India
|
|
|
|
I am trying to move a PD value to numeric edited field . Below the details
Declaration
Input field- EAP-TOTAL-COMMITTED PICTURE S9(11)V99 COMP-3.
Output field--EAPOUT-TOTAL-COMMITTED PIC S9(11)V99
Code in Procedure division
IF EAP-TOTAL-COMMITTED IS NUMERIC
MOVE EAP-TOTAL-COMMITTED TO EAPOUT-TOTAL-COMMITTED
Few Values in the PD field has the last sign nibble as ‘A’(in hex representation) .These values are not considered as numeric in my program.
I tried NUMPROC(PFD and NO PFD options). But no luck
Thanks
Can any one help me on this. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
Why do you attach a 350kb PDF to your question? |
|
Back to top |
|
|
Revathy.nair0485
New User
Joined: 02 Nov 2017 Posts: 3 Location: India
|
|
|
|
PDF doc has the I/p file screen shot |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
A simple cut'n'paste would do much better. Most people do not/cannot view attachments for security purposes. I don't a) for security reasons and b) because why should i do the extra work to look at it. It is not me wanting help but you - so help the helpers.
When posting code/data or anything else requiring a fixed pitch font then use the code tags. If you do not know what these are then search the forum. |
|
Back to top |
|
|
Revathy.nair0485
New User
Joined: 02 Nov 2017 Posts: 3 Location: India
|
|
|
|
Code: |
EAP-TOTAL-COMMITTED
#18
PD 101:7
<---+----1---->
**** Top of data *
26830042620.76
2804606
630227C
410176211.44
0407214
011614A
***************
2280408
1620316
===> |
|
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
Your "output" field has an assumed decimal point - the "V".
Don't you want to see a period (.) here? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
I am trying to move a PD value to numeric edited field |
I do not speak too much cobolese, but the output PIC does not look like a PIC for an edited field
might as well lock the topic |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Depending upon which version of Enterprise COBOL you are using, compile options NUMCLS(ALT) and NUMPROC(NOPFD) may do what you want but they must be used together.
Also, you are moving to a numeric variable, NOT a numeric-edited variable. There are some very significant differences in the two, and you should learn those differences. |
|
Back to top |
|
|
|