Data visualization with SAS programming

sas graph on MVS - example

Reply
Frequent Contributor
Posts: 78

sas graph on MVS - example

Trying few SAS Graph programming so that if possible I incorporate some charts with the basic report we are producing ...Hence using some sample code to run and see if I can understand them with some of the learning from SAS Doc....Obviously I can't find many documents which talk about SAS Examples to run MVS/Mainframe environment ...

So here's one example which is running ok and I see frame/content/body and some gplot members are getting created in the PDSE(Partition dataset extended) but when I open them using the HTTP/MVSDS in the HTML ..it just come out as no PLOT ...Does anybody has sample code to produce some graphs on mainframe and anything you guys see wrong with the below code ?? as it's completing successfully however blank page...

GOPTIONS RESET=ALL;                                                 

GOPTIONS DEVICE=GIF TRANSPARENCY NOBORDER                           

RESET=GLOBAL GUNIT=PCT BORDER CBACK=WHITE                           

COLORS=(BLACK RED BLUE GREEN PURPLE ORANGE) CTEXT=BLACK             

HTITLE=4 HTEXT=2 FTITLE=SWISSB FTEXT=SWISSB                         

XPIXELS=700 YPIXELS=390;                                            

ODS TRACE ON;                                                       

ODS LISTING CLOSE ;                                                 

ODS TAGSETS.MVSHTML                                                 

     PATH="xxxxxxx.OUTPUT.HTML"                                      

     GPATH="xxxxxxx.OUTPUT.HTML"                                     

     BASE="HTTP://xxxxxxxx.xxxxxxxxxxxxx.COM/MVSDS/"                 

     BODY="LAB"                                                      

     CONTENTS="CONLAB"                                               

     FRAME="FRMLAB"                                                  

     (TITLE="LAB REPORT")                                            

     RECORD_SEPERATOR=NONE                                           

     NEWFILE=OUTPUT ;                                                

data sales;                                                         

     input region $  state $  sales;                                 

cards;                                                             

East VA 1000                                               

East DC 2000                                               

East MD 3000                                               

East NC 4000                                               

West CA 5000                                               

West CA 3000                                               

West CA 4000                                               

West AR 3000                                               

South AL 4000                                              

South GA 3000                                              

South TN 2000                                              

North NY 4000                                              

;                                                          

run;                                                       

PROC SORT DATA=SALES;BY STATE;                             

PROC GPLOT DATA=SALES;                                     

PLOT REGION * SALES /                                      

HZERO                                                      

VZERO;                                                     

BY STATE;                                                 

      RUN;                              

QUIT;                                   

ODS TAGSETS.MVSHTML CLOSE;             

Post a Question
Discussion Stats
  • 0 replies
  • 178 views
  • 0 likes
  • 1 in conversation