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%3EComment%20l'op%C3%A9ration%20de%20tri%20de%20JSL%20ne%20cr%C3%A9e-t-elle%20pas%20une%20nouvelle%20fen%C3%AAtre%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-71997%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ELe%20r%C3%A9sultat%20du%20tri%20ne%20cr%C3%A9era%20pas%20de%20nouvelle%20fen%C3%AAtre.%20Mais%20la%20m%C3%AAme%20op%C3%A9ration%20de%20tri%20utilisant%20le%20JSL%20suivant%20produira%20une%20nouvelle%20fen%C3%AAtre%20pour%20afficher%20les%20r%C3%A9sultats%20tri%C3%A9s.%20Comment%20faire%20en%20sorte%20qu'une%20op%C3%A9ration%20de%20tri%20JSL%20ne%20g%C3%A9n%C3%A8re%20pas%20de%20nouvelle%20fen%C3%AAtre%20%3F%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Edt%20%3D%20Table%20de%20donn%C3%A9es%20actuelle%20()%3B%3CBR%20%2F%3E%20dt%26lt%3B%3CTRI%3E%3C%2FTRI%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%3ERe%20%3A%20Comment%20l'op%C3%A9ration%20de%20tri%20de%20JSL%20ne%20cr%C3%A9e-t-elle%20pas%20une%20nouvelle%20fen%C3%AAtre%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72046%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Erempla%C3%A7able%3CBR%20%2F%3E%3CBR%20%2F%3E%20merci!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-72034%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Comment%20l'op%C3%A9ration%20de%20tri%20de%20JSL%20ne%20cr%C3%A9e-t-elle%20pas%20une%20nouvelle%20fen%C3%AAtre%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72034%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EC'est%20dans%20l'index%20des%20scripts.Recherchez%20le%20tri%20et%20vous%20verrez%20toutes%20les%20options.%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%3ERe%20%3A%20Comment%20l'op%C3%A9ration%20de%20tri%20de%20JSL%20ne%20cr%C3%A9e-t-elle%20pas%20une%20nouvelle%20fen%C3%AAtre%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-72033%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVoici%20l'exemple%20du%20Scripting%20Index%3C%2FP%3E%0A%3CP%3EAide%3D%3D%26gt%3BIndex%20des%20scripts%3C%2FP%3E%0A%3CP%3Equi%20illustre%20l'option%20Remplacer%20la%20table%20pour%20la%20plateforme%20de%20tri%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