sas input方法总结-经管之家官网!

人大经济论坛-经管之家 收藏本站
您当前的位置> 软件培训>>

SAS软件培训

>>

sas input方法总结

sas input方法总结

发布:luorongjin | 分类:SAS软件培训

关于本站

人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!

经管之家新媒体交易平台

提供"微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯"等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】

提供微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】

发一篇以前自己学习sas关于input方法的总结,希望对学习sas程序的同学有帮助:以下是目录:目录第一部分columninput4一WritingaDATAStepProgram41WritingaDATAStepProgram42ColumnInput43DescribingtheData44Specify ...
免费学术公开课,扫码加入


发一篇以前自己学习sas关于input方法的总结,希望对学习sas程序的同学有帮助:
以下是目录:
目录
第一部分 column input 4
一 Writing a DATA Step Program 4
1 Writing a DATA Step Program 4
2 Column Input 4
3 Describing the Data 4
4 Specifying Variable Names 5
二 Submitting the DATA Step Program 5
1 Verifying the Data 5
2 Checking DATA Step Processing 6
3 Listing the Data Set 6
4 Invalid Data 6
三 Creating and Modifying Variables 6
1 Syntx: 6
2 Using Operators in SAS Expressions 6
3 Date Constants 7
四 Subsetting Data 8
五 Reading Instream Data 8
六 Creating a Raw Data File 9
1 Specifying the Raw Data File 9
2 Describing the Data 9
七 Additional Features 10
八 summary 10
1 Reading Data from an External File or Reading Instream Data 10
2 Creating a Raw Data File 10
3 Sample Programs 11
第二部分 format input 12
一 Review of Column Input 12
1 Column Input Features 12
二 Identifying Nonstandard Numeric Data 13
三 Using Formatted Input 13
1 The General Form of Formatted Input 13
2 Using the @n Column Pointer Control 13
3 The +n Pointer Control 14
四 Using Informats 15
1 Reading Character Values 15
2 Reading Standard Numeric Data 15
3 Reading Nonstandard Numeric Data 16
4 DATA Step Processing of Informats 16
五 Record Formats 17
1 Variable-Length Records 17
2 The PAD Option 18
六 SUMMARY 18
第三部分 list input 20
一 Free-Format Data 20
二 Using List Input 20
1 Processing List Input 21
2 Working with Delimiters 21
3 Reading a Range of Variables 22
4 Limitations of List Input 23
三 Reading Missing Values 23
1 Reading Missing Values at the End of a Record 23
2 Reading Missing Values at the Beginning or Middle of a Record 24
四 Specifying the Length of Character Values 25
五 Modifying List Input 26
1 Reading Values That Contain Embedded Blanks 26
2 Using the & Modifier with a LENGTH Statement 27
3 Using the & Modifier with an Informat 27
4 Reading Nonstandard Values 27
5 Processing the DATA Step 28
6 Comparing Formatted Input and Modified List Input 28
六 Creating Free-Format Data 29
1 Specifying a Delimiter 30
2 Using the DSD Option 30
3 Reading Values That Contain Delimiters Within a Quoted String 31
七 Mixing Input Styles 32
八 Additional Features 32
九 SUMMARY 33
第四部分 Read date and time 34
一 How SAS Stores Date Values 34
二 Reading Dates and Times with Informats 34
1 MMDDYYw. Informat 34
2 DATEw. Informat 35
3 TIMEw. Informat 35
4 DATETIMEw. Informat 35
5 YEARCUTOFF= SAS System Option 36
三 Using Dates and Times in Calculations 37
四 Using Date and Time Formats 37
1 The WEEKDATEw. Format 37
2 The WORDDATEw. Format 38
五 SUMMARY 39
第五部分 Create record from multiple records 40
一Using Line Pointer Controls 40
1 The Forward Slash (/) Line Pointer Control 40
2 Sequential Processing of Multiple Records in the DATA Step 40
二 Reading Multiple Records Non-Sequentially 41
三 Combining Line Pointer Controls 41
四 SUMMARY 42
第六部分 Create multiple records from one record 43
一 Reading Repeating Blocks of Data 43
1 Holding the Current Record with a Line-Hold Specifier 44
2 Using the Double Trailing At Sign (@@) to Hold the Current Record 44
二 Reading the Same Number of Repeating Fields 45
1 Using the Single Trailing At Sign (@) to Hold the Current Record 45
2 More Efficient Programming 46
3 Processing a DATA Step That Contains an Iterative DO Loop 46
三 Reading a Varying Number of Repeating Fields 47
1 Using the MISSOVER Option 47
2 Executing SAS Statements While a Condition Is True 48
3 Creating a Counter Variable 48
4 Completing the DO WHILE Loop 48
5 Processing a DATA Step That Has a Varying Number of Repeating Fields 48
第七部分Read Hierarchical files 50
一Creating One Observation per Detail Record 50
1 Retaining the Values of Variables 50
2 Processing a DATA Step That Creates One Observation per Detail Record 51
二 Creating One Observation per Header Record 53
三 Lesson Summary 55
第八部分READ VARLENGTH FILE 56
一 Reading Variable-Length Fields 56
二 Reading Records That Have a Varying Number of Fields 57

38



50


57


「经管之家」APP:经管人学习、答疑、交友,就上经管之家!
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
本文关键词:

本文论坛网址:https://bbs.pinggu.org/thread-2599473-1-1.html

人气文章

1.凡人大经济论坛-经管之家转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
经管之家 人大经济论坛 大学 专业 手机版