Lorem Ipsum
Lorem Ipsum

Reputation: 4534

SAS: What is the difference between an X Statement and an X Command?

For Windows, there are two separate documentation pages, but it's not clear to me what the distinction is, if any.

X Command: Windows

X Statement: Windows

The existence of two separate pages implies there is some difference. The X Statement documentation even makes reference to the X Command,

"There are other ways of running operating environment commands besides the X statement (and the X command) under Windows."

Yet both appear to perform the same role and have the same syntax of X <'command'>;. If they are different, how can one identify the one from the other? Context?

The only explanation I can think of is that the X Statement is the line defined as the characters between the SAS keyword 'X' and the semi-colon ;, i.e. X <command>; and that the X Command is the <command> portion of the X Statement.

Upvotes: 1

Views: 708

Answers (1)

Tom
Tom

Reputation: 51591

Statements are submitted as part of the code. Like a LIBNAME statement or a DATA statement. Commands are typed at the command line of a Display Manager window. Like the FILE command or the WSAVE command.

Upvotes: 2

Related Questions