各位大大,
请教一下下面代码里 co-l 和ci -u -t-分别是什么意思啊?
x"co -l &_chksasfile";
x"ci -u -t-'SocsPro Files' -m""&_chkmsg"" &_chksasfile";
UNIX 环境下源代码,在PC SAS上运行提示
'ci' is not recognized as internal or external command, operable program or batch file.
'co' is not recognized as internal or external command, operable program or batch file.
*******************************************************************************;
* Specification 3 *;
* Socspro_checkout macro to check-in and check-out sas datasets. *;
* Check-in and check-out of SAS datasets created in data directory using *;
* XPT and ASCII files as inputs. *;
* Check-in and check-out of final mapped SAS datasets created in data_vai *;
* directory using source SAS datasets from directory. *;
* _lib - Library path. *;
* _dsn - SAS dataset file name to be check-in or check out. *;
* _type - File Revision Control Process. *;
* Valid values : IN OUT *;
* IN - To check in SAS dataset file. *;
* OUT - To check out SAS dataset file. *;
* _chkmsg - Message when check-in files. *;
*******************************************************************************;
Options &_Inoptions;
%macro socspro_checkout(_lib = , _dsn = , _type = , _chkmsg = );
%let _chksasfile = %str(&_lib./%sysfunc(lowcase(&_dsn.)).sas7bdat);
%if %str(&_type)=OUT %then %do;
%if %sysfunc(fileexist(&_chksasfile))= 1 %then %do;
x"co -l &_chksasfile";
%end;
%end;
%else %if %str(&_type)=IN %then %do;
%if %sysfunc(fileexist(&_chksasfile))= 1 %then %do;
x"ci -u -t-'SocsPro Files' -m""&_chkmsg"" &_chksasfile";
%end;
%end;
%mend socspro_checkout;