Re: FTP a file with text and comp-3 data in it from AIX to MVS (or the other way)
From: Rick Saylor (rsaylor_at_AUSTINCC.EDU)
Date: 10/26/04
- Previous message: Adams Kevin J: "Re: Lsuser Not Reporting Correctly"
- Maybe in reply to: Bill Verzal: "FTP a file with text and comp-3 data in it from AIX to MVS (or the other way)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Oct 2004 13:03:47 -0500 To: aix-l@Princeton.EDU
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: Adams Kevin J: "Re: Lsuser Not Reporting Correctly"
- Maybe in reply to: Bill Verzal: "FTP a file with text and comp-3 data in it from AIX to MVS (or the other way)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- 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) - Re: FTP a file with text and comp-3 data in it from AIX to MVS (o r the other way)
... use zoned numeric instead of comp-3. ... Most MVS shops have something
suitable kicking around. ... > I bet the file on MVS contains EBCDIC, not ASCII, and
comp-3. ... > about the EBCDIC and will translate it to ASCII, ... (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: Comp-3
... ASCII has nothing to do with it. ... A hex F, A, C, or E in the last
nibble indicates a positive number, D and B ... PIC S9V99 COMP-3 ... (comp.lang.cobol) - Re: ASCII to Arabic character conversion
... are you wanting to translate it to english? ... Additionally, I don't think
its possible to convert it to ASCII, and ... > Audit your website security with
Acunetix Web Vulnerability Scanner: ... Cross site scripting and other web attacks before
hackers do! ... (Pen-Test)