cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
qspringleaf
Level III

New Create Column with filling fixed value

Kindly help to suggest how to New Create Column with filling fixed value, thanks a lot. table I only have one column called "name" Table II new create two columns and fill in fixed value.

qspringleaf_0-1595944106757.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: New Create Column with filling fixed value

names default to here(1);
dt=current data table();
dt << new column( "c1", character, set each value("aaaaa"));

The above is the easiest way to fill a column

Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: New Create Column with filling fixed value

Create the new column.
Type in the value you want into the first row
Right click on the cell and select Fill==>To End of Table
Jim
qspringleaf
Level III

Re: New Create Column with filling fixed value

how to use script to auto create an column and fill in, this table only list a simple one, but some times I need create >10 column with fixed value, thanks a lot.
txnelson
Super User

Re: New Create Column with filling fixed value

names default to here(1);
dt=current data table();
dt << new column( "c1", character, set each value("aaaaa"));

The above is the easiest way to fill a column

Jim
qspringleaf
Level III

Re: New Create Column with filling fixed value

so thankful, it works well.