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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 823 views
  • 0 likes
  • 2 in conversation