Is that value received as a long integer or as a string of characters?
How do you want to store it? As a numbr or as a string of characters?
These seem like obvious questions, but it may affect the amount of effort you need to put in later when you need to use the stored value.
numberOfValues represents the number of unique 'values' you want to store - each with it's own pigeonhole.
If it's a NUMBER
optional...
{unsigned} long myValue[numberOfValues];
-or-
long myValue[numberOfValues];
myValue[0] = 98889;
myValue[1] = 12;
myValue[2] = 23456;
: :
myValue[numberOfValues-1] = 876543;
If it's a STRING of characters ( 0,0,0,9,8,8,8,9 )
It most likely needs to be terminated with NUL (0)
NOTE the 'single quotes' which indicate these are literal 'characters'
char myChars[numberOfValues+1]; // leave room for a NUL
myChars[0] = '0';
myChars[1] = '0';
myChars[2] = '0';
myChars[3] = '9';
myChars[4] = '8;
: : etc
myChars[next character] = 0; // the NUL terminator after the last
-- there are better ways to stuff an array if the characters are being received, but this demonstrates the concept...
-or-
NOTE the "double quotes" indicate these are "string literals"
char myChars[] = {"00098889",0};