mgagnon, rgbean,MikeLewis,
Thank you all for the input. Here is what I was doing wrong.
I would bring in a numeric field from a remote view and it would display just fine. The field was N(11,0) and the range was from 1 to 99,999,999,999.
I needed to convert to Char and pad to the left with '0' out to the 11th placeholder. Here was my formula...
RIGHT(REPLICATE('0',11)+ALLTRIM(STR(ndc_num)),11), which of course worked fine on numbers out to the 10th placeholder. What I was missing was in the STR() function where I needed to indicate the length and optionally the decimal places. Well I have been doing this program since 4am and I was getting kind of goofy. I'm sure you've been there.
Here is what the formula needed to look like...
RIGHT(REPLICATE('0',11)+ALLTRIM(STR(ndc_num,11,0)),11).
Live and learn, right?
I appreciate the three of you offering your assistance.
B