Retrieves a label to find at which record the target wavefunction is stored in file if the record is not found the routine indicates and error.