I didn't quite understand (evidently) what he was trying to do. I assumed when he said "to a folder AS400" that he meant going from a PC to the AS400. Duh ! anyway ASCII 26 is the PC end-of-file character. It should have been ASCII 25, but ever since the PDP-11 (circa 1970) people have used 26. Look at a US-style keyboard and you can see that Z is just next to the CTRL key so typing CTRL-Z (26) is easier than CTRL-Y (25). CTRL-Z was used to end input from the console and the convention stuck. The ASCII 26 character was meant as a SUBstitute character to replace invalid (e.g. with parity errors) characters from the paper tape reader. The ASCII 25 character was the real end-of-medium character. (sigh) ----- Original Message ----- From: Sean Porterfield <email@example.com> To: <MIDRANGE-L@midrange.com> Sent: Friday, January 05, 2001 11:55 AM Subject: Re: Last symbol in doc after cpytopcd > Leif Svalgaard wrote: > > > > From: <KOKOREV@conversbank.ru> > > > Are there some way to copy physical file (PF-DTA) to a folder AS400 without > > last > > > symbol? This symbol (ASCII 26) together with last line feed are write > > automatical . > > > I am using command CPYTOPCD. > > > > Are you sure that the ASCII 26 is not already present in the PC file? > > (I assume that it is a PC file). If it is, you should use a PC program > > to remove it. > > From CPYTOPCD help: > > Format of PC data (TRNFMT) - Help > > : > *TEXT > : > : The records in the PC document will be written in standard DOS > ASCII : > : variable length format. The ASCII carriage return and line > feed : > : characters are added to the end of each record, and the ASCII > end of : > : file character is added to the end of the PC > document. : > > I don't know why you would get an ASCII 26, but the help text does say > you will get CRLF added to each line. > > HTH > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: firstname.lastname@example.org > +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.