Da fehlt was...

$QCMDLEN = %Len(%Trim($QCMD)) oder fix 60