cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

How to count the number of elements in a column / find the length or size of a column in JSL

I somehow stumbled upon 

N Items()

in the Scripting Index by sheer luck, no telling how many are less fortunate than me, but this simple task doesn't work for a column that is, I don't know what the right word is, accessed? by 

col = Column(dt, "Col Name");

it throws

N Items() argument must be a list

and proceeds no further.

Once again, a slew of Google searches with various substitute words only gives very complicated computer scripting problems as hits, not what I am looking for.

1 ACCEPTED SOLUTION

Accepted Solutions
mostarr
Level IV

Re: How to count the number of elements in a column / find the length or size of a column in JSL

Ah, but simply getting the N Rows(); of the whole table instead of the individual column does wonders. Thanks.

View solution in original post

2 REPLIES 2
mostarr
Level IV

Re: How to count the number of elements in a column / find the length or size of a column in JSL

N Rows();

doesn't work either, for a column instantiated or accessed the way I was told to do so in a previous post, using Col();.

mostarr
Level IV

Re: How to count the number of elements in a column / find the length or size of a column in JSL

Ah, but simply getting the N Rows(); of the whole table instead of the individual column does wonders. Thanks.

Recommended Articles