DATA Step, Macro, Functions and more

Other = _ERROR_

Reply
Contributor
Posts: 23

Other = _ERROR_

Simple question:

Is there a way to add other = _ERROR_ to a format control dataset?

TIA,

Derek
Respected Advisor
Posts: 3,777

Re: Other = _ERROR_

[pre]
data cntl;
retain fmtname 'b' type 'I' hlo ' ';
start = 'A';
label = '1 ';
output;
start = ' ';
label = '_ERROR_';
hlo = 'O';
output;
run;
proc format cntlin=cntl;
run;
data _null_;
y = input('X',b.);
put _all_;
run;
[pre] Message was edited by: data _null_;
Ask a Question
Discussion stats
  • 1 reply
  • 112 views
  • 0 likes
  • 2 in conversation