> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin > Sent: Thursday, May 12, 2005 3:19 PM > To: [email protected] > Subject: Re: FTPing a ADRDSSU file > > <snip> > RFC 959, eh? YLSED! > > Therein, I see nothing about 0xFF01. Perhaps an IBM idiosyncrasy. > But: > > File-structure is the default to be assumed if the STRUcture > command has not been used but both file and record structures > must be accepted for "text" files (i.e., files with > TYPE ASCII > or EBCDIC) by all FTP implementations. >
<quote> In a record structured file EOR and EOF will each be indicated by a two-byte control code. The first byte of the control code will be all ones, the escape character. The second byte will have the low order bit on and zeros elsewhere for EOR and the second low order bit on for EOF; that is, the byte will have value 1 for EOR and value 2 for EOF. EOR and EOF may be indicated together on the last byte transmitted by turning both low order bits on (i.e., the value 3). If a byte of all ones was intended to be sent as data, it should be repeated in the second byte of the control code. </quote> Therefore 0xFF01 (first byte is "all ones") and second byte has the low order bin on and zeros elsewhere is an EOR. Likewise for EOF and EOR+EOF codes. <snip> > Thanks, > gil > -- -- John McKown Senior Systems Programmer UICI Insurance Center Information Technology This message (including any attachments) contains confidential information intended for a specific individual and purpose, and its' content is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this transmission, or taking any action based on it, is strictly prohibited. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

