Is the text marked in red above your way of saying: "I'm sorry I gave you bad information about my input file format; the field separator is a comma instead of a vertical bar. Can you please help me fix the code you gave me because I made a mistake?"
If that is what you intended to say, you could try something like this instead:
awk '
{ gsub(/\r/, "")
}
NR==FNR{A[$1]
next
}
{ for(i=1; i<=NF-5; i++)
if($i in A)
print $i, $(i+1), $(i+4), $(i+5)
}' fileA FS=',' OFS=',' fileB > FileC
Note that the call to gsub() takes care of the carriage return removal from both of your input files so you no longer need to invoke dos2unix twice.
Thank Scrutinizer. It was his code (with very slight modifications to change to your new field separators and to get rid of the need for the two calls to dos2unix ) that solved your problem!