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%3EWieso%20erstellt%20der%20Sortiervorgang%20von%20JSL%20kein%20neues%20Fenster%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-71997%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDas%20Ergebnis%20der%20Sortierung%20erstellt%20kein%20neues%20Fenster.%20Aber%20der%20gleiche%20Sortiervorgang%20mit%20der%20folgenden%20JSL%20erzeugt%20ein%20neues%20Fenster%2C%20in%20dem%20die%20sortierten%20Ergebnisse%20angezeigt%20werden.%20Wie%20erreicht%20man%2C%20dass%20ein%20JSL-Sortiervorgang%20kein%20neues%20Fenster%20generiert%3F%20Vielen%20Dank!%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Edt%20%3D%20Aktuelle%20Datentabelle()%3B%3CBR%20%2F%3E%20dt%26lt%3B%3CSORT%3E%3C%2FSORT%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%3EBetreff%3A%20Warum%20erstellt%20der%20Sortiervorgang%20von%20JSL%20kein%20neues%20Fenster%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72046%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Eaustauschbar%3CBR%20%2F%3E%3CBR%20%2F%3E%20Danke!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-72034%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Warum%20erstellt%20der%20Sortiervorgang%20von%20JSL%20kein%20neues%20Fenster%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72034%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEs%20befindet%20sich%20im%20Skriptindex.Suchen%20Sie%20nach%20Sortieren%20und%20Sie%20werden%20alle%20Optionen%20sehen.%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%3EBetreff%3A%20Warum%20erstellt%20der%20Sortiervorgang%20von%20JSL%20kein%20neues%20Fenster%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72033%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHier%20ist%20das%20Beispiel%20aus%20dem%20Scripting%20Index%3C%2FP%3E%0A%3CP%3EHilfe%3D%3D%26gt%3BSkriptindex%3C%2FP%3E%0A%3CP%3EDies%20veranschaulicht%20die%20Option%20%E2%80%9ETabelle%20ersetzen%E2%80%9C%20f%C3%BCr%20die%20Sortierplattform%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