BookmarkSubscribeRSS Feed
harrylui
Obsidian | Level 7

HI all,

 

this is my data set and i want to using NULLIF fundtion on its MED column 

 

am i typing anything wrongs cause the log is keep warming me this : 

 

PROC SQL;
UPDATE ClaimCoverageData2
SET MED= NULLIF (MED,0);
RUN; 

 

ERROR: Function NULLIF could not be located.
ERROR: MED, a numeric column, can only be updated with a numeric expression.

 

 

AH20180120162017121000.00000001000.00128.100000.0000128.10
AH201801201720170539000.000000039000.004995.930000.00004995.93
AH201801201720170639600.000000039600.005072.800000.00005072.80
AH20180120172017103569.00000003569.00457.190000.0000457.19
AH201801201720171110000.00000300010300.001281.0200038.43501319.45
AH201801201720171244300.000000044300.005674.870000.00005674.87
AH201801201720180113300.000000013300.001703.750000.00001703.75
AH20180220152016104500.00000004500.00575.260000.0000575.26
AH201802201720170510500.000000010500.001342.280000.00001342.28
AH201802201720171019000.000000019000.002428.880000.00002428.88
AH20180220172017110.00000400004000.000.00000511.3410511.34
AH20180220172017128250.00000008250.001054.650000.00001054.65
AH201802201720180156610.00000300056910.007236.7800038.35707275.14
AH2018022017201802500.0000000500.0063.920000.000063.92
AH20180220182018013000.00000003000.00383.510000.0000383.51
AH20180320162017050.00000400004000.000.00000511.4300511.43
AH201803201720170540500.000000040500.005178.250000.00005178.25
AH2018032017201706-4000.0000000-4000.00-511.430000.0000-511.43
AH20180320172017108000.00000008000.001022.860000.00001022.86
AH20180320172017112000.00000002000.00255.720000.0000255.72
AH2018032017201801-50.0000000-50.00-6.400000.0000-6.40
AH20180320172018028640.0000030008940.001104.7200038.35801143.08
AH201803201720180312250.000000012250.001566.270000.00001566.27
AH2018032018201803500.0000000500.0063.920000.000063.92
AH2018042015201607-459.0000000-459.00-58.570000.0000-58.57
AH201804201520161042000.000000042000.005359.610000.00005359.61
AH20180420162017021250.00000001250.00159.510000.0000159.51
AH201804201720170546500.000000046500.005933.870000.00005933.87
AH20180420172018022400.00000002400.00306.260000.0000306.26
AH201804201720180319200.000000019200.002450.120000.00002450.12
AH201804201720180416600.000000016600.002118.330000.00002118.33
AH20180420182018032300.00000002300.00293.510000.0000293.51
AH2018042018201804100.0000000100.0012.760000.000012.76
AH2018052015201610500.0000000500.0063.710000.000063.71
AH20180520162016125000.00000005000.00637.010000.0000637.01
AH20180520162017020.00000000.000.000000.00000.00
AH20180520162017050.00000-40000-4000.000.00000-509.5980-509.60
AH201805201720170513500.000000013500.001719.910000.00001719.91
AH201805201720180378050.000000078050.009943.660000.00009943.66
AH201805201720180436479.15000100036579.154647.4800012.73804660.21
AH20180520172018053450.00000003450.00439.530000.0000439.53
AH20180520182018031500.00000001500.00191.110000.0000191.11
AH201805201820180419840.000000019840.002527.620000.00002527.62
AH20180520182018051450.00000001450.00184.730000.0000184.73
AH20180620162016104860.37000004860.37619.160000.0000619.16
AH201806201720170540500.000000040500.005159.300000.00005159.30
AH201806201720170610800.000000010800.001375.810000.00001375.81
AH20180620172018012200.00000002200.00280.250000.0000280.25
AH20180620172018036000.00000006000.00764.340000.0000764.34
AH201806201720180418218.000000018218.002320.800000.00002320.80
AH20180620172018058057.00000008057.001026.390000.00001026.39
AH20180620172018060.000002000200.000.0000025.475025.48
AH20180620182018042900.00000002900.00369.430000.0000369.43
AH201806201820180511000.000000011000.001401.300000.00001401.30
AH20180620182018063000.00000003000.00382.170000.0000382.17
1 REPLY 1

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 3856 views
  • 0 likes
  • 2 in conversation