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;
What happens if you put this data step as the very first step?
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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.