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

Convert field to displayable format


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Wed May 12, 2010 9:07 pm
Reply with quote

Hi,

I am ftping a flat file to excel sheet. The issue here is that one of the fields for the flat file has picture clause of S9(15)V99. This field contian amounts.

The value is excel sheet is appearing like 0000000002217691{ for a value of 221769.10

This means i need to convert S9(15)V99 to a displayable format. Can anyone tell me what should be the desired picture clause that i should convert this field to.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed May 12, 2010 10:20 pm
Reply with quote

Drop the "S" and all will be forgiven.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Wed May 12, 2010 10:35 pm
Reply with quote

Quote:

This means i need to convert S9(15)V99 to a displayable format.


If i understood correctly it means edited format...

9(15).99
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Thu May 13, 2010 12:30 am
Reply with quote

Source field is signed, so need one of these (or with - instead of + for no sign if pos; or with some Z's for zero suppression):

+9(15).99 or 9(15).99+
Back to top
View user's profile Send private message
baljinders

New User


Joined: 21 Aug 2006
Posts: 72

PostPosted: Thu May 13, 2010 12:45 am
Reply with quote

Thanks guys,

I used -ZZZZZZZZZZZZ9.99 and got the desired result.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
Search our Forums:

Back to Top