My apologies, I made a mistake - the code I posted does, indeed, work. I went back in to run the code Astounding suggested, and saw it actually worked. And the results of Astounding's code did look as Tom expected: data _null_;
infile convert;
input;
list;
if _n_ = 10 then stop;
run; So here is the final solution to getting a Mainframe SAS dataset that resides on tape dataset out of mainframe and into SAS EG (FTP procedure not given intentionally): Run this code in Mainframe: //SASFILE DD DSN=MYID.SASDATA.TAPE, DISP=SHR
//OUTPUT1 DD DSN=MYID.TEST0516.OUTFILE3,
// DISP=(NEW,CATLG),
// UNIT=TAPE90,LABEL=RETPD=60
//* UNIT=SYSDA,SPACE=(CYL,(20,20),RLSE),MGMTCLAS=MCRET60
//SYSIN DD *
DATA TEMP;
SET SASFILE.SELCSEG;
RUN;
PROC CPORT DATA=TEMP
FILE=OUTPUT1;
RUN; Then run this code in SAS EG: %ftp_remote (ftp -v &prj_rmt_host << cmd,binary,
lcd /mydir/,
get 'MYID.TEST0516.OUTFILE3' cport.dat,
cmd);
LIBNAME mylib "/mydir";
filename convert '/mydir/cport.dat';
proc cimport data=mylib.converted infile=convert;
run; Note, BINARY IS REQUIRED in the FTP for this to work. ASCII will not work since this is coming from mainframe. Thank you so much, all of you, for your assistance. I hope this post helps someone else! test
... View more