View previous topic :: View next topic
|
Author |
Message |
kanishk100
New User
Joined: 03 Oct 2007 Posts: 2 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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 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
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
is this a COBOL question? or sort or ???? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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: 3156 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 |
|
|
|