ca.portal.admin

Programming Question/ Bug?

Discussion created by ca.portal.admin on Aug 21, 2007
One of my programmers asked me this question. I am not sure why this
happens.

Field P-INVOICE-NO is defined as Pic X(14). Code in the ADS program
checks if the field contains zeros using any of the following lines of code:

IF P-INVOICE-NO OF IAVMRPPV = 0
IF P-INVOICE-NO OF IAVMRPPV = ZEROS
IF P-INVOICE-NO OF IAVMRPPV = ZEROES

If the field is all zeroes, it executes an error message, as it
should. But if the field is changed to 0A (or any 0 and alpha combo)
and enter is pressed - the screen does not recognize that the field
now contains something other than 0, or zeros, or zeroes and still
produces the error message. This is happening in programs that are
recently changed. We are running IDMS V16.0 Service Pack 4.

I have searched Support Connect and have found no mention of such a
problem. Has anyone heard of or experienced this? How did you fix
it? The programmer got around this by checking for 0 in every
position of the field, but the code above is used in several of our
programs and has us concerned.

Thanks for your help.
Petra
"
IDMS Public Discussion Forum
IDMS-L@LISTSERV.IUASSN.COM
SMTP
IDMS-L@LISTSERV.IUASSN.COM
IDMS-L@LISTSERV.IUASSN.COM
SMTP








Normal

Normal
Re: Programming Question/ Bug?
"I don't have any documentation here and it has been a while since I would have run into this. .

But I do recall having seen similar issues.

Isn't there some kind of option - either on the map or in the ADS compiler options - that gives you the ""ability"" to control when data get ""refreshed"" or passed back to the program?? (So if the data started out as 0 on the screen, the change did not register within the code.)

(I think this?might be the MDT that Luis mentioned.)

Outcomes