At the site I'm working at SAS runs on AIX while some of the files I need reside on window file servers. I have Googled several options but none have provided a solution/hope except this one:
enter code here
filename indir
ftp 'Windows\Output\FO\20140813'
host=' xxxxxxx.xxxxxxxxxxxx.xxxxxxxxxxxx.xxx ' DIR
user='xxxxxxxxx' pass=xxxxxxx;
filename outdir
ftp '/AIX/Lev1/groups/xxx_xxx_xxxxxx/DPL' host=' xxxxxxx.xxxxxxx.xx DIR
user='xxxxxxxxx' pass=xxxxxxx;
data _null_;
infile indir(DPL20140813.csv) truncover;
input;
file outdir(DPL20140813.csv);
put _infile_;
run;
The problem that I run into is that only part of the first line is read and written containing the variable names and nothing else (of about 65,000 records).
What am I missing?
The log reads: NOTE: A total of 1 record was read from the infile library INDIR. The minimum record length was 256. The maximum record length was 256. NOTE: 1 record was read from the infile INDIR(DPL20140813.csv). The minimum record length was 256. 2 The SAS System 08:50 Monday, September 8, 2014
The maximum record length was 256.
NOTE: A total of 1 record was written to the file library OUTDIR. The minimum record length was 256. The maximum record length was 256. NOTE: 1 record was written to the file OUTDIR(DPL20140813.csv). The minimum record length was 256. The maximum record length was 256. NOTE: DATA statement used (Total process time): real time 0.38 seconds cpu time 0.18 seconds