IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Numeric edited field


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kanishk100

New User


Joined: 03 Oct 2007
Posts: 2
Location: Delhi

PostPosted: Wed May 07, 2008 5:57 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed May 07, 2008 6:00 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 07, 2008 6:13 pm
Reply with quote

is this a COBOL question? or sort or ????
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 08, 2008 6:31 am
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu May 08, 2008 7:05 am
Reply with quote

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
Code:
    R312.45
Now I am getting
Code:
R            312.45
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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
Search our Forums:

Back to Top