MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mainframe to Excel

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
YVRAMJ
Beginner


Joined: 18 Jan 2003
Posts: 12
Topics: 7

PostPosted: Thu Aug 19, 2004 2:14 pm    Post subject: Mainframe to Excel Reply with quote

Hi,

Can we ftp a dataset from host to a network drive as excel ?
And also I would like to know how to get a excel file to host.
Users want the file to be in excel format only.
Please let me know if any body knows how to do it.

Thanks,
Ram. Rolling Eyes
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Aug 19, 2004 2:46 pm    Post subject: Reply with quote

Ram,

Create a tab delimited dataset and ftp the dataset as a text file. The users can open the file in excel.

The same goes for getting excel file to the host. save the excel file as .csv or tab delimited text file and ftp the text file to the mainframe

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Aug 19, 2004 3:15 pm    Post subject: Reply with quote

Before responding to this, I was searching for some information about direct conversions of Excel .xls files to other formats.

There seems to be utilities that are available to deal with the conversion of Excel spreadsheets to other formats, usually XML or CSV. SAS was one mentioned that has this capability, as did others. They all seem to be able to run as a service, rather than requiring a manual process from the users. It would probably end up that whatever utility you would use would most likely be required to run on the Windows server.

I would imagine that a full-blown data integration product such as Mercator, Gentran or Cloverleaf could handle not only the data conversion functions but also the exchange of data between platforms.
Back to top
View user's profile Send private message
YSMVS
Beginner


Joined: 19 May 2004
Posts: 51
Topics: 25
Location: My House

PostPosted: Thu Sep 16, 2004 12:28 pm    Post subject: Reply with quote

Hi Ram,

I usually do this way. The FTP from host directly to Excela nd viceversa works . But the problem is the data gets copied in the first column. So you can download it and then use DATA->TEXT to column option in Excel to split the data. Probably this may not be the best, but it works.

YSMVS
Back to top
View user's profile Send private message
karthikbabudh
Beginner


Joined: 29 Apr 2005
Posts: 10
Topics: 6

PostPosted: Mon Jul 31, 2006 2:00 am    Post subject: Tab delimited dataset Reply with quote

kolusu wrote:
Ram,

Create a tab delimited dataset and ftp the dataset as a text file. The users can open the file in excel.



Can anyone tell me to create a tab delimited dataset?
_________________
Regards,
Karthik Babu.
Back to top
View user's profile Send private message
jetson
Beginner


Joined: 07 Oct 2005
Posts: 30
Topics: 2
Location: Texas

PostPosted: Mon Jul 31, 2006 7:09 am    Post subject: Reply with quote

A comma separated file is even easier. Just put a comma in between each field in your text file, FTP it to the win platform with a file extension of .csv, and it will open in Excel as though it were already a spreadsheet.

It is also a good idea to add quotations to any text field that may contain an actual comma. If you think one of your fields has embedded commas already, then program some double quotes around that field on each output record.

Any language that allows you to place an actual comma in between each fields values will work. By default, your program should place 2 commas in a row of data has a null value in a particular field. Excel will see this as a null value and retain the proper data alignment.

Any character can be placed between fields because the Excel import dialog allows you to choose a character, but the default comm separaed values does not require an import by the end user.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jul 31, 2006 7:14 am    Post subject: Reply with quote

karthikbabudh,

Check this link for an example of creating tab delimited file.

http://www.mvsforums.com/helpboards/viewtopic.php?p=1793#1793

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group