Retirement tax questions

Code G is for a Direct Rollover.  I guess you can use G even though you got a check.    As I said above on your actual 1040 line 5a should be the gross amount and  0 on line 5b for the taxable amount  with the word Rollover by it.   

 

paging @dmertz