Thanks Ashutosh for the reply. I tried ("EMIT_ALL_SITES") that also but again I am getting the same error.
I just read Gatk Vcf File To Consensus Sequence Use Vcfutils.Pl, the same thing has been asked earlier. There some one mentioned that I need to include the FQ value which is "I find the FQ==QUAL-3". Still I don't find this thing in manual of samtools or GATK.
Please provide the whole command line you used. Are you sure you are going to FASTQ? It would make more sense if you are trying to generate FASTA.
Thanks for your reply . I used this command in samtools
Actually I want to generate the consensus fasta file only. How I can do that?