我为变量创建了一个格式,如下所示
proc format;
value now 0=M
1=F
;
run;
现在我将其应用于数据集。
Data X;
set X2;
format Var1 now.;
run;
我希望使用cntlout
导出此格式proc format library=work cntlout=form; run;
这给了我库目录中的格式列表。但是并没有给我附加的变量名称。 如何创建包含格式列表及其附加变量的数据集?
所以我可以看到哪种格式与哪个变量相关联。
答案 0 :(得分:1)
假设您希望将其用于特定库,则可以使用SASHELP.VCOLUMN数据集。此数据集包含所有变量的格式,您可以根据需要对其进行过滤。
答案 1 :(得分:1)
如果您只想查找特定数据集中的变量,PROC CONTENTS通常比使用SASHELP.VCOLUMN或DICTIONARY.TABLES更快,特别是在定义了大量库/数据集时。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type="NVARCHAR" hibernate-type='String'
not-null="true">
</sql-type>
</type-mapping>
<table-filter match-name="Application" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="Company" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="Functionality" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="GeneralSettings" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="Logging" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="Role" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="RoleFunctionality"
match-catalog="Framework" match-schema="dbo">
</table-filter>
<table-filter match-name="Tracing" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="User" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="UserCompany" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="UserRole" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="userSettings" match-catalog="Framework"
match-schema="dbo">
</table-filter>
<table-filter match-name="sysdiagrams" match-catalog="Framework"
match-schema="dbo" exclude="true">
</table-filter>
</hibernate-reverse-engineering>