I got this hierarchical files
A123456789,A,3
Y,15FEB1980,M,M,3,FT,55000
N,3JUN1982,F,M,3,UE,0
N,24JAN2005,M,S,2,NA,0
A135790234,B,1
Y,19OCT1950,F,D,0,PT,5000
B234523456,A,2
N,21MAY1975,M,M,2,FT,30000
Y,30JUN1978,F,M,1,PT,10000
C345678901,A,0
and I want to made it into this
And I just write my code like this
But I got the result like this
How can I delete those 0 in the first row