Re: FTPing COMP-3 data from mainframe to UNIX
- From: "Michael Mattias" <mmattias@xxxxxxxxxxxxxx>
- Date: Thu, 24 May 2007 07:11:14 -0500
I am actually trying to ftp a PS file from mainframe to UNIX.
The contents of the PS file are data declared as S9(8) COMP-3 and
9(2).
When i ftp this file to UNIX in ASCII mode , i am able to read
the data declared as 9(2) as it
is but there is a erroneuos read as far as the COMP-3 data is
concerned.
When i ftp this file to UNIX in BINARY mode , i am able to read
the data declared as COMP-
3 as it is but there is a erroneuos read as far as the 9(2) data
is concerned.
The BINARY mode transfer is the correct mode to use, and it should be
working. I do this all the time.
I will guess you are running into EBCDIC/ASCII issues. When you transfer
ASCII, *all* the data in each record are converted to ASCII, but that should
not be done with COMP-3 data, explaining your problem with those fields.
When you transfer BINARY, *none* of the data are converted to ASCII, which
means the COMP-3 data are still readable but the DISPLAY data are not (still
use EBCDIC) ; meaning you can read COMP-3 but not the display.
What you need to due is EITHER
- Make all the data in the record DISPLAY format and transfer ASCII
OR
- Convert all display data to ASCII on the mainframe (leaving the COMP-3
fields alone) and transfer BINARY.
And, you should probably confirm with your system administrators that the
system is configured to do as I suspect: convert EBCDIC to ASCII when mode
is ASCII and 'do nothing' when the mode is BINARY. I'm pretty sure this is
the case, but it never hurts to check.
--
Michael C. Mattias
Tal Systems Inc.
Racine WI
mmattias@xxxxxxxxxxxxxx
262-681-3895
Outside WI Toll Free 1-877-264-2847
--
Michael C. Mattias
Tal Systems Inc.
Racine WI
mmattias@xxxxxxxxxxxxxx
"kimi" <mraghu83@xxxxxxxxx> wrote in message
news:1179986957.656932.312050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The ftped data in UNIX is being read using a cobol program.
The cobol program is being compiled using the command "cob -iaPV
filename.cbl".
The cobol program is being run using the command "cobrun
filename.int".
The above commands are provided by microfocus.ie. the cobol
program is being executed
on a UNIX environment using MICRO FOCUS SERVER EXPRESS 4.0 SP2.
Pls let me know how i can read both the types of data
successfully.
.
- Follow-Ups:
- Re: FTPing COMP-3 data from mainframe to UNIX
- From: Alistair
- Re: FTPing COMP-3 data from mainframe to UNIX
- References:
- FTPing COMP-3 data from mainframe to UNIX
- From: kimi
- FTPing COMP-3 data from mainframe to UNIX
- Prev by Date: Re: GO TO HELL.
- Next by Date: Re: Web Services and COBOL (Fairly long post, but I don't have time to write a proper article on it)
- Previous by thread: FTPing COMP-3 data from mainframe to UNIX
- Next by thread: Re: FTPing COMP-3 data from mainframe to UNIX
- Index(es):
Relevant Pages
|