×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Count of Total Number of Rows

Count of Total Number of Rows

Count of Total Number of Rows

(OP)
I am a user just returning to WebFOCUS after being away for 3 years, so please bear with me.

I need help with getting a number of the total rows that are returned in a report.

This is my current method:

TABLE FILE EMPLOYEE
PRINT LAST_NAME FIRST_NAME HIRE_DATE
COMPUTE COUNTER/I6=1;
BY DEPARTMENT
ON TABLE COLUMN-TOTAL COUNTER

END

The problem with this method is I have a column at the end of my report with nothing but 1's in it and then a total at the bottom of the report.  What I'd like to do is just have a row that says TOTAL = N and not have to create another column for that.  See below:

FINANCE
BROWN   JOHN     1/1/2002
JONES   MARION   2/1/1989
MOON    MARY     5/9/1994
SMITH   HOWARD   10/5/1972

MIS
ALLEN   BARRY    2/28/1995
FOWLER  IAN      11/11/1999
SANDY   KATHY    7/30/1995

TOTAL = 7


Any ideas?

Thanks!



Doug

RE: Count of Total Number of Rows

Try

TABLE FILE EMPLOYEE
PRINT LAST_NAME FIRST_NAME HIRE_DATE
COMPUTE COUNTER/I6=1; NOPRINT
BY DEPARTMENT
ON TABLE SUBFOOT
"TOTAL <ST.COUNTER"
END

RE: Count of Total Number of Rows

(OP)
Perfect!  Thanks so much!


Doug

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close