Save receiving SMS in a valiable(Arduino uno and GSM Sim900a mini)

Anyone know how to save received sms ?

Here's the code in receiving sms:


What I want to do is when the message is received I want to store it in a variable so that I can pass it in other application software like

I hope someone can answer.

Here's the code in receiving sms:

No, that is NOT the code that receives an SMS. That code sends a command to the (stupidly named) mySerial instance, possibly telling it that you want it to return an SMS.

What you do with the output from the device is what actually receives the SMS.