[Stackoverflow] [Progress OpenEdge ABL] Add leading zeros to a character variable in progress 4gl

Status
Not open for further replies.
V

Varun Sulabha

Guest
I am trying to import a .csv file to match the records in the database. However, the database records has leading zeros. This is a character field The amount of data is a bit higher side. Here the length of the field in database is x(15).

The problem I am facing is that the .csv file contains data like example AB123456789 wherein the database field has "00000AB123456789" .

I am importing the .csv to a character variable.

Could someone please let me know what should I do to get the prefix zeros using progress query?

Thank you.

Continue reading...
 
Status
Not open for further replies.
Top