Tag: xcmd

List the contents of your ZIP and gz files using SAS

SAS programmers often resort to using the X command to list the contents of file directories and to process the contents of ZIP files (or gz files on UNIX). In centralized SAS environments, the X command is unavailable to most programmers. NOXCMD is the default setting for these environments (disallowing […]

The post List the contents of your ZIP and gz files using SAS appeared first on The SAS Dummy.

The case for XCMD privileges in SAS Enterprise Guide

One of the often-cited side effects of moving from “Base SAS” (SAS on your PC, or Display Manager) to SAS Enterprise Guide is the loss of “X” command privileges — that is, the ability for your SAS programs to invoke other programs via the operating system shell. We call this […]

Query the Windows registry within your SAS program

On the SAS-L mailing list, a participant posed this question (paraphrased): How can I tell which date format my Windows session is using: European format (with day first) versus USA format (with month first)? I’m reading in output from a Windows file listing, and need to know how to interpret […]

XCMD and SAS 9.3: working together again

It’s been a well-known limitation for a long time.  When you connect to a SAS session using SAS Enterprise Guide, shell commands (including X command, SYSTASK, and FILENAME PIPE) are off-limits because the default SAS invocation disables them.  It does this by including -NOXCMD as a command-line option. This makes […]