Page 1 of 1

Convert Function

Posted: Mon Oct 05, 2009 6:45 am
by sankarse
Hi

I have a Convert Function used in my existing Job like below

Convert(char(10), ' ',DSLink2.FName)

What is the Meaning of this ..

I tried some samples with Fixed length recs . But could n't find any clues.

Appreciate the help .

View user's profile

Posted: Mon Oct 05, 2009 6:48 am
by ArndW
The Convert() and Char() functions are documented in the BASIC Programmer's Guide. This code removes all the LF (0x10) characters from a string and replaces them with nothing. In the case of fixed length fields the character is removed and a space padded to the end of the string.

Posted: Mon Oct 05, 2009 7:05 am
by sankarse
Thanks a lot ArndW.. Clarified . :-)

Posted: Mon Oct 05, 2009 11:53 pm
by ray.wurlod
However, DataStage BASIC functions are not available in DataStage TX maps (the forum in which you posted) or in DataStage parallel jobs (your alleged job type). Please be more careful about posting in the correct forum.