Support 805.461.7300
Sales
NEW SITE. Our Technology. Your Success.

Convert Ounces to Pounds of piecelb

In manifest mailings, the piecelb and piecethick fields have a specific way of formatting. If your weight field is in ounces, this command will convert the weight to pounds and add the leading zeros before the implied deciminal

Ounces: 40.81200

piecelb: 0255075

*This command makes an weight field and converts the piecelb field from ounces to pounds, then adds the implied leading zeros.
*piecelb: 6 characters wide | The weight is a fraction of a pound with leading zeros (ex. 007882 = .7882 lbs) 

*Map ounces (Numeric 10, 5 decimals) to piece weight. Map thickness to piece thickness
**************************************************************

*Add pounds field and convert imported ounces field to pounds
ON ERROR com_Mesg=MESSAGE()
SET SAFETY OFF
ALTER TABLE ALIAS() ADD COLUMN pounds N(10,5)
Replace all pounds with ounces/16
**************************************************************

ALTER TABLE ALIAS() ALTER COLUMN pounds C(10)
*Remove leading spaces from pounds field
Replace all pounds with ALLT(pounds)
**************************************************************

*Add piecelb field
ALTER TABLE ALIAS() ADD COLUMN piecelb C(10)
Replace all piecelb with "0"+LEFT(pounds,1)+SUBSTR(pounds,3)
**************************************************************

*piecethick: 6 characters wide | Implied decimal is after second character (ex. 025000 = 2.5" thick)
Replace all piecethick with "0"+LEFT(ALLT(piecethick),1)+SUBSTR(piecethick,3)
Replace all piecethick with PADR(ALLT(piecethick),6,"0")
**************************************************************

« Back to Commands

I wanted to take a minute to write accolades for your employee Eric Lambeth. I have been calling on Eric for training and help in the Accuzip software since May and I want you to know that from a client standpoint, he is second to none! Eric has gone way above and beyond in helping me learn and navigate your software as well as helping us through some crazy situations we have encountered. It is clearly evident that he knows this software inside and out. It is also evident that Eric loves the customer and is willing to do whatever it takes to help – he has even answered emails and called me on the weekend to help through some stuff I was unsure of! I cannot express enough how wonderful Eric has been for our organization. I will tell you that I came to this organization with a background in BCC software with plans to transition to BCC software. Eric’s knowledge, guidance, training, and willingness to help at all hours of the day/week has sold me on Accuzip! Your software solution is more user friendly and the support staff far exceeds BCC! I am also looking forward to investigating your other software solutions.
S.M., Elmhurst, IL