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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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