获得sas程序的名称,及提取包含特定字段的行 Get then names of some programs and get rows which contain specify fields
2006-12-13 13:50
543 查看
filename fn "C:/Documents and Settings/yxg/My Documentsmeeting/*.SAS";
data t(keep =str name);
length sd $255. ;
length name $255.;
infile fn filename=sd ;
*注意这里的赋值
name=sd;
name=substr(compress(name),length(compress(name))-10);
input str $255. @@;
re = prxparse("/a1/");
re2 = prxparse("/a2/");
re3 = prxparse("/a3/");
dofind = 0; /**//*用于查找多个源*/
if prxmatch(re, str) then do;
output;
end;
if prxmatch(re2, str) then do;
output;
end;
if prxmatch(re3, str) then do;
output;
end;
run;
相关文章推荐
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
- poi 中获得行数 getLastRowNum() 和 getPhysicalNumberOfRows()
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -
- Easy Way to Get All Dependent Library Names 快速获得所有依赖库名称
- Andrdoi 如何获得某个月份最后一天(或号数最大那天)的号数?--使用getActualMaximum(Calendar.DAY_OF_MONTH)!
- Get Remote Machines Last Boot Time From A List Of Machines And Write To Excel - 如何获得远程主机的启动时间
- Structure And Representation Of MIB Object Names - SNMP Tutorial
- sOmE clues aBoUt how tO get oNe fUlLsEt of mAmE
- 1.6.程序和进程(Programs and Processes)
- how to get geometry type of layer using IMapServer3 and IMapLayerInfo? (C#)
- How to get control of your time and your life
- 利用递归获得无限分类的父类名称getParentCategoryFullName
- oracle,如何查看视图结构,获得视图中的字段名称、字段类型、字段长度等。
- Table of Language Culture Names, Codes, and ISO Values Method [C++]
- how to get the space size of some tables in one database?
- 获取指定目录(包含子目录)下所有的txt文件的个数,并打印文件名称。程序1。
- SQL 搜索所有包含特定字段的表的数据。
- 编写文件搜索小程序:1. 输入绝对路径以及搜索关键字,2. 搜索指定路径下(包括子文件夹)中名称包含关键字的所有文件并打印出,3. 将当前操作记录日志
- DSP Tools, System Generator for DSP, AccelDSP - Which versions of System Generator for DSP and Accel
- 【SQL】How to get First and Last day of a month – TSQL