function genFullRecNoWaveform(fid_prefix)

fpath = ['C:\Users\USER\Documents\mingfaifong\' fid_prefix '\SSfiles_alt\'];
spath = ['C:\Users\USER\Documents\mingfaifong\' fid_prefix '\'];

fpath_info = dir(fpath);      %get info about contents of directory
isfile = ~[fpath_info.isdir]; %get index for files only
fidlist = {fpath_info(isfile).name}; %create list of files

unit = [];
time = [];
channel = [];
clean = [];


for i = 1:length(fidlist)

    fid = fidlist{i};
    load([fpath fid],'-mat');
    
    if isempty(SS.unit)
        unit = [unit; zeros(size(SS.time))];
    elseif isempty(unit)
        newunit = SS.unit;
        unit = [unit; newunit];        
    else
        newunit = SS.unit + max(unit);
        newunit(newunit==max(unit)) = 0;
        unit = [unit; newunit];
    end
    
    time = [time; SS.time];
    channel = [channel; SS.channel];
    clean = [clean; SS.clean];
    
end

recunit = SS.recunit;
badchannel = SS.badchannel;
methodlog = SS.methodlog;
save([spath fid_prefix '_FullRecNoWaveform'],'unit','time','channel','clean');


load('empty.SS','-mat');
SS.name = [fid_prefix '_FullRecNoWaveform'];
SS.clean = clean;
SS.time = time;
SS.channel = channel;
SS.unit = unit;
SS.fs = 25000;
SS.recunit = recunit;
SS.badchannel = badchannel;
SS.methodlog = methodlog;
%SS.badunit = 0;
SS.Save([spath SS.name '.SS']);