cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles