×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

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!

*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

"Too many arguments" error message

"Too many arguments" error message

"Too many arguments" error message

(OP)
I created a decode statment in a derived field with approximately 443 arguments.  I received a statment saying that there's too many arguments.  Is there a way around this?

RE: "Too many arguments" error message

I have never maxed out a decode and I have done some big ones.  Try using a case statment instead of a decode.

http://CharlesCook.com
Specializing in ReportSmith Training and Consulting

RE: "Too many arguments" error message

Too Many Arguments usually means you have an extra right parenthesis.

I have maxed out a derived field.  The max has to do with the number of characters.  When I shortened my table aliases, field aliases and report variables, I was able to squeek more into the derived field.

Anyway, "Too Many Arguments" usually has to do with an extra right parenthesis.

RS Geek
rsgeek@wi.rr.com

RE: "Too many arguments" error message

(OP)
I used a decode statement, so I only used 2 left parentheses and 2 right parentheses.  I confirmed this with a find and replace search.

You're right, however, about there being too many characters.  I concatenated several fields in order to perform the function I needed to do.  There's no way for me to shorten the concatenations, since each field plays a part in determining what cost number an employee should have.  The cost numbers themselves are quite lengthy (13 characters for each cost number).  I guess I need to try a case statement as Charles indicated, but that would take me a long time to analyze and create.

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