BookmarkSubscribeRSS Feed
acordes
Rhodochrosite | Level 12

Within VA I use a web content object to run job execution.

Everything works fine except that the final graph freezes. I'd like to have a go-back button to return to the form again.

I thought that running a data _null_ after the proc sgplot would add the button, but I does nothing.

/* end of the code */

proc sgplot data=sashelp.class; 
where age gt &age_min;
hbar age / tip=(AGE) ; 
run; 
quit;

data _null_;
    length line $32767.;

    file _webout; 
    /* _webout will display HTML to the user since the parameter _output_type=html */
    input;        /* Read the HTML from the datalines4 statement */
   
    line = resolve(_INFILE_); /* Treat all &-prefixed data as macro variables */
   
    put line;     /* Write to _webout */
   
    datalines4;
<html lang="en">
    <head>
        <style type="text/css">
            @font-face {
              font-family:AvenirNext;
              src:url("/SASJobExecution/images/AvenirNextforSAS.woff") format("woff");
            }
           
            body {
              font-family: AvenirNext,Helvetica,Arial,sans-serif;
              text-rendering: optimizeLegibility;
              -webkit-tap-highlight-color: rgba(0,0,0,0);
              text-align: center
            }
        </style>
    </head>
   
    <body>
        <p>return to the form</p>
        <br/>
        <a href="/SASJobExecution/?_program=/Public/renato/labor/test2">Go back</a>
    </body>
</html>
;;;;
run;

combo1.pnggraph.png

2 REPLIES 2
acordes
Rhodochrosite | Level 12

thanks, but that doesn't solve it.

Perhaps I could add the job's url as a hyperlink to the graph output. That should make the job restart with the form.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 343 views
  • 0 likes
  • 2 in conversation