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
 

 

Convert field to displayable format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Convert field to displayable format
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed May 12, 2010 10:20 pm    Post subject: Reply to: Convert field to displayable format
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    Post subject:
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

Active Member


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

PostPosted: Thu May 13, 2010 12:30 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
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
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


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