cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-71997%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EIn%20che%20modo%20l'operazione%20di%20ordinamento%20di%20JSL%20non%20crea%20una%20nuova%20finestra%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-71997%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIl%20risultato%20dell'ordinamento%20non%20creer%C3%A0%20una%20nuova%20finestra.%20Ma%20la%20stessa%20operazione%20di%20ordinamento%20utilizzando%20il%20seguente%20JSL%20produrr%C3%A0%20una%20nuova%20finestra%20per%20visualizzare%20i%20risultati%20ordinati.%20Come%20si%20fa%20a%20fare%20in%20modo%20che%20un'operazione%20di%20ordinamento%20JSL%20non%20generi%20una%20nuova%20finestra%3F%20Grazie!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Edt%20%3D%20Tabella%20dati%20corrente()%3B%3CBR%20%2F%3E%20dt%26lt%3B%3CORDINA%3E%3C%2FORDINA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222018-09-12_18-36-02.png%22%20style%3D%22width%3A%20899px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222018-09-12_18-36-02.png%22%20style%3D%22width%3A%20899px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222018-09-12_18-36-02.png%22%20style%3D%22width%3A%20899px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F12363iAB78F7B46A86B461%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222018-09-12_18-36-02.png%22%20alt%3D%222018-09-12_18-36-02.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-72046%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20In%20che%20modo%20l'operazione%20di%20ordinamento%20di%20JSL%20non%20crea%20una%20nuova%20finestra%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72046%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Esostituibile%3CBR%20%2F%3E%3CBR%20%2F%3E%20grazie!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-72034%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20In%20che%20modo%20l'operazione%20di%20ordinamento%20di%20JSL%20non%20crea%20una%20nuova%20finestra%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72034%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C3%88%20nell'indice%20degli%20script.Cerca%20ordinamento%20e%20vedrai%20tutte%20le%20opzioni.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24sample_data%5CBig%20Class.jmp%22%20)%3B%0Adt%20%26lt%3B%26lt%3B%20Sort(%20By(%204%20)%2C%20Order(%20descending%20)%2C%20replacetable(%201%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-72033%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20In%20che%20modo%20l'operazione%20di%20ordinamento%20di%20JSL%20non%20crea%20una%20nuova%20finestra%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72033%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEcco%20l'esempio%20dallo%20Scripting%20Index%3C%2FP%3E%0A%3CP%3EAiuto%3D%3D%26gt%3BIndice%20degli%20script%3C%2FP%3E%0A%3CP%3Eche%20illustra%20l'opzione%20Sostituisci%20tabella%20per%20la%20piattaforma%20di%20ordinamento%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Adt%20%26lt%3B%26lt%3B%20Sort(%0A%20replace%20table%2C%0A%20By(%20%3Aname%20)%2C%0A%20Order(%20Ascending%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
lwx228
Level VIII

How does JSL's sorting operation not create a new window?

The result of sorting will not create a new window.But the same sort operation using the following JSL will produce a new window to display the sorted results.How do you make a JSL sorting operation not generate a new window?thank you!


dt = Current Data Table();
dt<<Sort(By(4),Order(descending));

 

2018-09-12_18-36-02.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: How does JSL's sorting operation not create a new window?

Here is the example from the Scripting Index

     Help==>Scripting Index

that illustrates the Replace Table option for the Sort Platform

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Sort(
	replace table,
	By( :name ),
	Order( Ascending )
);
Jim

View solution in original post

pmroz
Super User

Re: How does JSL's sorting operation not create a new window?

It's in the scripting index.  Look for sort and you'll see all of the options.

dt = Open( "$sample_data\Big Class.jmp" );
dt << Sort( By( 4 ), Order( descending ), replacetable( 1 ) );

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: How does JSL's sorting operation not create a new window?

Here is the example from the Scripting Index

     Help==>Scripting Index

that illustrates the Replace Table option for the Sort Platform

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Sort(
	replace table,
	By( :name ),
	Order( Ascending )
);
Jim
pmroz
Super User

Re: How does JSL's sorting operation not create a new window?

It's in the scripting index.  Look for sort and you'll see all of the options.

dt = Open( "$sample_data\Big Class.jmp" );
dt << Sort( By( 4 ), Order( descending ), replacetable( 1 ) );
lwx228
Level VIII

Re: How does JSL's sorting operation not create a new window?

replacetable

thanks you!

Recommended Articles