cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Jackie_
Level VII

Get list of DNS data source name

Hello,

 

Is there a way to get the list of the DNS data source using JSL?

 

Jackie__0-1694803457276.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Get list of DNS data source name

Scripting Index and JMP Help page I did link should get you there

Names Default To Here(1);
rp = Run Program( Executable("powershell.exe"), Options({"Get-OdbcDsn"}), ReadFunction("text") );
-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: Get list of DNS data source name

You could use Run Program(), call powershell, use command Get-OdbcDsn and parse from the return

-Jarmo
Jackie_
Level VII

Re: Get list of DNS data source name

@jthi Thanks Jarmo!

 

I haven't used Run Program before. Mind sharing a reference code to save the DNS in the lists?

jthi
Super User

Re: Get list of DNS data source name

Scripting Index and JMP Help page I did link should get you there

Names Default To Here(1);
rp = Run Program( Executable("powershell.exe"), Options({"Get-OdbcDsn"}), ReadFunction("text") );
-Jarmo
Jackie_
Level VII

Re: Get list of DNS data source name

Appreciate it

Recommended Articles