Hi it seems to be falling over immediately. 32 proc sql noprint;
33 select int(nobs/2) into :nobs_half
34 from dictionary.tables
35 where libname = 'work' and memname = 'cell002';
NOTE: No rows were selected.
36 quit;
NOTE: PROCEDURE SQL used (Total process time):
real time 0.00 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 5160.37k
OS Memory 38316.00k
Timestamp 12/07/2018 08:51:55 AM
Step Count 82 Switch Count 34
Page Faults 0
Page Reclaims 13
Page Swaps 0
Voluntary Context Switches 84
Involuntary Context Switches 1
Block Input Operations 0
Block Output Operations 0
37
38 data cell002_003;
39 set work.cell002;
40 if _n_ <= &nobs_half
WARNING: Apparent symbolic reference NOBS_HALF not resolved.
40 if _n_ <= &nobs_half
_
22
ERROR 22-322: Syntax error, expecting one of the following: a name,
a quoted string, a numeric constant, a datetime constant,
2 The SAS System 07:45 Thursday, July 12, 2018
a missing value, bitstring, INPUT, PUT.
41 then cellid = '002';
______ _
180 180
ERROR 180-322: Statement is not valid or it is used out of proper order.
42 else cellid = '003';
43 run;
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.CELL002_003 may be incomplete. When this step was
stopped there were 0 observations and 74 variables.
WARNING: Data set WORK.CELL002_003 was not replaced because this step was
stopped.
... View more