Thanks for the input. The problem I am having right now is to store the entire line of data into one single variable. With the above format of the raw data, i can only store whatever is there before the first space.
Thanks again for the input. I read through some document about infile buffer varible. I am still not quite sure how it works. Especially in your example, is that suppose to be a period after the word myfile? The put _infile_ displays _infile_buffer and stores it to the variable myfile?
Also, I defined the lenght of the variable like the following:
input line $ 150.;
This actually read each line and stores the entire line into that variable line. This method works too right?
You are right, it is not supposed to be a period after the myfile. :-)
I am sorry, I've misspelled that.
When dealing with complex text parsing, I find always better to access the automatic _INFILE_ buffer variable. Being a buffer, there's no need to pre-alocate it's maximum size (as you should do with a variable) and It will hold precisely the exact record that was retrieved from the file.
Benefits for that? Say, I just want to parse the line and retrieve some 4 char code placed somewhere in the middle. Using _INFILE, there's no need to pre-alocate a "large-enough" variable to hold the line, I just have to process the _INFILE_ auto variable and extract what I need from it.