View previous topic :: View next topic |
Author |
Message |
yatri Beginner
Joined: 23 Aug 2005 Posts: 12 Topics: 10
|
Posted: Tue Oct 04, 2005 7:45 am Post subject: File Parsing in SAS |
|
|
hi,
in SAS how to read file till EOF is reached?
i need to read an external file , get value of a variable and parse the file to get some data associated with that variable located at some different location. My input file contains data as -
ERROR IN LOC: INA
---SOME DATA---
Processing location:<pte>
** Processing
** Processing
** Processing
Processing location:<aus>
** processing
** processing
** processing
Processing location:<ina>
** processing
** processing
capital mismatch
** processing
Processing location:<lon>
** processing
** processing
** processing
I need to write the output file which will parse this file and have only error messages like
ERROR IN LOC: INA capital mismatch
how can i go about this? _________________ Thanks,
Gayatri. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Oct 04, 2005 8:09 am Post subject: |
|
|
yatri,
Please do not post the same question in more than 1 forum. I deleted your duplicate post in the other forum.
Check this link
http://www.sconsig.com/sastips/tip00043.htm
Also I suggest that you spend sometime reading the manuals. Click on the Quickmanuals link at the top of this page and select SAS manual link. Trust me you will learn a lot by reading.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|