cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-50166%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ESpec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50166%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20import%20spec%20limits%20and%20having%20some%20error%20when%20I%20ran%20the%20script.%20Here%20is%20the%20script%20and%20error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3Edt%20%3D%20%3C%2FSPAN%3ECurrent%20Data%20Table%3CSPAN%20class%3D%22s1%22%3E()%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EEval%3CSPAN%20class%3D%22s1%22%3E(%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EParse%3CSPAN%20class%3D%22s1%22%3E(%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p3%22%3E%3CSPAN%20class%3D%22s1%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FSPAN%3E%22obj%20%3D%20dt%20%26lt%3B%26lt%3B%20Process%20Capability(%3C%2FP%3E%3CP%20class%3D%22p3%22%3EProcess%20Variables(%20%22%3CSPAN%20class%3D%22s1%22%3E%7C%7C%20names%20%7C%7C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p3%22%3E%22%20)%2C%3C%2FP%3E%3CP%20class%3D%22p3%22%3ESpec%20Limits(Import%20Spec%20Limits(%22%3CSPAN%20class%3D%22s1%22%3ESpecA.jmp%3C%2FSPAN%3E%22)%20)%20%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%3C%2FSPAN%3E)%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%3B%22%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p4%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E)%3C%2FP%3E%3CP%20class%3D%22p4%22%3E)%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3BThe%20names%20varaible%20has%20all%20columns%20and%20worked%20fine%20in%20other%20script.%20I%20appreciate%20any%20help.%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50883%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50883%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20Jim.%20I%20made%20it%20to%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50546%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50546%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThe%20Column%20Dialog()%20function%20has%20been%20downgraded%20in%20importance%20in%20favor%20of%20using%20a%20New%20Window.%26nbsp%3B%20Here%20is%20an%20example%20of%20one%20way%20to%20choose%20columns%20and%20to%20pass%20them%20to%20a%20Platform.%26nbsp%3B%20This%20example%20is%20taken%20from%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BHelp%3D%3D%26gt%3BBooks%3D%3D%26gt%3BScripting%20Guide%2C%26nbsp%3B%20page%20445%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Axvar%20%3D%20.%3B%0Ayvar%20%3D%20.%3B%0Awin%20%3D%20New%20Window(%20%22Return%20Values%22%2C%0A%20%26lt%3B%3CMODAL%3E%3C%2FMODAL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50545%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50545%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20Jim.%20I%20went%20through%20that%20and%20found%20somethig%20like%20this%20script%3A%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EColumn%20Dialog%3CSPAN%20class%3D%22s1%22%3E(%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p2%22%3Eex%20y%20%3D%20ColList(%20%3CSPAN%20class%3D%22s2%22%3E%22Y%22%3C%2FSPAN%3E%2C%20Min%20Col(%20%3CSPAN%20class%3D%22s3%22%3E1%3C%2FSPAN%3E%20)%2C%20Max%20Col(%20%3CSPAN%20class%3D%22s3%22%3E80%3C%2FSPAN%3E%20)%2C%20Data%20Type(%20%3CSPAN%20class%3D%22s2%22%3E%22Numeric%22%3C%2FSPAN%3E%20)%20)%2C%3C%2FP%3E%3CP%20class%3D%22p2%22%3Eex%20x%20%3D%20ColList(%20%3CSPAN%20class%3D%22s2%22%3E%22X%22%3C%2FSPAN%3E%2C%20Max%20Col(%20%3CSPAN%20class%3D%22s3%22%3E1%3C%2FSPAN%3E%20)%2C%20Modeling%20Type(%20%7B%3CSPAN%20class%3D%22s2%22%3E%22Continuous%22%3C%2FSPAN%3E%2C%20%3CSPAN%20class%3D%22s2%22%3E%22Multiple%20Response%22%3C%2FSPAN%3E%7D%20)%20)%3C%2FP%3E%3CP%20class%3D%22p4%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E)%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EHow%20do%20I%20use%20the%20above%20column%20selection%20to%20do%26nbsp%3B%20Distribution%2FHistogram%20for%20instance.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50543%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50543%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EYou%20question%20how%20to%20enter%20the%20column%20specification%20for%20the%20Distribution%20Platform.%26nbsp%3B%20The%20syntax%20that%20is%20required%20to%20run%20any%20given%20platform%20can%20be%20determined%20by%3C%2FP%3E%0A%3CP%3E1.%20Running%20the%20platform%20interactively%2C%20and%20then%20saving%20the%20script%2C%20and%20examining%20it%20for%20what%20is%20required%20to%20run%20multiple%20columns.%3C%2FP%3E%0A%3CP%3E2.%20To%20to%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BHelp%3D%3D%26gt%3BScripting%20Index%3C%2FP%3E%0A%3CP%3Eand%20then%20go%20to%20the%20Platform%20of%20choice%20(i.e.%20Distribution)%20and%20going%20through%20the%20various%20examples%20provided%20in%20the%20index.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50541%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50541%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20Jim.%20That's%20very%20helpful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20choose%20the%20columns%20you%20want%20to%20do%20the%20histogram%20in%20the%20script%3F%20It%20looks%20like%20you%20have%20to%20list%20them%20one%20by%20one%20using%20Continuous%20Distribution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20any%20help%2Fcomments.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50535%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50535%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThe%20Capability%20Platform%20does%20not%20automatically%20save%20the%20Spec%20Limits%20to%20the%20column%20properties.%26nbsp%3B%26nbsp%3BThey%20have%20to%20have%20the%20message%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eobj%20%26lt%3B%26lt%3B%20Save%20Spec%20Limits%20as%20Column%20Properties.%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Especified.%3C%2FP%3E%0A%3CP%3EThen%2C%20you%20can%20run%20the%20Distribution%20Platform.%26nbsp%3B%20But%20contrary%20to%20how%20you%20have%20it%20listed%2C%20the%20Distribution%20is%20not%20passed%20to%20the%20Object%20associated%20with%20the%20Capability%20Platform%2C%20it%20is%20passed%20to%20the%20data%20table%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%2FCities.jmp%22%20)%3B%0Aobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Capability(%0A%20Y(%20%3AOZONE%2C%20%3ACO%2C%20%3ASO2%2C%20%3ANO%20)%2C%0A%20Spec%20Limits(%0A%20%20Import%20Spec%20Limits(%0A%20%20%20%22%24SAMPLE_DATA%2FCitySpecLimits.jmp%22%0A%20%20)%0A%20)%0A)%3B%0Aobj%20%26lt%3B%26lt%3B%20Save%20Spec%20Limits%20as%20Column%20Properties%3B%0A%0ADis%20%3D%20dt%20%26lt%3B%26lt%3B%20Distribution(%0A%20Continuous%20Distribution(%20Column(%20%3AOZONE%20)%20)%2C%0A%20Continuous%20Distribution(%20Column(%20%3ACO%20)%20)%2C%0A%20Continuous%20Distribution(%20Column(%20%3ASO2%20)%20)%2C%0A%20Continuous%20Distribution(%20Column(%20%3ANO%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThis%20is%20all%20detailed%20in%20the%20message%20documentation%20in%20the%20Scripting%20Index%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BHelp%3D%3D%26gt%3BScripting%20Index%3D%3D%26gt%3BCapability%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50533%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50533%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20Jim.%20I%20like%20to%20be%20able%20to%20import%20the%20spec%20limit%20and%20show%20histogram%20with%20spec%20limit%20and%20also%20Cpk%20analysis.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wrote%20the%20following%20script%20and%20it%20does%20not%20show%20the%20histogram%3A%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3Bdt%20%3D%20Current%20data%20table()%3B%3C%2FP%3E%3CP%20class%3D%22p3%22%3E%3CSPAN%20class%3D%22s1%22%3Eobj%20%3D%20%3C%2FSPAN%3ECapability%3CSPAN%20class%3D%22s1%22%3E(%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p4%22%3EY(%20%3AA%20)%2C%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s3%22%3ESpec%20Limits%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3E(%20Import%20Spec%20Limits(%20%3C%2FSPAN%3E%22%24Documents%2FJMP%2FSpecA.jmp%22%3CSPAN%20class%3D%22s1%22%3E%20)%20)%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p4%22%3EIndividual%20Detail%20Reports(%20%3CSPAN%20class%3D%22s4%22%3E1%3C%2FSPAN%3E%20)%2C%3C%2FP%3E%3CP%20class%3D%22p4%22%3ECapability%20Box%20Plots(%20%3CSPAN%20class%3D%22s4%22%3E0%3C%2FSPAN%3E%20)%2C%3C%2FP%3E%3CP%20class%3D%22p3%22%3EGoal%20Plot%3CSPAN%20class%3D%22s1%22%3E(%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E0%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3E%20)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p4%22%3E)%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p4%22%3Eobj%20%26lt%3B%26lt%3B%20%3CSPAN%20class%3D%22s5%22%3EDistribution%3C%2FSPAN%3E(%20%3CSPAN%20class%3D%22s3%22%3EContinuous%20Distribution%3C%2FSPAN%3E(%20%3CSPAN%20class%3D%22s2%22%3EColumn%3C%2FSPAN%3E(%20%3A%20A)%2C%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p3%22%3ECapability%20Analysis%3CSPAN%20class%3D%22s1%22%3E(%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E1%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3E%20)%20)%20)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p4%22%3Eobj%20%26lt%3B%26lt%3B%20%3CSPAN%20class%3D%22s5%22%3EHistogram%3C%2FSPAN%3E(%3CSPAN%20class%3D%22s4%22%3E1%3C%2FSPAN%3E%2C%20Show%20Spec%20Limits(%3CSPAN%20class%3D%22s4%22%3E1%3C%2FSPAN%3E))%3B%3C%2FP%3E%3CP%20class%3D%22p4%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p4%22%3EI%20appreciate%20your%20further%20help.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50349%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50349%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMy%20suggestion%20is%20that%20you%20import%20the%20spec%20limits%20as%20column%20propery%2C%20independent%20from%20the%20Distribution%20Platform.%26nbsp%3B%20then%20when%20you%20run%20the%20platform%2C%20you%20specify%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EDistribution(%20%0A%20%20%20%20%20Continuous%20Distribution(%20Column(%20%3ANPN1%20)%2C%20%0A%20%20%20%20%20Capability%20Analysis(%200%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EExamples%20of%20all%20elements%20availabe%20to%20any%20of%20the%20platforms%20is%20available%20in%20the%20scripting%20index%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BHelp%3D%3D%26gt%3BScripting%20Index%3C%2FP%3E%0A%3CP%3EI%20suggest%20you%20familiarize%20yourself%20with%20it.%26nbsp%3B%20It%20is%20the%20answer%20to%20most%20of%20your%20questions.%3C%2FP%3E%0A%3CP%3EAn%20example%3A%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%5CBig%20Class.jmp%22%20)%3B%0AUSL%20%3D%2070%3B%0ALSL%20%3D%2055%3B%0AEval(%0A%20Substitute(%0A%20%20%20Expr(%0A%20%20%20%20%3AHeight%20%26lt%3B%26lt%3B%20set%20property(%20%22spec%20limits%22%2C%20%7BLSL(%20__LSL__%20)%2C%20USL(%20__USL__%20)%2CShow%20Limits(1)%7D%20)%0A%20%20%0A%20%20%20)%2C%0A%20%20Expr(%20__LSL__%20)%2C%20LSL%2C%0A%20%20Expr(%20__USL__%20)%2C%20USL%0A%20)%0A)%3B%0ADistribution(%20Continuous%20Distribution(%20Column(%20%3Aheight%20)%2C%20Capability%20Analysis(%200%20)%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50348%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50348%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EHow%20do%20I%26nbsp%3B%20import%20Spec%20Limit%20without%20doing%20any%20capability%20analysis%20in%20a%20script%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50347%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50347%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20found%20out%20that%20in%20my%20list%20of%20columns%20for%20some%20reason%20A_B%20is%20written%20as%20A-B%20and%20fixing%20this%20will%20work%20with%20the%20following%20script.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EEval%3CSPAN%20class%3D%22s1%22%3E(%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3EParse%3CSPAN%20class%3D%22s1%22%3E(%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%3CSPAN%20class%3D%22s2%22%3EEval%3C%2FSPAN%3E%20(%3C%2FP%3E%3CP%20class%3D%22p3%22%3E%22obj%20%3D%20dt%20%26lt%3B%26lt%3B%20Capability(%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%3CSPAN%20class%3D%22s3%22%3EY(%22%3C%2FSPAN%3E%20%7C%7C%20names%20%7C%7C%20%3CSPAN%20class%3D%22s3%22%3E%22)%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p3%22%3ESpec%20Limits(Import%20Spec%20Limits(%5C!%22SpecA.jmp%5C!%22)%20)%20)%3B%22%3C%2FP%3E%3CP%20class%3D%22p2%22%3E)%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E)%3C%2FP%3E%3CP%20class%3D%22p2%22%3E)%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3EThank%20you%20all%20for%20great%20support.%20Best%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50346%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50346%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20for%20the%20reply%20and%20feedback.%20Here%20is%20what%20the%20definition%20of%20%22names%22%20is%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3ElstNames%20%3D%20dt%20%26lt%3B%26lt%3B%20%3CSPAN%20class%3D%22s1%22%3EGet%20Column%20Names%3C%2FSPAN%3E(%20string%2C%20Numeric%20)%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%3C%2FSPAN%3Enames%20%3D%20%3CSPAN%20class%3D%22s2%22%3E%22%3A%22%3C%2FSPAN%3E%20%7C%7C%20lstNames%5B%3CSPAN%20class%3D%22s3%22%3E1%3C%2FSPAN%3E%5D%3B%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3EFor%3C%2FSPAN%3E(%20i%20%3D%20%3CSPAN%20class%3D%22s3%22%3E2%3C%2FSPAN%3E%2C%20i%20%26lt%3B%3D%20%3CSPAN%20class%3D%22s4%22%3EN%20Items%3C%2FSPAN%3E(%20lstNames%20)%2C%20i%2B%2B%2C%3C%2FP%3E%3CP%20class%3D%22p1%22%3Enames%20%3D%20names%20%7C%7C%20%3CSPAN%20class%3D%22s2%22%3E%22%2C%3A%22%3C%2FSPAN%3E%20%7C%7C%20lstNames%5Bi%5D%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22Apple-converted-space%22%3E%26nbsp%3B%20%3C%2FSPAN%3E)%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EI%20have%20used%20%22names%22%20in%20other%20part%20of%20JMP%20script%20and%20no%20issue.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50330%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50330%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECan%20you%20post%20the%20value%20of%20the%20variable%20%22names%22%3F%26nbsp%3B%20It%20may%20not%20like%20the%20format%20for%20your%20list%20of%20column%20names.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50325%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50325%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThanks%20for%20all%20your%20suggestions.%20I%20am%20still%20getting%20an%20error%20with%20the%20last%20suggestion.%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EException%20in%20platform%20launch%20in%20access%20or%20evaluation%20of%20'Process%20Capability'%20%2C%20Process%20Capability(%2F*%23%23%23*%2FProcess%20Variables(%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3AA%2CB%2C...%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3EAny%20further%20help%20is%20appreciated.%20Thanks%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50240%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50240%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EAside%20from%20using%20%22%5C%5B%20%5D%5C%22%20to%20mask%20double%20quotes%20in%20a%20string%2C%20I%20also%20find%20that%20the%20Eval%20Insert()%20function%20is%20very%20handy%20for%20including%20the%20values%20of%20variables%20in%20a%20string%2C%20like%20the%20variable%20%22names%22.%26nbsp%3B%20You%20can%20insert%20the%20values%20of%20variables%20into%20a%20string%20using%20the%20carrot%20symbol%20%22%5E%22.%26nbsp%3B%20Here's%20how%20you%20might%20be%20able%20to%20get%20this%20to%20work%3A%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Current%20Data%20Table()%3B%0A%0AEval(%0A%20Parse(%0A%20%20Eval%20Insert(%22%5C%5Bobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Process%20Capability(%0A%20%20%20Process%20Variables(%20%20%5Enames%5E%20)%2C%0A%20%20%20Spec%20Limits(Import%20Spec%20Limits(%20%22%24DESKTOP%2FSpecA.jmp%22)%20)%20)%3B%5D%5C%22%0A%20%20)%0A%20%20%20%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EOf%20course%2C%20your%20SpecA.jmp%20may%20not%20be%20on%20your%20desktop.%26nbsp%3B%20Just%20make%20sure%20the%20path%20is%20correct%20for%20that%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50171%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50171%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThere%20is%20an%20Addin%20that%20populates%20limits%20into%20a%20data%20table%2C%20from%20another%20JMP%20limits%20table.%26nbsp%3B%20See%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Add-Ins%2FWrite-Limits-to-a-Data-Table-from-a-Limits-Table%2Fta-p%2F35790%22%20target%3D%22_self%22%3EWrite%20Limits%20to%20a%20Data%20Table%20from%20a%20Limits%20Table%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50170%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Spec%20limits%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50170%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI've%20only%20given%20the%20script%20a%20quick%20glance%2C%20but%20one%20problem%20I%20see%20is%20that%20you%20have%20quotes%20contained%20within%20your%20quoted%20string.%26nbsp%3B%20Specifically%20the%20name%20of%20the%20table%20is%20in%20quotes%2C%20and%20those%20quotes%20are%20part%20of%20a%20larger%20quoted%20string.%26nbsp%3B%20To%20embed%20quotes%20within%20a%20string%20you%20need%20to%20use%20the%20escape%20sequence%20%5C!%22%20...%20so%20where%20you%20have%26nbsp%3B%3CSPAN%3EImport%20Spec%20Limits(%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3ESpecA.jmp%3C%2FSPAN%3E%3CSPAN%3E%22)%20you%20need%26nbsp%3BImport%20Spec%20Limits(%5C!%22%3CSPAN%20class%3D%22s1%22%3ESpecA.jmp%5C%22%3C%2FSPAN%3E)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
AT
AT
Level V

Spec limits issue

Hi,

I am trying to import spec limits and having some error when I ran the script. Here is the script and error:

 

dt = Current Data Table();

 

 

Eval(

 

Parse(

   "obj = dt << Process Capability(

Process Variables( "|| names ||

" ),

Spec Limits(Import Spec Limits("SpecA.jmp") )   )  ;"

 

    )

);

 

 The names varaible has all columns and worked fine in other script. I appreciate any help.

 

1 ACCEPTED SOLUTION

Accepted Solutions
AT
AT
Level V

Re: Spec limits issue

Thanks Jim. I made it to work.

View solution in original post

16 REPLIES 16
David_Burnham
Super User (Alumni)

Re: Spec limits issue

I've only given the script a quick glance, but one problem I see is that you have quotes contained within your quoted string.  Specifically the name of the table is in quotes, and those quotes are part of a larger quoted string.  To embed quotes within a string you need to use the escape sequence \!" ... so where you have Import Spec Limits("SpecA.jmp") you need Import Spec Limits(\!"SpecA.jmp\")

-Dave
txnelson
Super User

Re: Spec limits issue

There is an Addin that populates limits into a data table, from another JMP limits table.  See

Write Limits to a Data Table from a Limits Table

Jim
cwillden
Super User (Alumni)

Re: Spec limits issue

Aside from using "\[ ]\" to mask double quotes in a string, I also find that the Eval Insert() function is very handy for including the values of variables in a string, like the variable "names".  You can insert the values of variables into a string using the carrot symbol "^".  Here's how you might be able to get this to work:

dt = Current Data Table();

Eval(
	Parse(
		Eval Insert("\[obj = dt << Process Capability(
			Process Variables(  ^names^ ),
			Spec Limits(Import Spec Limits( "$DESKTOP/SpecA.jmp") ) );]\"
		)
    )
);

Of course, your SpecA.jmp may not be on your desktop.  Just make sure the path is correct for that file.

-- Cameron Willden
AT
AT
Level V

Re: Spec limits issue

Hi,

Thanks for all your suggestions. I am still getting an error with the last suggestion.

 

Exception in platform launch in access or evaluation of 'Process Capability' , Process Capability(/*###*/Process Variables(

:A,B,...

 

Any further help is appreciated. Thanks

 

cwillden
Super User (Alumni)

Re: Spec limits issue

Can you post the value of the variable "names"?  It may not like the format for your list of column names.

-- Cameron Willden
AT
AT
Level V

Re: Spec limits issue

Thanks for the reply and feedback. Here is what the definition of "names" is

 

lstNames = dt << Get Column Names( string, Numeric );

 

  names = ":" || lstNames[1];

 

  For( i = 2, i <= N Items( lstNames ), i++,

names = names || ",:" || lstNames[i]

  );

 

I have used "names" in other part of JMP script and no issue. Thanks

AT
AT
Level V

Re: Spec limits issue

Hi,

I found out that in my list of columns for some reason A_B is written as A-B and fixing this will work with the following script.

 

Eval(

Parse(

Eval (

"obj = dt << Capability(

Y(" || names || "),

Spec Limits(Import Spec Limits(\!"SpecA.jmp\!") ) );"

)

    )

);

 

Thank you all for great support. Best

AT
AT
Level V

Re: Spec limits issue

Hi,

How do I  import Spec Limit without doing any capability analysis in a script ? 

 

Thanks

txnelson
Super User

Re: Spec limits issue

My suggestion is that you import the spec limits as column propery, independent from the Distribution Platform.  then when you run the platform, you specify,

     

Distribution( 
     Continuous Distribution( Column( :NPN1 ), 
     Capability Analysis( 0 ) )
);

Examples of all elements availabe to any of the platforms is available in the scripting index

     Help==>Scripting Index

I suggest you familiarize yourself with it.  It is the answer to most of your questions.

An example:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
USL = 70;
LSL = 55;
Eval(
	Substitute(
			Expr(
				:Height << set property( "spec limits", {LSL( __LSL__ ), USL( __USL__ ),Show Limits(1)} )
		
			),
		Expr( __LSL__ ), LSL,
		Expr( __USL__ ), USL
	)
);
Distribution( Continuous Distribution( Column( :height ), Capability Analysis( 0 ) ) );
Jim