RTC doesn't work with RamDisk

I want to add date & time to the SD card file. It was working OK before changing to RamDisk.

#include <SPI.h>
#include <SdFat.h>
#include <SdFatUtil.h>
#include <M23LCV1024.h>
#include <RamDisk.h>
#include <RTClib.h>
#include <Wire.h>
.
.
.
RTC_DS1307 RTC;  // define the Real Time Clock object 
.
.
.

void setupRAM(){ 
  ram.begin(RAM_CS_PIN);
  Serial.print(F("FreeRam: "));
  Serial.println(FreeRam());
  if (!sd.begin(SD_CS_PIN)) sd.errorHalt();
  // Initialize RAM 
  ram.begin(RAM_CS_PIN);


    if (!vol.format(&ram, 256, 4, 1)) {
      Serial.println(F("format fail"));
      return;
    }
  if (!vol.init(&ram)) {
    Serial.println(F("init fail"));
    return;
  }
  Wire.begin();                            // add time stamp
  if (!RTC.begin()) {
    Serial.println("RTC failed");
    while(1);
  }
 
  SdFile::dateTimeCallback(dateTime);             // set date time callback function
  sprintf(FILENAME, "run_%d.CSV", fileNum);
  vol.remove(FILENAME);                           //format
   if (!ramFile.open(FILENAME, O_CREAT | O_RDWR)) {
    Serial.println(F("open fail"));
    return;
  }
  Serial.println(F("Ready to write ramFile"));
}

Errors:

ADXL345_To_RAM.ino: In function 'void setupRAM()':
ADXL345_To_RAM:125: error: 'dateTime' was not declared in this scope

BTW, the speed increase is impressive.

ADXL345_To_RAM:125: error: 'dateTime' was not declared in this scope

So, what scope do you think that you have defined it in? I don't see a function or variable called dateTime.

Thanks Paul. I failed to include the function. Time stamp is now working.
Gerry