The XCMD is turned off.
Is there a way to convince SAS to, when running DREA(), DNUM() etc. functions, see hidden files too?
x 'DIR /A';
filename f PIPE 'ls -a';
under Linux or UNIX systems,
but without OS level interaction.
All the best
Thanks for the article but it wont help. It uses X statement. And, as I wrote, I have NOXCMD.
yes, I read that one too.
the FDELETE() will work with a hidden file, since it accepts a fileref and a fileref points to a particular object so this:
filename x "~/.test_hidden"; data _null_; file x; put "text"; run; data _null_; rc = fdelete('x'); run;
will work ok (I did a test on linux)
So if you have a list of hidden files you will be able to delete them, thing is to get that list with DOPEN, DREAD, DNUM, etc.
Here's a random thought:
Does/would your system administrator permit use of some single other SAS session that allows XCMD with access to the same data storage as your sas session? Can that session be configured as the server for a sas/connect client session on your end?
Restricting access to that server might be a way for sysadmins to maintain desired authorization restrictions, while you (as an authorized user) can have your sas/connect client use the server as a proxy for the needed xcmd actions.
Well, it's not that easy.
I was thinking about a general solution, in particular this macro: https://github.com/SASPAC/baseplus/blob/main/baseplus.md#dirsandfiles-macro which is OS independent solution, with no XCMD needed, but lacks that "see hidden files" feature.
I was hoping that there is some SAS option which I missed that allows for such a "in depth" view. Unfortunately it looks like there is no way to do it without an OS access.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.