编译阶段compilation phase / 描述部分 descriptor portion

检查syntax errors(包括无效的变量名和options)

此时还没有执行data步骤,所以no observation。

 

执行阶段,一个一个record开始。

 

 

 

 

 

 当数据较大时,使用

data _null_;   可以减少内存的占用

infile filename obs=10; 可以减少内存的占用

 

 data perm.update;
        infile invent;
        input Item $ 1-13 IDnum $ 15-19
              InStock 21-22 BackOrd 24-25;
        Total=instock+backord;
     run;

     data work.test;
        infile loan;
        input Code $ 1 Amount 3-10;
        if code='1' then type='variable';
        else if code='2' then type='fixed';  /*出现syntax error,data STEP compile,但是不executes, */
        else put 'MY NOTE: invalid value: '
             code=;
     run;

 

posted on 2019-10-08 16:02  be·freedom  阅读(339)  评论(0编辑  收藏  举报