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.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

Pass Command-Line Input Argument to OnOpen

Hello,

I would like to select rows in a table based on command-line input parameter/arguments when opening *.jmp files. For example, in a Windows environment, I would like to run "$SAMPLE_DATA/Big Class.jmp 2 5 9" and have OnOpen script to retrieve the "2 5 9" arguments and interpret them to be a matrix [2, 5, 9] for an input to the "Set Select Rows" function. Any thoughts or alternative ideas would be greatly appreciated from the community.

1 ACCEPTED SOLUTION

Accepted Solutions
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Pass Command-Line Input Argument to OnOpen

I don't know of a way to get parameters sent to JMP directly, but two workarounds are:

 

  1. Use environment variables as demonstrated here:Jmp.exe arguments 
  2. Call a batch file with arguments instead that saves those arguments to a file in a specific location and then opens JMP which reads that file.

 

View solution in original post

2 REPLIES 2
frank_wang
Level IV

Re: Pass Command-Line Input Argument to OnOpen

Hi Technician

Hope below JSL can help you to solve the problem.

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
rows = dt << Get Rows( {2, 5, 9} );
心若止水
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Pass Command-Line Input Argument to OnOpen

I don't know of a way to get parameters sent to JMP directly, but two workarounds are:

 

  1. Use environment variables as demonstrated here:Jmp.exe arguments 
  2. Call a batch file with arguments instead that saves those arguments to a file in a specific location and then opens JMP which reads that file.

 

Recommended Articles