SAS®中的数字长度:决策中的案例研究

P. Gorrell
{"title":"SAS®中的数字长度:决策中的案例研究","authors":"P. Gorrell","doi":"10.1179/175709208X334678","DOIUrl":null,"url":null,"abstract":"Abstract This paper discusses various factors to be considered when making decisions regarding the properties of stored data. These factors extend beyond properties of the data files to include the context within which the data are used. Decisions about the stored length of numeric variables in SAS® data sets are used as an example of the decision-making process. Although the LENGTH statement in SAS is simple to use, what's going on behind the scenes is more complex, especially with respect to numeric variables. Understanding what happens when you specify the length of a numeric variable is essential for making informed decisions. SAS stores the value of all numeric variables in floating-point representation. This paper begins with a brief, practical, overview of floating-point representation and how it relates to programming questions regarding length, precision, and efficient use of disk space. We will discuss situations where numeric length should not be reduced, even if the range of integer values on ...","PeriodicalId":253012,"journal":{"name":"Pharmaceutical Programming","volume":"7 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Numeric length in SAS®: a case study in decision making\",\"authors\":\"P. Gorrell\",\"doi\":\"10.1179/175709208X334678\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Abstract This paper discusses various factors to be considered when making decisions regarding the properties of stored data. These factors extend beyond properties of the data files to include the context within which the data are used. Decisions about the stored length of numeric variables in SAS® data sets are used as an example of the decision-making process. Although the LENGTH statement in SAS is simple to use, what's going on behind the scenes is more complex, especially with respect to numeric variables. Understanding what happens when you specify the length of a numeric variable is essential for making informed decisions. SAS stores the value of all numeric variables in floating-point representation. This paper begins with a brief, practical, overview of floating-point representation and how it relates to programming questions regarding length, precision, and efficient use of disk space. We will discuss situations where numeric length should not be reduced, even if the range of integer values on ...\",\"PeriodicalId\":253012,\"journal\":{\"name\":\"Pharmaceutical Programming\",\"volume\":\"7 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2008-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Pharmaceutical Programming\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1179/175709208X334678\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Pharmaceutical Programming","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1179/175709208X334678","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

摘要本文讨论了在决定存储数据的属性时需要考虑的各种因素。这些因素超出了数据文件的属性,还包括使用数据的上下文。关于SAS®数据集中数值变量的存储长度的决策被用作决策过程的一个示例。尽管SAS中的LENGTH语句使用起来很简单,但是在幕后发生的事情要复杂得多,特别是对于数字变量。了解指定数值变量长度时发生的情况对于做出明智的决策至关重要。SAS以浮点表示形式存储所有数值变量的值。本文首先简要、实用地概述了浮点表示,以及它如何与有关长度、精度和磁盘空间的有效使用的编程问题相关联。我们将讨论不应该减少数字长度的情况,即使在…上的整数值范围。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Numeric length in SAS®: a case study in decision making
Abstract This paper discusses various factors to be considered when making decisions regarding the properties of stored data. These factors extend beyond properties of the data files to include the context within which the data are used. Decisions about the stored length of numeric variables in SAS® data sets are used as an example of the decision-making process. Although the LENGTH statement in SAS is simple to use, what's going on behind the scenes is more complex, especially with respect to numeric variables. Understanding what happens when you specify the length of a numeric variable is essential for making informed decisions. SAS stores the value of all numeric variables in floating-point representation. This paper begins with a brief, practical, overview of floating-point representation and how it relates to programming questions regarding length, precision, and efficient use of disk space. We will discuss situations where numeric length should not be reduced, even if the range of integer values on ...
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信