BookmarkSubscribeRSS Feed
satya_asam
Calcite | Level 5

Hi I have sas script, given by our sas bi team.

I am new to SAS.

I need to execute that script take the output and need to store on db.

can you help me on that.

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

If you are running Base SAS, press F3 🙂

satya_asam
Calcite | Level 5

Thanks for your quick response draycut.

as of now I have only sas script with me, which is given by our SAS team. and this script will run in some other machine.I am not aware of the machine. I have only hostname ,port & user credential to connect to that machine.

I need to develop a java application to get the output of the given sas script.

please help.

SASKiwi
PROC Star

You need to ask your SAS team: "what is the SAS command line I need to execute to run the SAS script in batch mode". Once they provide that you simply embed that in your Java application. Running a SAS application in batch is just like running an OS command. You will of course have to logon to the SAS server first to run the job.

 

Dealing with the output will be more complicated. What type of output is the script producing? Text, HTML or something else?

satya_asam
Calcite | Level 5

Is there any JAVA code snippet available to connect to SAS servers and executing the sas script?

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
  • 4 replies
  • 1399 views
  • 0 likes
  • 3 in conversation