So I have Data that's stacked like this: John 890,,,900 red Contractor Marie 900,,,888 purple Manager Giselle 100,,,000 orange President Coming in as 4 different variables (name,id1,color, title) and I need to read them in with, I'm assuming, some combination of line holders and pointer controls. Currently I have data emp; infile employee firstobs = 2 /* Because there is some random text in the file at the beginning*/ n = 3; input #1 name 1-20 #2 id $10. #3 color $50. #4 title $50.; right now, whenever I run this, it reads in the first line correctly and then skips a line and starts reading in everything which is causing everything else to mess up. So the output looks like this Name ID Color Title John 890,,,900 Red Contractor 900,,,888 purple Manager Giselle Any idea why this is happening? I feel like i've tried an endless combination of line pointer controls and hold specifiers but haven't gotten anywhere
... View more