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 

FTP from a windows server XL file to mainframe dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Nabanita Das
Beginner


Joined: 09 Nov 2005
Posts: 33
Topics: 10

PostPosted: Sun Jan 14, 2007 3:01 am    Post subject: FTP from a windows server XL file to mainframe dataset Reply with quote

Hi,

Is it possible to FTP an excel file from server location to mainframe? After FTPing will that be a readable format?
Please let me know how to do that in batchmode how to accomplish the following:

1. My job needs to check for the existance of the file in the server . The excel file will be saved in the server with some date tag. So while checking the existance of the file it might be easier to check with the date

2. Job should then check whether the file is empty file or not?

3. If the file is non empty we need to FTP the file to a mainframe dataset.

Please advise me whether we need to convert the file to TXT file before we do the FTP? AS far as my knowledge goes if we FTP the XL file directly to mainframe formatting will be difficult.


Please advise me regarding this.

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Sun Jan 14, 2007 4:34 am    Post subject: Reply with quote

think about it. What mainframe application do you have that can accept a proprietary Microsoft excell file format? The formating is not difficult, the reading of the format will be due to the >asc(256) value contained in an excell (.xl) file. So yes, you need to convert it (within excell) to a .txt file.

you can FTP, via batch mode with a script on pc or a job on the mainframe, but would suggest the pc script, since it would be easier to 1) do all the checking that you want and 2) is can be triggered easier on the server than on the mainframe.

I would suggest doing a search in this forum (as well as others, including google) to find examples of scripts to accomplish the FTPing. In fact, you could construct the script to include the excell to .txt conversion (invoking an excell macro).
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Nabanita Das
Beginner


Joined: 09 Nov 2005
Posts: 33
Topics: 10

PostPosted: Wed Jan 24, 2007 8:35 am    Post subject: Reply with quote

Dick,

Thanks a lot for your suggestion. I am a mainframe programmer so I am limited to do the programming in Mainframe only.

As per your suggestions I am checking the script for converting the excel to TXT but I need to incorporate everything in mainframe only.

Thanks and Regards,
Nabanita Das
Back to top
View user's profile Send private message
blitz2
Beginner


Joined: 23 Jan 2007
Posts: 84
Topics: 14

PostPosted: Wed Jan 24, 2007 9:06 am    Post subject: Reply with quote

I'm just glad that M$ hasn't poked it's nose into mainframes ... try saving the excel sheet as a text delimited file and then FTP it.
________
ROLL A JOINT


Last edited by blitz2 on Thu Mar 10, 2011 5:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Feb 01, 2007 3:27 pm    Post subject: Reply with quote

Thats a news. you can actually save a xcel sheet as tab limited file ....txt file.
cool.I tied its working.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Feb 25, 2007 9:24 pm    Post subject: Reply with quote

Nabanita,
How about reading the Excel as a database using a JDBC driver ?

xlsql
xlsql

8)
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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