RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
Mats Carlid wrote: > We started in Prine information in the early 80's and > used named common from day 1. > > Unnamed common was deemed to be too dangerous if/when > coexisting with another > application or general subroutines in the same > environment and thus _never_ used it - I tend to > forget that it exists. Named common is a sort of double-edged sword and there are times when you DON'T want to use it. It's not entirely bad or good. In case anyone gets the bright idea to just put \label\ in front of all of their common, that's a very bad idea. Because named common survived the entire login session you may find yourself ending a program, coming into something completely different, but using old data. Or you may have an application login (kiosk?) where different people share the process but you certainly don't want them to carry user data around. As an example, for web apps I specifically remove the password from user records that get passed around the app, just in case some other code later exposes an old user, I don't want to open a password leak. Yes, for those familiar with this, for a multi-user app it might not be a good idea to carry any session state data in named common. That's the point, there are decisions to be made based on how the app is being used, and the only absolute might be to never store credit card numbers in named common. As with anything, the tools need to be used carefully and judiciously. Tony --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
Mark Johnson wrote: On another note, I've yet to come across any apps that use the NAMED COMMON concept. Is that a recent addition to the MV world or just not that popular. We started in Prine information in the early 80's and used named common from day 1. Unnamed common was deemed to be too dangerous if/when coexisting with another application or general subroutines in the same environment and thus _never_ used it - I tend to forget that it exists. Perhaps my fortran background with a similar common concept played a role... ;-) -- mats --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
My 1 cent on parameter lists. As I support many legacy environments, I see parameter lists every hour of every day. They look visibly cluttered with the variable names containing periods and being separated by commas. Some have a few parameters and one app in particular has around 30. Perhaps they weren't aware of COMMONs or INCLUDES as 15 of the 30 are like AM, VM, BELL, CLEAR.END.OF.SCREEN etc. I've solved some situations like these by replacing the commas with a comma-space to add a visual separator. Makes reading the lists much easier. On another note, I've yet to come across any apps that use the NAMED COMMON concept. Is that a recent addition to the MV world or just not that popular. Thanks in advance. Mark Johnson - Original Message - From: "Perry Taylor" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 30, 2005 1:30 PM Subject: RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine > Just a thought... Make sure you don't have a missing comma. > > -Original Message- > From: Rick Ward [mailto:[EMAIL PROTECTED] > Sent: Tue Aug 30 12:23:10 2005 > To: u2-users@listserver.u2ug.org > Subject: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments > supplied to the subroutine > > Does anyone have any idea why one would encounter > "ErrorCode: 30106, Wrong number of arguments supplied > to the subroutine" when the correct number of > arguments are being supplied to the subroutine? > > Thank you, > > Rick > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ > > CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for > the sole use of the intended recipient(s) and may contain confidential and > privileged information. Any unauthorized review, use, disclosure or > distribution is prohibited. ZirMed, Inc. has strict policies regarding the > content of e-mail communications, specifically Protected Health Information, > any communications containing such material will be returned to the > originating party with such advisement noted. If you are not the intended > recipient, please contact the sender by reply e-mail and destroy all copies of > the original message. > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
Thank you to all who responded to my quest for help with the UniSubroutine/arguments issue. The cause of my problem was my *extremely* limited knowledge of pick basic. I had not declared my subroutine properly on its first line (in fact I had not declared it at all). So, as Wendy pointed out, UOJ knew what it was talking about. Thanks again! Rick Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
If your subroutine is subr(result,var1,var2) then from UniObjects you would have to call it with 3 variables. If you are calling another subroutine within the subroutine you initially called and that has the wrong number of arguments then it is possible that it will fail with the same error message. Trying calling the subroutine from the tcl prompt writing a quick test program to call the subroutine and you will be able to see any issues. Regards David Jordan --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
From: "Rick Ward" <[EMAIL PROTECTED]> Does anyone have any idea why one would encounter "ErrorCode: 30106, Wrong number of arguments supplied to the subroutine" Because the wrong number of arguments is being supplied to the subroutine? ;) when the correct number of arguments are being supplied to the subroutine? Sorry... my experience has been that UOJ is usually right about such things, and without seeing both your Java code and the subroutine code, it's impossible to tell what's going on. If it's *really* happening, it must be a bug and should be submitted to IBM. -- Wendy Smoak --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
Check to see where the subroutine is actually cataloged from. You may be working with the wrong subroutine source code. Ross -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Ward Sent: Tuesday, August 30, 2005 8:32 AM To: u2-users@listserver.u2ug.org Subject: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine Does anyone have any idea why one would encounter "ErrorCode: 30106, Wrong number of arguments supplied to the subroutine" when the correct number of arguments are being supplied to the subroutine? Thank you, Rick __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
> Does anyone have any idea why one would encounter > "ErrorCode: 30106, Wrong number of arguments supplied > to the subroutine" when the correct number of > arguments are being supplied to the subroutine? > > Thank you, > > Rick Hi Rick. Is this a call to a subroutine that has already assumed that the first argument is the returned value? Try sending one less parameter to see whether that makes the difference. Col. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine
Just a thought... Make sure you don't have a missing comma. -Original Message- From: Rick Ward [mailto:[EMAIL PROTECTED] Sent: Tue Aug 30 12:23:10 2005 To: u2-users@listserver.u2ug.org Subject:[U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine Does anyone have any idea why one would encounter "ErrorCode: 30106, Wrong number of arguments supplied to the subroutine" when the correct number of arguments are being supplied to the subroutine? Thank you, Rick __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. ZirMed, Inc. has strict policies regarding the content of e-mail communications, specifically Protected Health Information, any communications containing such material will be returned to the originating party with such advisement noted. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/