sas function sound

Reply
Super Contributor
Posts: 371

sas function sound

Hello,

When I write this

data _null_;

call sound(659,200);

call sound(587,200);

run;

Sas does not make a sound ?

I want to make a sound for

- the end of the execution of sas program

- sound for error or warning.

SAS Super FREQ
Posts: 3,489

Re: sas function sound

Your program is correct, but the sound is made on the SAS server. You won't hear it if you are running SAS in a client-server mode such as through Enterprise Guide (EG).

Super User
Posts: 17,963

Re: sas function sound

So if I send a program like that to the server, wherever the server is, it's making some sort of noise?

Trusted Advisor
Posts: 1,300

Re: sas function sound

Lol, it's possible, but highly unlikely, since the server is unlikely to have any hardware to actually produce the sound with.

Super User
Posts: 17,963

Re: sas function sound

Damn, there goes my plans for fun. Though the servers are probably in a room where people don't go on a regular basis.

Super User
Posts: 6,978

Re: sas function sound

At least my IBM pSeries can and does make beeps. Would only be useful for guiding service technicians to the correct box.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super Contributor
Posts: 371

Re: sas function sound

I have used this code on SEG on server

Trusted Advisor
Posts: 1,300

Re: sas function sound

As stated, since you are using a remote server, you will not be able to use the CALL SOUND sub-routine to play sounds on your client machine (through SEG).

Super Contributor
Posts: 371

Re: sas function sound

Thank you.

Is there any solution ?

Super User
Posts: 6,978

Re: sas function sound

No. This would need an extension of the EG's capabilities, so you might add an "idea" here in the EG sub-community.

BTW it should not really be hard to do, as EG already reacts to the completion of a task and determines (from the log) if the run was successful.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 9 replies
  • 571 views
  • 0 likes
  • 5 in conversation