开发者

How to read text file from mainframe through .net application?

开发者 https://www.devze.com 2023-01-20 00:05 出处:网络
Some plain text file is stored in mainframe server开发者_开发知识库, i have to read the file and populate the data to SQL database.

Some plain text file is stored in mainframe server开发者_开发知识库, i have to read the file and populate the data to SQL database. Any ideas please suggest.


Assuming it's a member in a PDS FTP the member down to the PC, parse it, and insert the data into the SQL Server database. With out more information that's the best idea I can give you.


I'll 2nd Jared's suggestion but add that if you FTP the data make sure you specify the FTP options ASCII and CRLF (for plain text). This will translate the EBCDIC characterset to ASCII and append the CRLF record delimiter to each record in the text file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号