MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File Parsing in SAS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
yatri
Beginner


Joined: 23 Aug 2005
Posts: 12
Topics: 10

PostPosted: Tue Oct 04, 2005 7:45 am    Post subject: File Parsing in SAS Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Oct 04, 2005 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group