@hkamel ,
Sure. Let's walk through this step by step. I haven't worked with Minitab previously so I will try to do my best and please let me know if you need any further clarification.
You can use JMP in 2 ways (very broadly speaking)
1. Interactively
2. Scripting - The Scripting Language that JMP has is called JSL ( JMP Scripting Language)
The approach that I have taken to address your question was based on (2) i.e. Scripting. The approach that Jeff Perkinson is advising is (1). (1) is definetely easier and I would recommend you follow that in this case.
If you are eploring JSL i.e. step(2) , then please feel free to use the approach I suggested after you explore the New User Kit. Hope this helps.
Best
Uday