Chapter Contents

Previous

Next
MCIPISTR

MCIPISTR



Submits an MCI string command to a piece of multimedia equipment

Windows specifics: all


Syntax
Details
Example
See Also

Syntax

rc=MCIPISTR(MCI-string-command)

rc
return code.

MCI-string-command
is any valid SAS string; that is, a character variable, a character literal enclosed in quotes, or other character expression.


Details

The MCIPISTR function submits an MCI (Media Control Interface) string command.

You can use MCI to control many types of multimedia equipment, such as CD players, mixers, videodisc players, and so on. Windows provides MCI support. For more information about valid MCI string commands, refer to the Microsoft Win32 SDK and your MCI-compliant device documentation.

The return value is a string that contains return information from the MCI string command. Examples of return information include "invalid instance" and "1".

Note:   Not all MCI commands supply return codes that are usable from the SAS System  [cautionend]

The MCIPISTR function can be used in the DATA step and in SCL code.


Example

To use a CD player, you could submit the following statements in your DATA step:

msg=mcipistr("open cdaudio alias cd");
msg=mcipistr("play cd");
msg=mcipistr("stop cd");
msg=mcipistr("close cd");

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.