| Author |
Message |
kanishk100
New User
Joined: 03 Oct 2007 Posts: 1 Location: Delhi
|
|
|
|
| There is a field amt-balance in my program whose picture clause is z(9).99.. like amt-balance.I want this value to appear in the output file as R312.45 Now I am getting R 312.45 but i want R312.45>can anyone please suggest. |
|
| Back to top |
|
 |
References
|
Posted: Wed May 07, 2008 5:57 pm Post subject: Re: Numeric edited field |
 |
|
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 461 Location: Richmond, Virginia
|
|
|
|
| Clue me in as to where the "R" comes from. Seems like regardless of what may be preceding your field, it should have nine positions (blank or digit) before the ".". |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 903 Location: germany
|
|
|
|
| is this a COBOL question? or sort or ???? |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6033 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| Now I am getting R 312.45 but i want R312.45 |
How many spaces are between the R and the numbers?
If you post the code that creates this output and a more complete example of the data, we may be able to offer suggestions. |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 2965 Location: Tucson AZ
|
|
|
|
| kanishk100 wrote: |
| There is a field amt-balance in my program whose picture clause is z(9).99.. like amt-balance.I want this value to appear in the output file as
Now I am getting
but i want R312.45>can anyone please suggest. |
You are going to have 'squeeze' out the spaces.....A little inline perform with reference modification could cure your problem....
But then, that's COBOL.....to quote Dick:
dbzTHEdinosauer
wrote: |
| is this a COBOL question? or sort or ???? |
|
|
| Back to top |
|
 |
|
|