I have seen in some programs at my new job code with REPLACE ALL on a FOR condition. I thought it was either ALL or conditional but not both ways, they seem to work both ways. We did have an issue where the program was not doing the conditional replace, say every 1000 times it was executed, but I'm not sure if that was related.
ex:
I would use the folowing:
REPLACE Input.zip WITH alltrim(zip)+"-"+alltrim(plus4) FOR !empty(plus4)
the code I see here is:
REPLACE ALL Input.zip WITH alltrim(zip)+"-"+alltrim(plus4) FOR !empty(plus4)
please advise.
Thanks in advance
-Mike
ex:
I would use the folowing:
REPLACE Input.zip WITH alltrim(zip)+"-"+alltrim(plus4) FOR !empty(plus4)
the code I see here is:
REPLACE ALL Input.zip WITH alltrim(zip)+"-"+alltrim(plus4) FOR !empty(plus4)
please advise.
Thanks in advance
-Mike