Hello and good evening everybody.
Hopefully there is no limit to threads per month, but I do have another question on an issue I cannot resolve by myself.
Actually, I thought I had already seen a similar post and probably discussed this myself, but I was not able to find something fitting. But please feel free to direct me in case I just missed something.
The issue illustrated:
We now get the USUBJID in a project, e.g. UK_0111. The client now requests, that the subject ID is extracted from this and delivered as a 4-digit term.
In my example, the ID has to be "0111" to allow the import to the data base.
Using a custom transformation with >right(USUBJID, 4)< in this specific case does not work, as the outcome/new column now contains "111" instead of "0111" (defined as a number and not as a text).
I then tried the combination >format(right(XXX), 'ABC')< or even >format(right(XXX), '00000000')< remembering the way for such an issue in Excel (yes, we had a workaround for this issue back in 5.3, but did not need it for Phoenix until now).
But the latter didn't work at all and the first gave back ABC in each cell, which I did not expect as 'ABC' is literally found in the manual to define a text entry.
Long story short: I am lost. Is there a way to gain a leading zero?
Best regards,
Steven
Edited by Simon Davis, 28 October 2014 - 06:15 AM.
restore formatting lost after migration