How can a sas code be inscribed inside a cgi script?

Reply
Contributor
Posts: 27

How can a sas code be inscribed inside a cgi script?

Hi

how can we include a sas code inside cgi script? what do we get by doing that? i have code that has sas code embedded inside a cgi script..

im trying to udnerstand what is the final result/output produced?

SAS Super FREQ
Posts: 8,864

Re: How can a sas code be inscribed inside a cgi script?

Posted in reply to swathi123

Hi:

  This posting seems related to your previous posting (https://communities.sas.com/thread/43898). Since you say that you have SAS code "embedded" in a CGI script, then the answer of HOW SAS code can included in a CGI script is right there in front of you.

  You just have to

1) Look up the CGI scripting language and SSI information (Python, Perl, PHP, Java, ActiveX, JSP, ASP?) and read the documentation on the scripting language and SSI method that you are using

2) Read the SAS documentation for calling SAS using that scripting language

3) Figure out what set of SAS components you are using (SAS/IntrNet, SAS Information Delivery Portal) as suggested in this response to your post https://communities.sas.com/thread/43911

4) Figure out what the SAS code is doing by reading the documentation on the SAS syntax elements used. (as suggested in this response to your post https://communities.sas.com/message/163190#163190)

5) Read the documentation on the SAS components you are using with the CGI script

6) Get friendly with your webmaster and the web group, ask them to explain how the CGI script is run and how it works on the web server machine.

  You are the one who has the SAS code and the CGI script in front of you. You have not provided any information about the version of SAS, the SAS configuration or components that you are using, the language of the CGI script or even an idea of what the SAS code looks like. When you run the script or call the script on the web server, what does the SAS program seem to do?

  The short answer to your question, "How can sas code be inscribed inside a cgi script" is read the documentation and the developer's guide for the method that you're using. Or, look for user group papers on the topic. You did not say whether your script was ASP or not, but for example, here's a paper about using ASP with HTML forms: http://www2.sas.com/proceedings/sugi30/234-30.pdf or,

here's a paper about using JSP http://www.nesug.org/proceedings/nesug01/ps/ps8006.pdf or

here's a paper about JSON http://support.sas.com/resources/papers/proceedings11/315-2011.pdf

  The questions you are asking are very general questions, almost too general. It is very hard to provide any suggestion in the absence of more specific information.

cynthia

Ask a Question
Discussion stats
  • 1 reply
  • 241 views
  • 3 likes
  • 2 in conversation