names = Files In Directory( path, <recursive> );
names = Files In Directory( "$SAMPLE_DATA" );
{ "2D Gaussian Process Example.jmp", "Abrasion.jmp", ... "Design Experiment", "Detergent.jmp", ... }
Notice that the files within the Design Experiment subdirectory are not included. And only files in the root $SAMPLE_DATA directory are listed.
To return a list of all file names, add the optional recursive argument to Files In Directory:
names = Files In Directory( "$SAMPLE_DATA", recursive );
{ "2D Gaussian Process Example.jmp", "Abrasion.jmp", ... "Design Experiment/2x3x4 Factorial.jmp", "Design Experiment/Algorithm Data.jmp", ... }
names = Files In Directory( "$SAMPLE_DATA", recursive );
For( i = 1, i <= N Items( names ), i++,
	names[i] = Convert File Path( "$SAMPLE_DATA" ) || names[i]
);
names;
{"/C:/Program Files/SAS/JMP/14/Samples/Data/2D Gaussian Process Example.jmp",
"/C:/Program Files/SAS/JMP/14/Samples/Data/Abrasion.jmp", ... }
The Files in Directory command accepts native and POSIX paths, as well as paths using path variables. See Path Variables in Types of Data for details on working with paths.

Help created on 7/12/2018