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
bhagbom
Level I

Using JSL to add column where value for all rows is fixed character string

I have a script that opens a .txt file and is adding a column that categorizes that set of data with by asking user to enter a string to categorize it. The file will be later joined with other files. I cannot seem to pass the string into all rows for the new column.

Once file is open:

New Window ("New Window",
< categorytextbox = Text Edit Box ( "Enter category here" ),
Button Box ( "OK" ),
);

::category = category << get text;

new column(
"Category",
Character,
Nominal,
Formula (::category),
);

Any help is appreciated. I've tried using Set Values function instead of formula with no success.
1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User

Re: Using JSL to add column where value for all rows is fixed character string

Try using different variable names for the value of category and the column. I've run into trouble in the past when my variable had the same name as one of my columns.

View solution in original post

2 REPLIES 2
pmroz
Super User

Re: Using JSL to add column where value for all rows is fixed character string

Try using different variable names for the value of category and the column. I've run into trouble in the past when my variable had the same name as one of my columns.
bhagbom
Level I

Re: Using JSL to add column where value for all rows is fixed character string

Thanks PMroz! It appears that solved the issue!

Recommended Articles