BookmarkSubscribeRSS Feed
swathi123
Obsidian | Level 7

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?

1 REPLY 1
Cynthia_sas
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 432 views
  • 3 likes
  • 2 in conversation