This statement just creates a line break. I tried to execute the code without it and the problem was still here.
Since you are using pointer control there is no way that the semi-colon will NOT be at position 494.
If it looks like it is somewhere else then whatever tool you are using to view the file is doing some. Is it possible some of the values in your data are using UTF-8 codes that require multiple bytes per character?
Do you want a fixed column file? if so then why are you wasting space by writing the semi-colons?
If you want a delimited file when why do you care what column the data appears in rater then the relative field number when counting the delimiters?
I understand it doesn't make sense but I need both.
I use bloc-note to view the file. I will try an another tool to see if I get a different display.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.