Tagset

Reply
Frequent Contributor
Posts: 78

Tagset

I am using Proc report and producing ODS HTML however see in the output I have at top below "DOCTYPE" while at the bottom of the report have /div> /body> character...I guess it has to do with the template was thinking if somebody could provide me quick template way to supress these notes at the top of the ODS HTML output...Thanks in advance...

!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Here's the code I am running:

OPTIONS MPRINT MLOGIC SYMBOLGEN SPOOL MACROGEN;            

%macro memcheck;                                           

%let filenam=xxxxxx.OUTPUT.HTML ;                         

data _null_ pdsmem;                                       

    rc=filename("flref","&FILENAM");                       

  if rc=0  then                                            

      Do ;                                                 

        Open_file=dopen("flref");                          

        memcount=dnum(open_file);                          

        put "number of members in pds is " memcount;       

  if memcount >= 1  then                                   

      Do i = 1  to memcount ;                              

        file=dread(open_file,i) ;                          

        fid=mopen(open_file,file);                         

if fid > 0                                                

then                                                      

   put file;                                               

   output pdsmem;                                          

     end ;                                                

     end;                                                         

else do;                                                         

  length msg $200.;                                               

  msg = sysmsg();                                                 

  put msg=;                                                       

  end;                                                            

  ods listing close;                                              

  ods tagsets.mvshtml                                             

  Base="//xxxx/MVSDS/xxxx.output.html"   

  body='xxxx.OUTPUT.T.HTML(TEMP)' ;                            

                                                                  

  title 'VTS Consolidated Report for the Exceptions Found' ;      

  proc report data=pdsmem nowd nocenter ;                         

  col  file ;                                                     

  define file / display 'Member'                                  

  style={font_weight=bold background=yellow};                     

  compute file;                                                   

  urlstring =                                                     

  "//xxxx/MVSDS/xxxx.output.html"        

   ||"("||trim(left(file))||")";                                 

   CALL DEFINE(_COL_,'URLBP',urlstring);                            

   endcomp;                                                         

  %mend memcheck ;                                                  

  %memcheck;                                                        

  run;                                                              

   ods tagsets.mvshtml close;                                      

Super User
Posts: 19,133

Re: Tagset

You don't have any output included so its hard to see what you're referencing.

Those types of information are standard in an HTML document, but you should only see them if you open the file with an editor, not a browser.

Ask a Question
Discussion stats
  • 1 reply
  • 120 views
  • 0 likes
  • 2 in conversation