Hi:
Generally the CALL DEFINE statement uses the same model for syntax whether you're changing the format, the style or any of the other attributes you can change:
[pre]
call define(where,what,how);
[/pre]
for example if you want to change a column then the WHERE argument should be set to _COL_; if you want to change a named column then the WHERE argument should be set to the column name in quotes, such as 'VAR1'. Then for the WHAT argument, you would specify what you want to change: FORMAT, STYLE, etc and for the HOW argument, you specify -exactly- the syntax you need based on the WHAT argument. (Note that the WHAT and HOW arguments are always quoted, unless they are variable references; but the WHERE argument doesn't need to be quoted unless it's a specific column reference.
An example:
[pre]
COMPUTE xxxxx;
call define('salary','FORMAT','dollar12.2');
call define(_COL_,'style','style={background=blue}');
call define(_ROW_,'style','style={htmlstyle="border-bottom:1px solid black; mso-number-format:#,##0.00;"}');
ENDCOMP:
(remember that CALL DEFINE has to go in a COMPUTE block.);
[/pre]
There is this note about using HTMLSTYLE attribute in SAS 9.2:
http://support.sas.com/kb/37/079.html
It was not clear what you meant by two elements -- did you mean two report items, two report rows???? For example, if you only wanted to impact 2 report items with style overrides, you could also do this in REPORT syntax:
[pre]
proc report data=sashelp.class;
column name age height weight;
define name / order 'Name' style(column)={background=pink};
define age / display 'Age' style(header)={font_style=italic foreground=red};
*** more code ***;
[/pre]
Then you said you wanted to "call define row-style-element". "row-style-element" sounds like possibly changing something in an HTML element or tag??? If that is the case (that you want to pass an additional attribute into an HTML tag, then you might investigate the use of the TAGATTR attribute with HTML or with the PREHTML or POSTHTML style attributes. An example of some of these HTML or markup-specific style attributes can be found here:
http://support.sas.com/kb/23/380.html
http://support.sas.com/kb/24/068.html
http://support.sas.com/kb/23/668.html
cynthia