what's wrong in this code??
I want to print label in bold, variables as normal . . .
For _C1_ I already tried _COL_ or _ROW_
COMPUTE before _page_ ;
call define(_C1_,'style','style={font_weight=bold }');
%if &VARI4. EQ 02 %THEN line @1 'Nom:' ;
%ELSE line @1 'Naam:' ;;
call define(_C1_,'style','style={font_weight=normal }');
line @1 naam $50. ;
call define(_C1_,'style','style={font_weight=bold }');
%if &VARI4. EQ 02 %THEN line @1 'Agence:' ;
%ELSE line @1 'Agentschap:' ;;
call define(_C1_,'style','style={font_weight=normal }');
line @1 aorg_cd $5. ;
Without data, the complete code and the value(s) of the macro variables it is pretty hard to tell what may or may not be going on.
Do you actually have multiple call defines for the same column or is that examples of what you have tried?
You can conditional execute LINE in that way.
Only way to that is $varying200. like:
if x=1 then do;want='xxxx'; len=0; end;
else do;want='yyyyy'; len=200;end;
line want $varying200. len ;
.......
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.