Passing null as a parm to a parallel routine
Posted: Thu May 05, 2011 10:36 am
Hello Everyone,
I used the pxEreplace routine code(posted here by DSGuru2b - good code - thx). Works great. I thought I could use this code to remove a string also(by passing nothing as my replacement parm(tick tick - ''). It appears to work when I test the code in a windows c++ ide, but when I run same code in datastage, job abends with a SIGSEGV error.
I could potentially replace the unwanted string with a space and then use the Convert function to get rid of the space. Unfortunately there are other spaces in the string that I want to keep and wouldn't know which to remove.
Any suggestions appreciated. Have a good one.
Thx
I used the pxEreplace routine code(posted here by DSGuru2b - good code - thx). Works great. I thought I could use this code to remove a string also(by passing nothing as my replacement parm(tick tick - ''). It appears to work when I test the code in a windows c++ ide, but when I run same code in datastage, job abends with a SIGSEGV error.
I could potentially replace the unwanted string with a space and then use the Convert function to get rid of the space. Unfortunately there are other spaces in the string that I want to keep and wouldn't know which to remove.
Any suggestions appreciated. Have a good one.
Thx