Parthasarathy , I am inferring that you need to FTP to or from a z/OS system. z/VM or VSE are much the same. My experience with FTP to and from z/OS is that EBCDIC to ASCII is automatic. You must set BINARY on to prevent the conversion. That may be a local option, however. I've not used it, but presumably SFTP works the same.
The main issue you might have is that ordinary z/OS files have logical record lengths, LRECL, and not line feeds as the record terminators. Linux source records longer than the z/OS destination LRECL will be truncated. Shorter records will be either blank or null filled. I don't know if the line feed character will be translated. You could define a z/OS variable blocked record, but make sure the Linux source records are no longer than the block size, BLKSIZE. Going from z/OS to Linux or Windows is generally not such a problem. Also, watch out for numeric field conversions. Some of the many z/OS numeric formats may not convert the way you wish. It is generally better to create the source files with numbers in display format, without commas, and programmatically convert them. I hope this helps, Michael Stephens -----Original Message----- From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Scott Rohling Sent: Tuesday, June 14, 2011 8:49 AM To: [email protected] Subject: Re: ASCII to EBCDIC conversion I'm not sure this will make a difference -- I misread the table .. and the LF characters are the same in ebcdic or ibm.. You may need to use 'tr' or some other translate function after the dd. Scott Rohling On Tue, Jun 14, 2011 at 7:43 AM, Scott Rohling <[email protected]>wrote: > Did you use 'ebcdic' or 'ibm' for conversion type on the dd command? > Whichever you used, you might want to try and use the other and see if > results change. > > Scott Rohling > > > On Mon, Jun 13, 2011 at 11:15 PM, Sundaram, Parthasarthy < > [email protected]> wrote: > >> Hi Team, >> >> Very good morning...Iam parthasarathy working in Mphasis.Kindly >> requesting you to help me on my below queries. >> >> i) In SunOS how to convert the ASCII mode to EBCDIC mode in SFTP >> mode. >> ii) Iam able to convert the ASCII file to EBCDIC thru DD command >> outside SFTP mode.Is this the right command. >> iii) I have a file with 100 records but after converting from ASCII >> to EBCDIC all the 100 records is aligned in the single line.Please >> let me know how to resolve this and iam sure that carriage return is >> missing. Please let me know how to apply the carriage return value >> during the EBCDIC conversion. >> >> It could be highly appreciated if you help me on this. >> >> Parthasarathy Sundaram >> Mphasis an HP company >> Level 4, 1-B DLF Info City, 1/124 Shivaji Garden , Manapakkam, >> Chennai-89 >> Mob: 91 9176663227 >> [email protected] >> [email protected] >> >> >> >> >> --------------------------------------------------------------------- >> - For LINUX-390 subscribe / signoff / archive access instructions, >> send email to [email protected] with the message: INFO LINUX-390 >> or visit >> http://www.marist.edu/htbin/wlvindex?LINUX-390 >> --------------------------------------------------------------------- >> - For more information on Linux on System z, visit >> http://wiki.linuxvm.org/ >> > > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/ ***This message has been scanned for all known viruses and objectionable content and is believed to be free of both.*** [ESC-20]<http://www.esc20.net> [ESC-20 TopWork Place] <http://mysanantonio.topworkplaces.com/company_survey/education-service-ce_san_antonio/sanantonio_10> CONFIDENTIALITY NOTICE The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. This message may be subject to disclosure under the Open Records Act. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
