Date: Tue, 6 Apr 2010 12:01:57 -0700
Reply-To: "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Subject: Re: moving file from mainframe to PC using CPORT CIMPORT
In-Reply-To: <201004061839.o36ITX5u024632@malibu.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"
How did you transfer the data from the mainframe to the PC - text or binary? Whichever you tried, try the other.
Can you browse the dataset on the mainframe? Can you open the file with Notepad on the PC? Do the contents look the same?
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Annie Lee
Sent: Tuesday, April 06, 2010 11:40 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: moving file from mainframe to PC using CPORT CIMPORT
I am trying to move a data file from an IBM mainframe(TSO/ISPF) to a PC
using PROC CPORT (mainframe) & PROC CIMPORT (PC).
I used the following codes and FTPed the data file and saved it on my PC
as a .txt file.
SAS version on PC: SAS 9.2
I got the following error message and couldn't read the file.
Could someone please offer opinion/advice?
** codes used in the mainframe SAS:
PROC CPORT DATA=data1 FILE=OUT MEMTYPE=DATA;
run;
** codes used in the PC SAS:
FILENAME in 'C:\mydata.txt';
PROC CIMPORT data=mydata1 INFILE=mydata memtype=data;
RUN;
** Error message:
ERROR: Unrecognized or unsupported transport file format.