can not be used (by &temp) in the same data step.
It can be referenced after the data step have finished.
Don't know how to remove the warning. But the file 1234.txt was created correctly with maximum length of 10004.
There is not warning this way.
- data _null_;
- infile "F:\MySAS\Temp\output\long_string.txt" LRECL=32767;
- file "F:\MySAS\Temp\output\12345.txt" LRECL=32767;
- length x y temp $11000.;
- retain temp;
- if _n_ = 1 then do;
- input;
- temp = _infile_;
- end;
- set aaa;
- p = find(x, 'abc');
- if find(x, 'abc') then y= cats(substr(x, 1, p-1), temp, substr(x, p+3));
- else y = x;
- put @1 y;
- run;


雷达卡




京公网安备 11010802022788号







