楼主: slimdell
1257 2

请教一下UNIX 环境下一段代码的意思 [推广有奖]

  • 0关注
  • 19粉丝

已卖:2049份资源

副教授

76%

还不是VIP/贵宾

-

TA的文库  其他...

移动医疗

大数据与可视化

医药行业分析

威望
0
论坛币
19053 个
通用积分
605.6981
学术水平
47 点
热心指数
58 点
信用等级
42 点
经验
7016 点
帖子
580
精华
0
在线时间
1266 小时
注册时间
2012-8-10
最后登录
2021-4-25

楼主
slimdell 发表于 2013-3-5 11:11:37 |AI写论文
10论坛币
各位大大,
请教一下下面代码里 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;

最佳答案

ahl021 查看完整内容

x"co -l &_chksasfile"; x"ci -u -t-'SocsPro Files' -m""&_chkmsg"" &_chksasfile"; Unix ClearCase version control command checkin ci & checkout co. Details see: https://publib.boulder.ibm.com/infocenter/cchelp/v7r1m0/index.jsp?topic=/com.ibm.rational.clearcase.cc_ref.doc/topics/refintro.htm
关键词:Unix recognized directory datasets checkout recognized command 源代码 file
知乎专栏/微信公号同名:煮酒烹茶读书

沙发
ahl021 发表于 2013-3-5 11:11:38
      x"co -l &_chksasfile";
      x"ci -u -t-'SocsPro Files' -m""&_chkmsg"" &_chksasfile";

Unix ClearCase version control command checkin ci & checkout co. Details see:
https://publib.boulder.ibm.com/i ... topics/refintro.htm

藤椅
slimdell 发表于 2013-3-8 15:56:24
ahl021 发表于 2013-3-5 11:11
x"co -l &_chksasfile";
      x"ci -u -t-'SocsPro Files' -m""&_chkmsg"" &_chksasfile";
非常感谢
知乎专栏/微信公号同名:煮酒烹茶读书

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-6 04:26