我有一个思路,有兴趣可以参考下:
首先用列控制定位到IP:然后用4个整型变量分开存取IP或者干脆用正则表达式
以下内容摘自:The_Little_SAS_Book _3rd_Edition.pdf
可用于直接取IP:后的内容
The @‘character’ column pointer In section 2.9 we showed you how you can use the @
column pointer to move to a particular column before reading data. However, sometimes you
don’t know the starting column of the data, but you do know that it always comes after a particular
character or word. For these types of situations, you can use the @‘character’ column pointer. For
example, suppose you have a data file that has information about dog ownership. Nothing in the
file lines up, but you know that the breed of the dog always follows the word Breed:. You could
read the dog’s breed using the following INPUT statement:
INPUT @’Breed:’ DogBreed $;
SAS正则表达式下载地址:
SAS正则表达式