AS/400 db中的回车符是什么? [英] What is the carriage return character in an AS/400 db?

查看:88
本文介绍了AS/400 db中的回车符是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行AS/400的客户端.我必须将平面文件通过ftp传送给他们.他们告诉我他们的回返角色是RN.我不认识这一点,找不到任何东西,他们的技术人员是尼克·伯恩斯(Nick Burns),所以他拒绝给我任何污秽.是否有AS/400的标准返回码?

我应该提到我有一个c#.NET 2.0控制台应用程序.

解决方案

AS/400使用 EBCDIC 作为字符集,而不是DOS或Unix ASCII字符集.在Unix中,文本文件行通常以ASCII '\n'结尾,而在DOS行中通常以ASCII '\r\n'结尾.

在使用FTP时,如果使用EBCDIC传输类型,而不是binASCII; ftp应该为您翻译这些字符.

EBCDIC回车符为0x0D,就像ASCII一样.
EBCDIC换行为0x25,与ASCII 0x0A不同.

AS/400 EBCDIC新行具有0x15-NEL(NExt行").

有关行尾终止的更多信息,请参见这篇Wikipedia文章.

I have a client running an AS/400. I have to ftp a flat file over to them. They tell me their return charaters are RN. I don't recognize this, could not find anything on it, and their tech guy is Nick Burns so he refuses to give me any dirtection. Is there a standard return code for AS/400?

I should have mentioned that I have a c# .NET 2.0 console application.

解决方案

The AS/400 uses EBCDIC as a character set, rather than either the DOS or Unix ASCII character set. In Unix, text file lines typically end with ASCII '\n' and in DOS lines typically end with ASCII '\r\n'.

When you FTP, if you use the EBCDIC transfer type, rather than bin or ASCII; ftp is supposed to translate these characters for you.

EBCDIC carriage-return is 0x0D, just like ASCII.
EBCDIC line-feed is 0x25, unlike ASCII 0x0A.

AS/400 EBCDIC new-line has 0x15 - NEL (NExt Line").

For more information on end-of-line termination, see this Wikipedia article.

这篇关于AS/400 db中的回车符是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆