Re: FTP a file with text and comp-3 data in it from AIX to MVS (o r the other way)
From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 10/27/04
- Previous message: Green, Simon: "Re: couple of silly questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Oct 2004 11:34:08 +0200 To: aix-l@Princeton.EDU
That sounds right to me.
By far the simplest thing is to change the MVS program producing the data to
use zoned numeric (essentially text) instead of comp-3.
It IS possible to write a program to do the translation - I've done that a
couple of times - but writing a generic program would be practically
impossible, so you end up with something which only works with this
particular data file and which would have to be modified if the file format
changed.
There are lots of report-writers which would do the job, simply by printing
one record per line. Most MVS shops have something suitable kicking around.
It wouldn't be a lot of hassle with COBOL, either. It would still have to
be amended every time the record format changed.
All of this is best done at the MVS end, since that's where the data is
generated and where the record format will be known.
-- Simon Green Altria ITSC Europe Ltd AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. > -----Original Message----- > From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On > Behalf Of Rick Saylor > Sent: 26 October 2004 19:04 > To: aix-l@Princeton.EDU > Subject: Re: FTP a file with text and comp-3 data in it from > AIX to MVS (or the other way) > > > Bill, > > I bet the file on MVS contains EBCDIC, not ASCII, and comp-3. > FTP knows > about the EBCDIC and will translate it to ASCII, but it fouls > up the comp-3 > data. In BIN mode, FTP just sends the data and doesn't > translate the EBCDIC > to ASCII. Because you are dealing with comp-3 data you need to use bin > mode. So, you can either translate the EBCDIC to ASCII on the > mainframe or > on the AIX box. But it sure looks like you will have to write > a program or > script to do it. Whatever does the translation will need to > know where the > comp-3 fields are so that it can ignore them. > > Rick Saylor > Austin Community College > > At 11:23 AM 10/26/2004, you wrote: > >Hi *, > > > >I have a user that is trying to get a file ftp'd from AIX to > MVS. The file > >contains both ASCII and comp-3 numeric fields in it. > > > >If we go ASC mode, the ASCII data is transferred OK, but the > comp-3 data is > >garbage. If we go BIN mode, the ASCII data is garbage, but > the comp-3 data > >is garbage. > > > >Anyone know a fix for this ? We've tried some dd commands > and even changed > >the transfer mode on the MVS side via 'quote' commands - but we're no > >closer. > > > >Thanks in advance, > > > >Bill. > > > > > >------------------------------------- > >There's no place like /home > > > > > >Bill Verzal > >Project Leader, Komatsu America > > > >(847) 970-3726 - direct > >(847) 970-4184 - fax > > > -------------------------------------------------------------- > -------------- > Rick Saylor Austin Community College > Voice: (512)223-1182 > Director of System Services 9101 Tuscany Way Fax: > (512)223-1211 > Information Technology Austin, Texas 78754 >
- Previous message: Green, Simon: "Re: couple of silly questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: FTP a file with text and comp-3 data in it from AIX to MVS (or the other way)
... I bet the file on MVS contains EBCDIC, not ASCII, and comp-3. ... In
BIN mode, FTP just sends the data and doesn't translate the EBCDIC ... (AIX-L) - FTP a file with text and comp-3 data in it from AIX to MVS (or the other way)
... I have a user that is trying to get a file ftp'd from AIX to MVS. ... If we
go ASC mode, the ASCII data is transferred OK, but the comp-3 data is ... (AIX-L) - Re: FTPing COMP-3 data from mainframe to UNIX
... is but there is a erroneuos read as far as the COMP-3 data is ... When i ftp
this file to UNIX in BINARY mode, ... ASCII, *all* the data in each record are converted
to ASCII, but that should ... The ftped data in UNIX is being read using a cobol program.
... (comp.lang.cobol) - FTP GET from MVS, using Win2000 server
... The FTP server is Win2000 server. ... The files are ascii text and need
to be converted into ebcdic. ... characters. ... I know that a PUT from Windows
works fine, but I do want to perform a get from MVS. ... (microsoft.public.inetserver.iis.ftp) - Re: FTP GET from MVS, using Win2000 server
... > I want to perform a get from MVS. ... > The FTP server is Win2000
server. ... > The files are ascii text and need to be converted into ebcdic. ...
That sounds more like your file is in Unicode text, ... (microsoft.public.inetserver.iis.ftp)