Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 349
Default Converting Mainframe DISPLAY data to EXCEL formats

I am doing more FTPs from our mainframe into EXCEL. One problem I struggle
with is the mainframe numbers are formatted in DISPLAY where the last byte of
the number contains a sign character (+ 0 = {, +7 = G, -7 = P...). I can
write a program on the mainframe to convert the number and place a sign
before the data but that increases the size of the field by one byte and also
must now be saved as Alpha/Numeric as a minus sign is not a valid numeric
value.

Ideally a function in EXCEL can be created to accept the DISPLAY format and
convert it to a signed, numeric value in EXCEL.

Any hints?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Converting Mainframe DISPLAY data to EXCEL formats

Any hints,

Sub FixIt()
Dim rngCell As Excel.Range
Set rngCell = ActiveSheet.Range("B6")
rngCell.Value = CDbl(rngCell.Value)
Set rngCell = Nothing
End Sub

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Peter" wrote in message
I am doing more FTPs from our mainframe into EXCEL. One problem I struggle
with is the mainframe numbers are formatted in DISPLAY where the last byte of
the number contains a sign character (+ 0 = {, +7 = G, -7 = P...). I can
write a program on the mainframe to convert the number and place a sign
before the data but that increases the size of the field by one byte and also
must now be saved as Alpha/Numeric as a minus sign is not a valid numeric
value.

Ideally a function in EXCEL can be created to accept the DISPLAY format and
convert it to a signed, numeric value in EXCEL.

Any hints?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting works data files to excel with original formats B. Atkins New Users to Excel 0 November 28th 09 12:43 PM
converting excel 2003 to 2007 file formats XX23 Excel Discussion (Misc queries) 18 October 27th 09 05:44 PM
Converting time formats in Excel Darrin Excel Discussion (Misc queries) 4 June 11th 09 06:17 PM
Automate extraction of data from mainframe report into spreadsheet Dave Cox Excel Discussion (Misc queries) 0 December 17th 07 10:09 PM
how to display mainframe negative numbers on excel Mario Excel Worksheet Functions 8 June 27th 07 10:58 PM


All times are GMT +1. The time now is 01:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"