Preserving information from a LD

I had one of those low LDs where I felt it was important to remember a certain piece of information from the dream into waking life. This has happened several times. Sometimes, especially if it has been a long or lines from a poem, I have even woken myself up deliberately so I could remember it easier. This time, I repeated the code over and over again loudly, and also wrote it down several times to try to make it “stick to my fingers”. It worked, because I could feel the dream fading, and just let it happen after going back to it a couple of times.

What do you do, in the dream, to remember things clearly after waking?

i usually keep repeating the words till i wake up or deliberately wake up. but the thing that usually happens to me is that, while in the dream, some text or words seem to be extremely important and i memorise them. and on waking up, i realise its just some jargon i made up in sleep.