Hi,
For various different reasons I won't go into here (mainly to do with appending/merging data sets), we need to convert a variable from numeric to string, however whenever we try we get the "cannot be converted reversibly; no generate" error when using -tostring-. We do have a large number with many decimal points (see example below), however specifying format does not seem to fix this. We have a rather large data set (~17.2M observations) - not sure if this factors in anywhere. Anyone have any suggestions that may help?
I'm running MP 15.1 on Windows Server 2016 Standard
Syntax:
Example data:
(apologies for not using dataex - we're having space issues at the moment resulting in I/O errors)
Any help you can provide would be much appreciated.
Cheers,
Marissa
For various different reasons I won't go into here (mainly to do with appending/merging data sets), we need to convert a variable from numeric to string, however whenever we try we get the "cannot be converted reversibly; no generate" error when using -tostring-. We do have a large number with many decimal points (see example below), however specifying format does not seem to fix this. We have a rather large data set (~17.2M observations) - not sure if this factors in anywhere. Anyone have any suggestions that may help?
I'm running MP 15.1 on Windows Server 2016 Standard
Syntax:
Code:
tostring VisitsOid, generate(VisitsOid2) format(%13.8g)
VisitsOid | |
1. | 2623.14166461 |
2. | 2623.14166462 |
3. | 2623.14166463 |
4. | 2623.14166464 |
5. | 2623.14166467 |
6. | 2623.14166468 |
7. | 2623.14166469 |
8. | 2623.14166473 |
9. | 2623.14166474 |
10. | 2623.14166475 |
11. | 2623.14166476 |
12. | 2623.14166477 |
13. | 2623.14166481 |
14. | 2623.14166482 |
15. | 2623.14166483 |
16. | 2623.14166484 |
17. | 2623.14166485 |
18. | 2623.14166486 |
19. | 2623.14166487 |
20. | 2623.14166488 |
Any help you can provide would be much appreciated.
Cheers,
Marissa
Comment