cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • 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.

Discussions

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

How do I name data table after a cell value

Hello,

 

I have a simple script that combines relevant columns from two data sets, matching by data.

For each batch of data, the column Date contains the same value in every row.

 

My script includes:

              Output Table( "Data 1 and 2"))

 

How would I append a value from the Date column in front of the string, so that the table becomes, for example, "23.09.20 Data 1 and 2".

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do I name data table after a cell value

Hi,

 

One way to achieve what you're after may be to first capture the value of the date from one of the tables in a separate variable:

 

dt=data table ("Name of First Table");
date=Format(Column(dt,"Name of Date Column")[1],"dd.mm.yyy");

After the join, you can rename the table using the "set name" argument:

joined_table=dt<<join(...);
joined_table<<set name(date || " Date 1 and 2");

Please try that and let us know if it works for you.

View solution in original post

2 REPLIES 2

Re: How do I name data table after a cell value

Hi,

 

One way to achieve what you're after may be to first capture the value of the date from one of the tables in a separate variable:

 

dt=data table ("Name of First Table");
date=Format(Column(dt,"Name of Date Column")[1],"dd.mm.yyy");

After the join, you can rename the table using the "set name" argument:

joined_table=dt<<join(...);
joined_table<<set name(date || " Date 1 and 2");

Please try that and let us know if it works for you.

txnelson
Super User

Re: How do I name data table after a cell value

Here is an example of how to do this

names default to here(1);
dt = open("$SAMPLE_DATA/big class.jmp");

dt << set name("Data 1 and 2");

// Create a Date column;()
dt << new column("Date", formula(today()),format("m/d/y"));

// Rename the data table
dt << set name(char(month(:Date[1])) || "." || char(day(:date[1])) ||
     "." || char(year(:Date[1])) || " " || char(dt << get name) );
Jim

Recommended Articles