cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
TheWho80
Level I

Error on "Update Properties ( 1 )" using JMP 15 - script is coded in JMP16

HI, 

Im new to JMP and do have a script was coded in JMP 16 but having error on JMP15 on this line during recode.

is this expected? can this be comment out when running on JMP15?

 

Update Properties( 1 ),

 

 

Thanks alot.

 

1 ACCEPTED SOLUTION

Accepted Solutions
David_Burnham
Super User (Alumni)

Re: Error on "Update Properties ( 1 )" using JMP 15 - script is coded in JMP16

// sample data

dt = Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );
col = New Column( :Gender );

// get JMP version as a number

jmpVersionNumber = num(words(JMPVersion(),".")[1]);

// don't use  'update properties' before v16

if (jmpVersionNumber>=16,

	dt << Recode Column(
		:Gender,
		{if(
			_rcNow == 1, 0,
			1,
		)},
		Update Properties( 1 ),
		Target Column( col )
	)
	
, // else

	dt << Recode Column(
		:Gender,
		{if(
			_rcNow == 1, 0,
			1,
		)},
		Target Column( col )
	)
	
);
-Dave

View solution in original post

2 REPLIES 2
David_Burnham
Super User (Alumni)

Re: Error on "Update Properties ( 1 )" using JMP 15 - script is coded in JMP16

// sample data

dt = Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );
col = New Column( :Gender );

// get JMP version as a number

jmpVersionNumber = num(words(JMPVersion(),".")[1]);

// don't use  'update properties' before v16

if (jmpVersionNumber>=16,

	dt << Recode Column(
		:Gender,
		{if(
			_rcNow == 1, 0,
			1,
		)},
		Update Properties( 1 ),
		Target Column( col )
	)
	
, // else

	dt << Recode Column(
		:Gender,
		{if(
			_rcNow == 1, 0,
			1,
		)},
		Target Column( col )
	)
	
);
-Dave
TheWho80
Level I

Re: Error on "Update Properties ( 1 )" using JMP 15 - script is coded in JMP16

Thanks Dave, looks like "Update Properties" is not a requirement in older JMP version