IBM Support

My LPAD function doesn't appear to work

Troubleshooting


Problem

I am trying to run an LPAD function in SPSS for Windows. My syntax is as follows: COMPUTE var=lpad(var,'0'). EXECUTE. I get no error messages, but the command doesn't appear to function correctly. Why is this the case?

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Not Applicable","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

19035

Document Information

Modified date:
16 April 2020

UID

swg21476425