Hi Everyone,
I need your expertise again.
Here is the problem, Column displays blank or NULL as data after update. the raw data comes from a fixed width formatted text file. the current code for this by the previous programmer is invoking the trim function below:
ls_col054 = trim(mid(ls_filestr,999,11)) //Salesman ID
This works okay most of the time in all columns. I was asked to investigate the cause of the null data, because it actually has data. I found out that the data on the text contains a different character, it shows up as a space or blank when you look at it normally. But when you hit the backspace key, it will backspace 2 times. So I am thinking it might be a special character a normal text editor does not see or even Powerbuilder. I have used Ultra Edit, this has a feature to convert the current text file to switch to HEX mode. After toggling to HEX mode it showed up the data with a "." at the beginning.
Are there any built-in PB function that can fix this and have Powerbuilder save the data as it should be?
Any help will be greatly appreciated.
thanks in advance,
furei
I need your expertise again.
Here is the problem, Column displays blank or NULL as data after update. the raw data comes from a fixed width formatted text file. the current code for this by the previous programmer is invoking the trim function below:
ls_col054 = trim(mid(ls_filestr,999,11)) //Salesman ID
This works okay most of the time in all columns. I was asked to investigate the cause of the null data, because it actually has data. I found out that the data on the text contains a different character, it shows up as a space or blank when you look at it normally. But when you hit the backspace key, it will backspace 2 times. So I am thinking it might be a special character a normal text editor does not see or even Powerbuilder. I have used Ultra Edit, this has a feature to convert the current text file to switch to HEX mode. After toggling to HEX mode it showed up the data with a "." at the beginning.
Are there any built-in PB function that can fix this and have Powerbuilder save the data as it should be?
Any help will be greatly appreciated.
thanks in advance,
furei