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-17465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBenennen%20von%20Teilmengen%20in%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17465%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3EHallo!%3C%2FP%3E%3CP%3EIch%20habe%20einen%20gro%C3%9Fen%20dt%20und%20m%C3%B6chte%20Teilmengen%20aus%20einer%20Spalte%20erstellen.%20Ich%20habe%20es%20geschafft%2C%20aber%20bei%20den%20Teilmengen%20sind%20alle%20Spalten%20gesperrt.%20Wie%20kann%20ich%20sie%20im%20Code%20freischalten%3F%3C%2FP%3E%3CP%3EWie%20kann%20ich%20au%C3%9Ferdem%20die%20Namen%20angeben%2C%20damit%20ich%20sp%C3%A4ter%20damit%20arbeiten%20kann%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CTABLE%20height%3D%22217%22%20style%3D%22height%3A%20219px%3B%20width%3A%20489px%3B%22%3E%3CTBODY%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3Edt2%20%26lt%3B%26lt%3B%20(Teilmenge(%3C%2FP%3E%3CP%3EVon(%20%3AFilial%20)%2C%3C%2FP%3E%3CP%3EAusgew%C3%A4hlte%20Zeilen(%200%20)%2C%3C%2FP%3E%3CP%3ES%C3%A4ulen(%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3E%20%3AKabeljau.%20Kunde%20DPK%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3ABeschr.%20Municipio%20Cadastro%2C%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3ABeschr.%20Kunde%2C%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3ABeschr.%20Tipo%20Cliente%20N1%2C%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3ABeschr.%20Tipo%20Cliente%20N2%2C%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3AName(%20%22Summe(Vlr.%20Venda%20Comercial)%22)%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3AName(%20%22Summe(Vlr.%20Lucro%20Bruto)%22)%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FSPAN%3E%3AMg%20Bruta%3C%2FP%3E%3CP%3E)))%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17467%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Teilmengen%20in%20JSL%20benennen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17467%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EOh%2C%20das%20ist%20gro%C3%9Fartig!%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIch%20m%C3%B6chte%20nur%20das%20urspr%C3%BCngliche%20dt%20in%20anderen%20aufbrechen%20und%20mit%20jedem%20auf%20unterschiedliche%20Weise%20arbeiten%20...%20So%20gelingt%20die%20Trennung%20am%20besten%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENoch%20eine%20Frage%3A%20Wie%20spezifiziere%20ich%20die%20einzelnen%20Teiltabellen%2C%20wenn%20ich%20mit%20ihnen%20arbeite%3F%20Durch%20dts1%2C%20dts2%20usw.%3F%20Oder%20kann%20ich%20das%20auch%20feststellen%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17466%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Teilmengen%20in%20JSL%20benennen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17466%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20nachdem%2C%20was%20Sie%20als%20N%C3%A4chstes%20tun%20m%C3%B6chten%2C%20gibt%20es%20m%C3%B6glicherweise%20eine%20bessere%20M%C3%B6glichkeit%2C%20das%20zu%20erreichen%2C%20was%20Sie%20sich%20vorgestellt%20haben%20(vielleicht%20die%20Verwendung%20einer%20Datenfilterinstanz).%20Wenn%20Sie%20jedoch%20%E2%80%9Esubset%E2%80%9C%20verwenden%20m%C3%B6chten%20oder%20m%C3%BCssen%2C%20versuchen%20Sie%20etwas%20wie%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200px%3B%20line-height%3A%20normal%3B%20font-family%3A%20Menlo%3B%20color%3A%20%23032ce4%3B%22%3ENamen%20standardm%C3%A4%C3%9Fig%20hier%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20(%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%201%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200px%3B%20line-height%3A%20normal%3B%20font-family%3A%20Menlo%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Edt%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Offen%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20(%3C%2FSPAN%3E%20%E2%80%9E%24SAMPLE_DATA%2FBig%20Class.jmp%E2%80%9C%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin%3A%200px%3B%20line-height%3A%20normal%3B%20font-family%3A%20Menlo%3B%20color%3A%20%23008f00%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Edts%20%3D%20dt%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20Teilmenge%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20(By(%3Asex)%2C%20Columns(%3Aname%2C%20%3Aage))%3B%3CSPAN%20class%3D%22Apple-tab-span%22%20style%3D%22white-space%3A%20pre%3B%22%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%20%2F%2F%20Durch%20die%20Verwendung%20von%20%E2%80%9EBy%E2%80%9C%20wird%20eine%20Teilmengentabelle%20f%C3%BCr%20jede%20Ebene%20in%20der%20hspecified-Spalte%20erstellt.%20%E2%80%9Edts%E2%80%9C%20ist%20eine%20Liste%20der%20zugeh%C3%B6rigen%20Tabellenverweise%3C%2FP%3E%3CP%20style%3D%22margin%3A%200px%3B%20line-height%3A%20normal%3B%20font-family%3A%20Menlo%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20%C3%84ndern%20Sie%20die%20Namen%20der%20Teilmengentabellen%3C%2FP%3E%3CP%20style%3D%22margin%3A%200px%3B%20line-height%3A%20normal%3B%20font-family%3A%20Menlo%3B%22%3Edts%5B%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%201%3C%2FSPAN%3E%20%5D%20%26lt%3B%26lt%3B%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20Name%20einsetzen%3C%2FSPAN%3E%20(%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%E2%80%9EFrauen%E2%80%9C%3C%2FSPAN%3E%20)%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20Menlo%3B%20font-size%3A%2010pt%3B%22%3Edts%5B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%202%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Menlo%3B%20font-size%3A%2010pt%3B%22%3E%20%5D%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20Name%20einsetzen%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Menlo%3B%20font-size%3A%2010pt%3B%22%3E%20(%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%E2%80%9EM%C3%A4nnchen%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Menlo%3B%20font-size%3A%2010pt%3B%22%3E%20)%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
theo_beluzzi
Level I

Naming subsets in JSL

Hi!

I have a large dt, and want do make subsets from a column. I've managed to do it, but the subsets have all the columns locked. How I can unlock them in the code?

Also, how can I specify it's names, so I can work with those later?

dt2 << (Subset(

                   By( :Filial ),

                           Selected Rows( 0 ),

                           columns( :Cod. Cliente DPK,

                                         :Desc. Município Cadastro,

                                         :Desc. Cliente,

                                         :Desc. Tipo Cliente N1,

                                         :Desc. Tipo Cliente N2,

                                         :Name( "Sum(Vlr. Venda Comercial)" ),

                                         :Name( "Sum(Vlr. Lucro Bruto)" ),

                                         :Mg Bruta

  )));

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: Naming subsets in JSL

Depending on what you want to happen next, there may be a better way to do what you have in mind (maybe using a data filter instance). But, if you want or need to use 'subset', try something like:

Names Default To Here( 1 );

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dts = dt << subset(By(:sex), Columns(:name, :age)); // Using 'By' makes a subset table for each level in the hspecified column. 'dts' is a list of associated table references

// Change the names of the subset tables

dts[1] << setName("Females");

dts[2] << setName("Males");

View solution in original post

2 REPLIES 2
ian_jmp
Level X

Re: Naming subsets in JSL

Depending on what you want to happen next, there may be a better way to do what you have in mind (maybe using a data filter instance). But, if you want or need to use 'subset', try something like:

Names Default To Here( 1 );

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dts = dt << subset(By(:sex), Columns(:name, :age)); // Using 'By' makes a subset table for each level in the hspecified column. 'dts' is a list of associated table references

// Change the names of the subset tables

dts[1] << setName("Females");

dts[2] << setName("Males");

theo_beluzzi
Level I

Re: Naming subsets in JSL

Ooh, that's great!

I just want to break the original dt in others, and work with each in different ways... That's the best way of doing the separation?

Another question: when working with each of the subsetted tables, how i specify them? By dts1, dts2, etc.? Or I can also determine that?

Recommended Articles