creating a csv file in awk

Hi All
I am trying to create a csv file in the korn shell and the script segment is as follows:

if [ percent -gt 80 ]
        then
# NEED TO ADD INFO TO THE EMAIL FILE ABOUT THE DRIVE THAT'S FILLING UP
        echo "$drive  $percent%  $space "|\
 awk '{printf("%d/t"|"%d/t"|"%d/t\n", $drive,$percent%,$space)}' >> tempfile.txt

now i am getting a syntax error when the script is run.

awk: syntax error near line 1
awk: illegal statement near line 1

it seems that i am making an elementry mistake that I am not able to catch
the $drive $percent and $space are integers and are being pulled from a df -k command
Please Assist

Replace the awk command with:

awk '{printf("%d/t"|"%d/t"|"%d/t\n", $1, $2, $3)}' >> tempfile.txt

Regards

Thanks Franklin,
I will try and get back

I tried and got the same error message

awk: syntax error near line 1
awk: illegal statement near line 1

shoud I try to replace the $1 $2 and $3 with the drive percent and space variables?

Sorry, I just copy and paste the first piece of the printf statement, try this:

awk '{printf("%d/t|%d/t|%d/t\n", $1, $2, $3)}' >> tempfile.txt

Regards

Thanks ...
appreciate your prompt response