How to store data from serial to PROGMEM?

The OP's example shows a 12 byte character array, which is fine with EEPROMWriteAnything

char inData2[12]; // Allocate some space for the string