cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
Jackie_
Level VI

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 VI

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 VI

Re: Get list of DNS data source name

Appreciate it