@RAVI2000 wrote:
The folder is a shared folder which we have to map manually. Once I map it then only I am able to access it.
On unix you don't "map" disks, you "mount" them. And individual users do not have permission to mount disk, just the system administrators.
On Unix the whole file systems looks like on giant tree starting with the root node ( / ). Individual shared disks or folders are mounted to subdirectories in that tree.
So if on Windows you use something like:
net use Z: \\hostname\sharename
to "map" the shared folder to the Z virtual drive letter.
On Unix someone would mount that share at some directory path. perhaps something like:
/usr/local/hostname/sharename
Z\:
is incorrect syntax. The colon has to immediately follow the drive letter:
Z:\
From a later post of yours I see you are using SAS on UNIX, so
dir /s /b
can't work at all.
dir has to be a shell script or an alias mimicking the DOS command, but it does not "understand" the same options or the same syntax. And there will not be a Z: drive on UNIX ever, as these systems do not have the concept of drives, they have a single filesystem starting at root (/) where all resources need to be mounted.
So I guess the re-ordering of the characters is a consequence of the mistaken use of a Windows path.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.