Hi Rajesh,
Using PST Basic for a column map procedure no longer functions with Optim on 64 bit systems. That is why you get the error. If you want to write a column map procedure it will have to be in LUA and you can not write LUA using the Optim Classic column map procedure editor. As Jimmy pointed out, that needs to be done in Optim Designer.
There are no column map functions you can use in the source column (expanded or otherwise) for a general if/else operation nor is there a straight up trim operation. If you are looking to trim the data prior to transforming it, then you could use TRANS COL or pro=aff and set a space as one of the trim values, but that would trim all spaces and then perform a transformation of the data.
Regards,
Tammy
------------------------------
Tammy Ziegler
------------------------------