cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Sebastienlg
Level IV

JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"

Hello everyone, 

I got this message error:

Name not resolve : prod_n when accessing or evaluating of "prod_n"

...

 

Sebastienlg_0-1679925190998.png

Here is my program:

If( prod_n == 3,

Include( "Utils/utils_data.jsl" );
Include( "Utils/utils_menu.jsl" );

// Table des limites
limite_table = load_limit_table(D);

// Table principale
main_table = load_main_table(D);

Current Data Table( RAW_DATA_TABLE );
New Window( "Test", 
	V List Box(
		coltstst = RAW_DATA_TABLE << 
		Column Switcher(:Name("Y"),list),
		graph = RAW_DATA_TABLE << 
				Control Chart Builder(
					Size( 534, 450 ),
					Show Two Shewhart Charts( 0 ),
					Show Control Panel( 0 ),			
					Sort by Row Order( 1 ),
					Show Limit Summaries( 0 ),
					Variables( Y( :"Y" ),Subgroup( :X ), Phase(:"Version")),	
					Get Limits(LIMIT_TABLE),
				),
		N = N Items( phaseLevels );
		// On met en forme les lignes
		For( i = 1, i <= N Items( phaseLevels ), i++,
			graph << SendToReport(
					Dispatch(
						{},
						"Control Chart Builder",
						OutlineBox,
						{Set Title( "Représentation graphique" )},
						FrameBox( 2 ),
						{
						DispatchSeg( Line Seg( Eval(3*i+N-2) ),		{Line Color( "Medium Light Green" ),Line Style( "Dotted" ), Line Width( 1.5 )} ),
						DispatchSeg( Line Seg( Eval(3*i+1+N-2) ),	{Line Color( "Medium Light Orange" ), Line Style( "Dotted" ), Line Width( 2.5 )}),
						DispatchSeg( Line Seg( Eval(3*i+2+N-2) ),	{Line Color( "Medium Light Red" ), Line Style( "Dotted" ), Line Width( 2.5 )})
						}
					)
				)
			)
		);
	);
	
coltstst << Link Platform( table );
coltstst << Link Platform( Cadreall );
coltstst << Link Platform( graph );

ncols = n items (coltstst << get list);

for each ({i}, 1::ncols,
	cadreall << journal;
	table << journal;
	graph << Journal;
	coltstst << next;
);
RAW_DATA_TABLE <<journal;
// add the header and page breaks to the journal
w = Current Journal();
listOfReports = w << child;
nReports = N Items( listOfReports );

w = Current Journal(R5);
w << Set page setup( margins(0.1, 0.75, 0.1, 0.1 ), scale( 0.8 ), portrait( 0 ), paper size( "Letter" ) );
w << save pdf( "P:\XX\data analysis.pdf" );
w << close window;

);



If( prod_n == 2,

Include( "Utils/utils_data.jsl" );
Include( "Utils/utils_menu.jsl" );

);
...

The program works well, however I always get this message.

Do you have any suggestion to help me?

 

Sebastien

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"

The reason for this error is that at the time of the execution of the specific line of code, prod_n does not exist in memory.  You may want to add before the If() clause

If( isEmpty( prod_n ), prod_n = .);
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"

The reason for this error is that at the time of the execution of the specific line of code, prod_n does not exist in memory.  You may want to add before the If() clause

If( isEmpty( prod_n ), prod_n = .);
Jim
Sebastienlg
Level IV

Re: JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"

Great it works! Thank you very much!

Recommended Articles