Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 & VSAM
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    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

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
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

Global Moderator


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

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

Site Director


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

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: 3158
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us