Is there any way to copy a RAW to a file and back again? I'm working on an encryption project and need to save the hashed data, then retrieve it and decrypt the data into plaintext.
Thanks in advance for any help or advice.
-Dan
All Replies
Posted by Peter Judge on 05-Feb-2019 16:28
Put the RAW data into a MEMPTR variable; COPY-LOB that wherever.
And you can do the reverse on read. The RAW variable is automatically cleaned up, but you’ll need to manually SET-SIZE() on the MEMPTR to prevent memory leaks.