Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Numeric edited field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
kanishk100

New User


Joined: 03 Oct 2007
Posts: 1
Location: Delhi

PostPosted: Wed May 07, 2008 5:57 pm    Post subject: Numeric edited field
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
References
PostPosted: Wed May 07, 2008 5:57 pm    Post subject: Re: Numeric edited field Reply with quote

Phrzby Phil

Senior Member


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

PostPosted: Wed May 07, 2008 6:00 pm    Post subject:
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

Senior Member


Joined: 20 Oct 2006
Posts: 903
Location: germany

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

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

Global Moderator


Joined: 23 Nov 2006
Posts: 6033
Location: 221 B Baker St

PostPosted: Thu May 08, 2008 6:31 am    Post subject:
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: 2965
Location: Tucson AZ

PostPosted: Thu May 08, 2008 7:05 am    Post subject: Re: Numeric edited field
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1