FGET関数のトークン区切り文字を設定します。
| カテゴリ: | 外部ファイル |
John J. Doe,Male,25,Weight Lifter Pat O'Neal,Female,22,Gymnast
%let fid=%sysfunc(fopen(myfile));
%let rc=%sysfunc(fsep(&fid,%str(,)));
%do %while(%sysfunc(fread(&fid))=0);
%let rc=%sysfunc(fget(&fid, name));
%let rc=%sysfunc(fget(&fid, gender));
%let rc=%sysfunc(fget(&fid, age));
%let rc=%sysfunc(fget(&fid, work));
%put name=%bquote(&name) gender=&gender
age=&age work=&work;
%end;
%let rc=%sysfunc(fclose(&fid));