cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar

Deleting and moving JMP data files on disk from JSL

There's an exceptionally helpful thread on this forum at https://communities.sas.com/message/32475#32475 which shows how to use DLL files to delete or move data files from within JSL, but the script appears to be specific to Windows.  I'd like to assemble something that would work equally well on both Windows and Macs.  Does anyone know if that can be done please - and if so, how?

1 ACCEPTED SOLUTION

Accepted Solutions
gbu
gbu
Level III

Re: Deleting and moving JMP data files on disk from JSL

Hi,

If you're using jmp 10.0.1, some new functions are available

http://support.sas.com/demosdownloads/000981/JMP_1001_release_notes.pdf

JSL File and Directory commands are available, including :

File Exists( path )

Directory Exists( path )

Copy Directory( from, to, {1/*recursive*/} )

Copy File( from, to )

Move Directory( from, to )

Move File( from, to )

Rename Directory( old, new )

Rename File( old, new )

Delete Directory( path )

Delete File( path )

Create Directory( path )

Last Modification Date( path )

Creation Date( path )

View solution in original post

5 REPLIES 5
gbu
gbu
Level III

Re: Deleting and moving JMP data files on disk from JSL

Hi,

If you're using jmp 10.0.1, some new functions are available

http://support.sas.com/demosdownloads/000981/JMP_1001_release_notes.pdf

JSL File and Directory commands are available, including :

File Exists( path )

Directory Exists( path )

Copy Directory( from, to, {1/*recursive*/} )

Copy File( from, to )

Move Directory( from, to )

Move File( from, to )

Rename Directory( old, new )

Rename File( old, new )

Delete Directory( path )

Delete File( path )

Create Directory( path )

Last Modification Date( path )

Creation Date( path )

Re: Deleting and moving JMP data files on disk from JSL

Even better than I'd hoped for.  Many thanks!

djhanson
Level V

Re: Deleting and moving JMP data files on disk from JSL

All, Copy File() works in JMP 9.0.3 (or at least for me).  Very nice.  dj

Stokes
Level IV

Re: Deleting and moving JMP data files on disk from JSL

Can some one share a move file jsl by search the key words in file name?

Thank you

jthi
Super User

Re: Deleting and moving JMP data files on disk from JSL

This is very old post and some functions might have changed or there might be new ones.

 

  1. Use Files In Directory() (or some other way) to get a list of file names
  2. Use appropriate character functions on those items by using a loop (For Each, Filter Each if you have JMP16+, if not use For loop) to filter down the list
    1. Contains(), Starts With() , Ends With() . And for more complicated comparisons you can for example use IsMissing() with Regex()
  3. Perform action on the filtered list
-Jarmo