<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;Ck4BSHwycSp7ImA9WhRUFkU.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633</id><updated>2012-01-27T11:15:59.299-05:00</updated><category term="SAS sample programs" /><category term="Floor" /><category term="Controlling the Graph Axis" /><category term="protocol" /><category term="%sysfunc" /><category term="SAShelp.Vtable" /><category term="character conversions" /><category term="Proc Report" /><category term="SAS ® PROGRAM EFFICIENCY FOR BEGINNERS" /><category term="read next record while working on the current record" /><category term="Path" /><category term="SAS Tips" /><category term="specific character" /><category term="Proc SQL" /><category term="%include" /><category term="February 29" /><category term="Format that Doesn't Remove Leading Zero" /><category term="CTRL" /><category term="Base SAS Interview" /><category term="read datetime string directly into SAS datetime format" /><category term="put" /><category term="SAS analyst" /><category term="Clinical Data Management" /><category term="memlabel" /><category term="Reading Data into SAS" /><category term="Self Teach SAS Tutorials" /><category term="Clinplus Project" /><category term="Proc Printto" /><category term="SAS Macros" /><category term="Import strange datetime format" /><category term="SAS OnlineTutor®: Advanced SAS®" /><category term="Proc Surveyselect" /><category term="string functions" /><category term="IMPLEMENTATION OF CDISC STANDARDS" /><category term="Merging Data Seven Different Ways" /><category term="Proc Transpose" /><category term="Format that inserts a slash" /><category term="Introduction to SAS Informats and Formats" /><category term="autoexec.sas" /><category term="Macro for Sorting the Datasets" /><category term="Retain" /><category term="seed" /><category term="VEXTFL" /><category term="or word:INDEX/INDEXC/INDEXW Functions" /><category term="SAS Basics" /><category term="Bar charts" /><category term="compress" /><category term="Kent Reeve" /><category term="Proc Freq" /><category term="call routines" /><category term="Missing=0" /><category term="MMDDYYB" /><category term="ALT" /><category term="Proc SQL Tips" /><category term="Treatment Emergent AE" /><category term="SAS Programming Tips" /><category term="Mock Exams" /><category term="Implementation" /><category term="Convert a character variable - numeric variable with PROC SQL" /><category term="XPORT" /><category term="JOB prospects for Clinical trial coordinators and SAS Programmers in INDIA" /><category term="CDISC Audio Seminars" /><category term="Retaining Values without Lag Functions" /><category term="SAS Macros Tips" /><category term="Distinct" /><category term="Poger" /><category term="Transport file SAS Datasets" /><category term="Search a character expression for a string" /><category term="mergeNoBy=nowarn" /><category term="Permanant and Temporary Formats" /><category term="option nofmterr" /><category term="NOTE: The SAS System stopped processing this step because of errors." /><category term="Base and Adv SAS Certification Materials" /><category term="SAS in Life Sciences" /><category term="Everything You Ever Wanted to Know" /><category term="CAT" /><category term="length of any character values cannot be more than 200 characters" /><category term="fileexist" /><category term="How to know with what variables the dataset got sorted without looking at the SAS code" /><category term="call symputx" /><category term="anydtdte30." /><category term="VTABLE" /><category term="Local" /><category term="Do-loop" /><category term="WIPRO" /><category term="Proc Gplot" /><category term="Charcter to numeric conversion" /><category term="Tips and Techniques" /><category term="Macro Debugging Options" /><category term="keydef" /><category term="Macro to replace missing values" /><category term="Coalsece" /><category term="IFN" /><category term="SAS Infile Options" /><category term="Proc SQL GROUP BY clause" /><category term="mdyampm25.2" /><category term="STRIP" /><category term="Arrays" /><category term="SAS date 17750" /><category term="Superscript" /><category term="Axis control" /><category term="20 SAS Macros Tips in 30 Minutes" /><category term="LLT" /><category term="Preloadfmt option" /><category term="%do looping" /><category term="Name" /><category term="SAS forums/groups" /><category term="Proc Sort" /><category term="Temporary SAS Dataset" /><category term="Proc SQL Tutorials" /><category term="line pointer controls" /><category term="Proc Import" /><category term="Why SAS" /><category term="How to extract year information from three formats of dates in a dataset?" /><category term="PROC SQl ( Left join" /><category term="more than 262 characters long" /><category term="Annotation" /><category term="NOBS" /><category term=".CSV files" /><category term="Working With Missing Values" /><category term="minor" /><category term="Proc Means" /><category term="datestyle=dmy" /><category term="DIMPORT" /><category term="SAS Datasteps" /><category term="number of missing and non missing records of variables" /><category term="SAS 9.2" /><category term="call symput" /><category term="mmddyy10. Z8." /><category term="Manipulating the Data" /><category term="SAS Tip 1: Use Less code" /><category term="SAS Interview Questions" /><category term="displays column names as column headings instead of column labels" /><category term="ANYDTDTMw format" /><category term="Sort multiple SAS datasets using single Proc sort and CALL Execute" /><category term="Last Fileref" /><category term="Sending the Log and Output" /><category term="HASH and Double HASH" /><category term="ODM SDTM CDISC ADaM ISO HL7" /><category term="SAS Tutorials" /><category term="Dummy Dataset" /><category term="Deleting Formats and informats" /><category term="Sample Base SAS Certification Questions" /><category term="index" /><category term="Importance of Warnings and Notes messages from SAS log" /><category term="Uppercase and lowercase shortcut key" /><category term="SDTM Compliance Checks" /><category term="RANUNI" /><category term="Base SAS Certification Summary Functions" /><category term="upcase functions" /><category term="XPORT engine" /><category term="Equivalent of NODUPKEY in PROC SQL" /><category term="SET statementm First. and Last. variables" /><category term="DD-MM-YYYY" /><category term="Saving the Log and Output files" /><category term="SAS Documentation" /><category term="Sparse Option" /><category term="NODUPRECS" /><category term="Do loops" /><category term="Where statement" /><category term="Cynthia Johnson" /><category term="Patient Profiles" /><category term="One liner" /><category term="HANDLING SPECIAL EMBEDDED CHARACTERS" /><category term="Resolving Macro Variables" /><category term="Missing Function" /><category term="Open" /><category term="remove characters" /><category term="Overview" /><category term="Nolist" /><category term="VTITLES" /><category term="WHERE expressions" /><category term="CATT" /><category term="NVAR" /><category term="SAS Instructor Tips 1 and 2" /><category term="Write Log and Output to a seperate file" /><category term="Guidelines for Coding of SAS® Programs" /><category term="ERROR/WARNING/UNINITIALIZED messages" /><category term="IFC" /><category term="Electronic Data Capture( EDC)" /><category term="Shuffling" /><category term=".XPT to SAS" /><category term="New SAS 9 Format" /><category term="SAS to XPT" /><category term="Base SAS Tips" /><category term="datestyle=mdy" /><category term="Mpping specifations document" /><category term="SAS Functions and Call Routine Examples" /><category term="Save the log file" /><category term="unbalanced quotation marks" /><category term="Importing DBF files to SAS Datasets" /><category term="Pattern Matching" /><category term="Validation of programs" /><category term="ODS  tip  report writing  cell width" /><category term="Clinical Trials" /><category term="Line Feeds" /><category term="Random records" /><category term="tod8. format" /><category term="WHODrug Coding" /><category term="Replace" /><category term="Helpful documents for Proc SQL:" /><category term="NODUP" /><category term="PROC IMPORT with a Twist" /><category term="Out=" /><category term="scan" /><category term="Do we need to create ADaM dataset for each SDTM dataset?" /><category term="Resource Tips" /><category term="SAS software" /><category term="Statistical Programming" /><category term="GET SAS" /><category term="Combine data sets based upon similar values" /><category term="Picture Format" /><category term="Proc compare" /><category term="LAG Function" /><category term="SAS ebooks free" /><category term="The MS Excel table (worksheetname) has been opened for OUTPUT" /><category term="Pathname" /><category term="CDISC Standards" /><category term="CATS" /><category term="Dynamic Data Exchange" /><category term="Behavioural type Interview" /><category term="Proc Catalog" /><category term="Therapetic areas" /><category term="dot-Z" /><category term="QuoteLenMax" /><category term="Memtype" /><category term="Contents of Statistical Analysis Plan (SAP)" /><category term="SAS Quiz" /><category term="Safety datasets examples" /><category term="Integrated Summary of Safety" /><category term="SAS® Programming Guidelines" /><category term="DEXPORT" /><category term="CDISC SDTM/ADaM Pilot Project" /><category term="KILL" /><category term="Line Plot" /><category term="N and NMISS" /><category term="WEBSDM" /><category term="yymmdd8." /><category term="noQuoteLenMax" /><category term="Define.XML Define.PDF SAS Metadata Case Report Tabulations(CRT's) FDA" /><category term="$as extension" /><category term="ISE benefit/risk profile" /><category term="Auto Save SAS Code" /><category term="SPSS" /><category term="Subscript" /><category term="DATDIF" /><category term="Numeric to character conversion" /><category term="Code Review" /><category term="SAS in Clinical Trials" /><category term="Firstobs=" /><category term="Clinical Trial Terminology" /><category term="CATX" /><category term="Macro" /><category term="MMDDYYC" /><category term="Dictionary.colums" /><category term="indexc" /><category term="Learn SAS in 6 weeks" /><category term="SAS Macros Vs SAS Arrays" /><category term="Creating SAS Tranport files of datasets" /><category term="%local" /><category term="MLOGIC" /><category term="SAS Tips and Tricks" /><category term="Base SAS Certification Assignments" /><category term="anydate" /><category term="SYMBOLGEN" /><category term="HL7" /><category term="When should I put a variable in the CLASS statement? What does the CLASS statement do?" /><category term="Tips for Producing Comprehensive Integrated Summaries" /><category term="CRF's" /><category term="Advanced SAS programming Techniques" /><category term="Blackjack" /><category term="MM-YYYY" /><category term="MMDDYY+" /><category term="Youtube SAS Video Tutorials" /><category term="Annotated CRF's" /><category term="Non Printable Hex characters" /><category term="compress functions etc" /><category term="Without Lag Function" /><category term="SAS Programmer" /><category term="delimiters" /><category term="ASCII files" /><category term="SAS System Options in Unix" /><category term="MMDDYYD" /><category term="mdy" /><category term="YYYY" /><category term="Legends" /><category term="pattern" /><category term="Update" /><category term="MedDRA Coding" /><category term="Time" /><category term="Comparing SAS steps and Proc SQL" /><category term="Macros" /><category term="MINDELIMITER" /><category term="TRIM" /><category term="Call Execute" /><category term="Creating missing Values" /><category term="ADaM Datasets VS SDTM Datasets" /><category term="Validvarname=Upcase" /><category term=".Z" /><category term="CRO's" /><category term="SAS Graph" /><category term="parsing" /><category term="Zw.d format" /><category term="Concatenation Functions" /><category term="ISS" /><category term="FDA" /><category term="Special Missing Values" /><category term="duplicates" /><category term="What's New in SAS 9.2" /><category term="SAS Toolbar Settings" /><category term="MMDDYYP" /><category term="noobs" /><category term="Emailing with SAS" /><category term="SDTM Validation" /><category term="New SAS Functions" /><category term="NODUPKEY" /><category term="Set and Merge Statements" /><category term="Excel files" /><category term="ODM" /><category term="SAS Interview Questions/Answers:Clinical trials" /><category term="Double Programming" /><category term="Compltetypes" /><category term="SAS Proficiency Test" /><category term="page number" /><category term="Export unsuccessful" /><category term="Order of Missing Values" /><category term="SOC" /><category term="KD" /><category term="Varnum" /><category term="Define file" /><category term="Macro Calls" /><category term="Standardising the Clinical Data Exchange" /><category term="SAS Import and Export" /><category term="VCOLUMN" /><category term="Multiple Graphs on One Page Using SAS/GRAPH® V9" /><category term="Three SAS Programs that use Arrays" /><category term="Do Until" /><category term="Getting Data into SAS" /><category term="sastechies" /><category term="DSD" /><category term="monname3." /><category term="%do_over" /><category term="Proc SQ" /><category term="SAS free study tutorials" /><category term="Letter" /><category term="fmtsearch option" /><category term="SAS Exercises" /><category term="QUIT" /><category term="MMDDYYN" /><category term="RUN" /><category term="Number of Observations" /><category term="practice Base SAS questions" /><category term="BIOSTATISTICAL METHODOLOGY IN CLINICAL TRIALS" /><category term="Combining/ Merging data in SAS/ SQL" /><category term="Imputed Dates" /><category term="David Ghan" /><category term="David Franklin's SAS Tips" /><category term="$upcasew. format" /><category term="datetime" /><category term="Proc GCHART" /><category term="detect the missing values. non missing" /><category term="Opposite to LAG function" /><category term="Label" /><category term="Power Point Presentations" /><category term="Global" /><category term="Oracle Clinical for SAS Programmers" /><category term="SHIFT" /><category term="SAS Arrays" /><category term="Dinctionary Tables" /><category term="DDE" /><category term="Format Details" /><category term="Datalines" /><category term="ODS escapechar" /><category term="flyover" /><category term="input" /><category term="SAS sample Projects" /><category term="Data Tabulations" /><category term="PRXMATCH" /><category term="mdyampm" /><category term="_numerric_" /><category term="_character_" /><category term="add leading zeros to numeric variables" /><category term="Perl Regular Expressions" /><category term="writing SAS log file to output file" /><category term="findc" /><category term="Dictionary Tables" /><category term="Key Principles for Analysis Datasets Creation" /><category term="Random sampling" /><category term="SET" /><category term="YRDIF" /><category term="Many-to-Many Merge without  Proc SQl" /><category term="missover" /><category term="annotate" /><category term="upcase macro" /><category term="Zero Observations" /><category term="Convert SAS to SPSS" /><category term="act/act" /><category term="Where vs IF statements" /><category term="Proc Datasets" /><category term="axis1" /><category term="SAS Programming Errors" /><category term="Expandtabs" /><category term=".CSV" /><category term="Data Listings" /><category term="Introduction to SAS" /><category term="Purpose of SAP" /><category term="Debugging SAS Code" /><category term="Filename" /><category term="Do over Zero" /><category term="SET statement" /><category term="PT" /><category term="Role of Statistics" /><category term="SAS Macro Language" /><category term="openCDISC" /><category term="Multiple ampersands" /><category term="SAS Date" /><category term="P-value" /><category term="Enhanced Editor" /><category term="explicit step boundaries" /><category term="JANUS" /><category term="Proc Lifetest: Survival Analysis Using SAS" /><category term="SDTM" /><category term="Remove" /><category term="How to scan more than 20 records to determine variable attributes in EFI" /><category term="Transpose vs Arrays" /><category term="Sampling Datasets" /><category term="Macro IN operator" /><category term="keys" /><category term="MODIFY statement" /><category term="Changing Careers to Become a SAS Programmer in the Biotech" /><category term="Arrays to detect the missing values. Definition of Missing Values" /><category term="Complaince Checks" /><category term="VEXTFILES" /><category term=".XPT files" /><category term="Data _null_" /><category term="Advantages" /><category term="Prefix" /><category term="SAS video Tutorials" /><category term="SAS Programmer responsibities" /><category term="character type" /><category term="SAShelp.Vcolumn" /><category term="numeric variables length more than 8" /><category term="Remove Characters form string" /><category term="generate the month name from a numeric value" /><category term="Integrated Summary of Efficacy" /><category term="MACROGEN and MFILE" /><category term="Datetime functions" /><category term="%global" /><category term="MINOPERATOR" /><category term="Study Day calculation" /><category term="Propcase Function in SAS" /><category term="truncover" /><category term="Right Join and Full Joins) and SAS GRAPH and Output deliver System (ODS)" /><category term="Proc Export" /><category term="SCAN Function in SAS" /><category term="Proc Copy" /><category term="Validation checks on SDTM data" /><category term="list of variables in a DATA set" /><category term="proc cimport" /><category term="Missing Values" /><category term="SQLOBS" /><category term="Xpath" /><category term="EXECFILENAME" /><category term="keep characters" /><category term=".xpt creation" /><category term="Macro for merging Datsets with same prefix name" /><category term="Convert SDTM data to ADaM data" /><category term="Datastep" /><category term="EXECFILEPATH" /><category term="Lead Function" /><category term="SAS Unix" /><category term="EXIST" /><category term="Display Manager commands" /><category term="SASHELP views" /><category term="SAS Procedures" /><category term="Interleaving" /><category term="substr" /><category term="MERGE" /><category term="Merge statements" /><category term="color" /><category term="Better programming practice" /><category term="Merge macro" /><category term="Importing excel files into SAS" /><category term="Get name/Location of file" /><category term="DLM" /><category term="Strip characters" /><category term="Lost SAS Code" /><category term="monnamew. format" /><category term="openCDISC validator" /><category term="DBMS" /><category term="%eval and %sysevalf macro functions" /><category term="Page X of Y" /><category term="ODS HTML RTF LISTING Output Delivery System" /><category term="Transport files" /><category term="Sending Email using SAS" /><category term="output SAS graphics in to PS file" /><category term="REPONLY" /><category term="memname" /><category term="Accurately Calculating Age with Only One Line of Code" /><category term="Delete observations" /><category term="GE and WWW.SAS.com" /><category term="NDA" /><category term="Data step" /><category term="Merge multiple datasets" /><category term="LEFT" /><category term="Study design" /><category term="MMDDYYS" /><category term="space or &quot;-&quot; between the date" /><category term="Trasposing the data using Arrays" /><category term="Infile" /><category term="Routing the Output" /><category term="SAS Programming in Pharmaceutical Industry" /><category term="SAS Tips Archive" /><category term="Carriage Returns" /><category term="COMMA10." /><category term="VT" /><category term="Calculating group totals and the counts within each group" /><category term="soundex Function" /><category term=".A" /><category term="using formats and format libraries" /><category term="Keyboard Shortcuts" /><category term="check if numeric/character variable exists in same prefix name variables" /><category term="MPRINT" /><category term="Application Data" /><category term="Proc STDIZE" /><category term="DM Commands" /><category term="rtf output" /><category term="month and year" /><category term="COUNT()" /><category term="Whole Path" /><category term="Statistical Analaysis Plan (SAP)" /><category term="SUM function" /><category term="Not sure if the variable is character or numeric?" /><category term="Dictionary.Tables" /><category term="Variable exists in dataset or not" /><category term="proc cport" /><category term="cntlout" /><category term="Proc CDISC" /><category term="SDTM VALIDATION TOOLS" /><category term="Numeric to character or character to numeric using Proc SQL" /><category term="Solitaire" /><category term="missing" /><category term="? or ?? format Modifiers" /><category term="Random Number" /><category term="intck" /><category term="This engine does not support the REPLACE option" /><category term="ADaM" /><category term="SAS Interview Skills and Process" /><category term="Efficacy Datasets" /><title>StudySAS Blog</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://studysas.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://studysas.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>197</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/sastips" /><feedburner:info uri="sastips" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>39.330356</geo:lat><geo:long>-84.552773</geo:long><logo>http://feeds.feedburner.com/sastips</logo><feedburner:emailServiceId>sastips</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsastips" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsastips" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsastips" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/sastips" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsastips" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fsastips" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fsastips" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><entry gd:etag="W/&quot;CEAHR305cCp7ImA9WhRSEUs.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-7647235054129698720</id><published>2011-11-13T00:37:00.001-05:00</published><updated>2011-11-13T00:38:56.328-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-13T00:38:56.328-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Validation checks on SDTM data" /><category scheme="http://www.blogger.com/atom/ns#" term="Proc CDISC" /><category scheme="http://www.blogger.com/atom/ns#" term="SDTM VALIDATION TOOLS" /><category scheme="http://www.blogger.com/atom/ns#" term="openCDISC validator" /><category scheme="http://www.blogger.com/atom/ns#" term="openCDISC" /><category scheme="http://www.blogger.com/atom/ns#" term="WEBSDM" /><category scheme="http://www.blogger.com/atom/ns#" term="SDTM Compliance Checks" /><category scheme="http://www.blogger.com/atom/ns#" term="Complaince Checks" /><category scheme="http://www.blogger.com/atom/ns#" term="SDTM Validation" /><category scheme="http://www.blogger.com/atom/ns#" term="JANUS" /><title>SDTM Compliance Checks</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IT-_EL-29ghTdS1fTo-_3eUIsRI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IT-_EL-29ghTdS1fTo-_3eUIsRI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IT-_EL-29ghTdS1fTo-_3eUIsRI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IT-_EL-29ghTdS1fTo-_3eUIsRI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Validation checks or&amp;nbsp;tools to check the compliance of SDTM data

JANUS is a standard database model which is based on the CDISC’s SDTM standard. JANUS is used by the FDA to store the submitted SDTM clinical data. As a part of data definition file submission pharmaceutical companies have to submit SAS datasets in transport file (.xpt) format along with annotated CRF and Define.xml file. The reason being this is… to properly load the clinical data into JANUS database which is maintained by the FDA.  It is very easy for FDA reviewers to review the clinical data once they load the clinical data into their JANUS database. They can even produce ad-hoc reports and perform cross-study review at the same time. FDA runs compliance checks on the data submitted to make sure the data was collected as per the SDTM standard. FDA checks the compliance of data by running the WebSDM™ developed by PhaseForward). WebSDM™ is a SDTM compliance check validation tool performs a set of SDTM compliance...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VcjeodIlVmM:xQcuNWXaEHM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VcjeodIlVmM:xQcuNWXaEHM:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VcjeodIlVmM:xQcuNWXaEHM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=VcjeodIlVmM:xQcuNWXaEHM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VcjeodIlVmM:xQcuNWXaEHM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=VcjeodIlVmM:xQcuNWXaEHM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VcjeodIlVmM:xQcuNWXaEHM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VcjeodIlVmM:xQcuNWXaEHM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/VcjeodIlVmM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/7647235054129698720?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/7647235054129698720?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/VcjeodIlVmM/sdtm-compliance-checks.html" title="SDTM Compliance Checks" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/11/sdtm-compliance-checks.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UMQHc7fSp7ImA9WhdaF0k.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-5000103776077827879</id><published>2011-10-27T16:23:00.003-04:00</published><updated>2011-10-27T17:01:21.905-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-27T17:01:21.905-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Non Printable Hex characters" /><category scheme="http://www.blogger.com/atom/ns#" term="HANDLING SPECIAL EMBEDDED CHARACTERS" /><category scheme="http://www.blogger.com/atom/ns#" term="Carriage Returns" /><category scheme="http://www.blogger.com/atom/ns#" term="Remove" /><category scheme="http://www.blogger.com/atom/ns#" term="Line Feeds" /><title>How to remove carriage return and linefeed characters within quoted strings.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m2Dl3s3BfeCBkf_Wkefhn6QqYVA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m2Dl3s3BfeCBkf_Wkefhn6QqYVA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m2Dl3s3BfeCBkf_Wkefhn6QqYVA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m2Dl3s3BfeCBkf_Wkefhn6QqYVA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;HANDLING SPECIAL EMBEDDED CHARACTERS



To manage and report data in DBMS that contains very long text fields is not easy. This can be frustrating if the text field has special embedded symbols such as tabs, carriage returns (‘OD’x ), line feeds (‘OA’x) and page breaks. But here is simple SAS code which takes care of those issues. 

The normal line end for Windows text files is a&amp;nbsp; carriage return character or a line feed character so 

&amp;nbsp;The syntax for taking out all carriage return ('OD'x) and line feed ('OA'x) characters is comment= Compress(comment,'0D0A'x);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;or 

  comment= TRANWRD(comment,'0D0A'x,’’);



If you just want to take out the Carriage Return, use this code: 

comment= TRANWRD(comment,'0D'x,'');



You could also try this one too..



Comment=compress(Comment, ,"kw");*k is for keep, w is for...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=a2LJlgJEz9o:Wh2fIS653JQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=a2LJlgJEz9o:Wh2fIS653JQ:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=a2LJlgJEz9o:Wh2fIS653JQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=a2LJlgJEz9o:Wh2fIS653JQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=a2LJlgJEz9o:Wh2fIS653JQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=a2LJlgJEz9o:Wh2fIS653JQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=a2LJlgJEz9o:Wh2fIS653JQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=a2LJlgJEz9o:Wh2fIS653JQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/a2LJlgJEz9o" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/5000103776077827879?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/5000103776077827879?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/a2LJlgJEz9o/how-to-remove-carriage-return-and.html" title="How to remove carriage return and linefeed characters within quoted strings." /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/10/how-to-remove-carriage-return-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IMSXg6eCp7ImA9WhdbFUw.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-8239571629799347833</id><published>2011-10-13T10:19:00.000-04:00</published><updated>2011-10-13T10:19:48.610-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-13T10:19:48.610-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="detect the missing values. non missing" /><category scheme="http://www.blogger.com/atom/ns#" term="number of missing and non missing records of variables" /><title>Counting the number of missing and non-missing values for each variable in a data set.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_SvTV86B0A5UrAshmlKN-aR0HQ4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_SvTV86B0A5UrAshmlKN-aR0HQ4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_SvTV86B0A5UrAshmlKN-aR0HQ4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_SvTV86B0A5UrAshmlKN-aR0HQ4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;/* create sample data */

data one;

input a $ b $ c $ d e;

cards;

a . a 1 3

. b . 2 4

a a a . 5

. . b 3 5

a a a . 6

a a a . 7

a a a 2 8

;

run;





/* create a format to group missing and non-missing */

proc format;

value $missfmt ' '='missing'

other='non-missing';

value missfmt .='missing'

other='non-missing';

run;





%macro lst(dsn);

/** open dataset **/

%let dsid=%sysfunc(open(&amp;amp;dsn));





/** cnt will contain the number of variables in the dataset passed in **/

%let cnt=%sysfunc(attrn(&amp;amp;dsid,nvars));





%do i = 1 %to &amp;amp;cnt;

/** create a different macro variable for each variable in dataset **/

%let x&amp;amp;i=%sysfunc(varname(&amp;amp;dsid,&amp;amp;i));

/** list the type of the current variable **/

%let typ&amp;amp;i=%sysfunc(vartype(&amp;amp;dsid,&amp;amp;i));

%end;





/** close dataset **/

%let rc=%sysfunc(close(&amp;amp;dsid));





%do i = 1 %to &amp;amp;cnt;

/* loop through each variable in PROC FREQ and create */

/* a separate output data set */

proc freq...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=mAviZ82P_UM:953NmcVTNZU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=mAviZ82P_UM:953NmcVTNZU:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=mAviZ82P_UM:953NmcVTNZU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=mAviZ82P_UM:953NmcVTNZU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=mAviZ82P_UM:953NmcVTNZU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=mAviZ82P_UM:953NmcVTNZU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=mAviZ82P_UM:953NmcVTNZU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=mAviZ82P_UM:953NmcVTNZU:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/mAviZ82P_UM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8239571629799347833?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8239571629799347833?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/mAviZ82P_UM/counting-number-of-missing-and-non.html" title="Counting the number of missing and non-missing values for each variable in a data set." /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/10/counting-number-of-missing-and-non.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcAR3k4eSp7ImA9WhdQFUQ.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-2006805733190457841</id><published>2011-08-17T10:07:00.000-04:00</published><updated>2011-08-17T10:07:26.731-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-17T10:07:26.731-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Where statement" /><category scheme="http://www.blogger.com/atom/ns#" term="Where vs IF statements" /><title>When do I use a WHERE statement instead of an IF statement to subset a data set?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iR2svdrOw3RPKk_qDNMIUXQ6A5k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iR2svdrOw3RPKk_qDNMIUXQ6A5k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/iR2svdrOw3RPKk_qDNMIUXQ6A5k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iR2svdrOw3RPKk_qDNMIUXQ6A5k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;When programming in SAS, there is almost always more than one way to accomplish a task. Beginning programmers may think that there is no difference between using the WHERE statement and the IF statement to subset your data set. Knowledgeable programmers know that depending on the situation, sometimes one statement is more appropriate than the other. For example, if your subset condition includes automatic variables or new variables created within the DATA step, then you must use the IF statement instead of the WHERE statement. This tip shows you how and when to apply the WHERE and IF statements to get correct and reliable results. It also reviews the similarities as well as the differences between these two SAS programming approaches. Detail differences in program efficiency between the two approaches will not be covered in this tip.



For more details refer to&amp;nbsp;http://support.sas.com/kb/24/286.html&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=JAEdJ5bHLps:6Im6G5UMejo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=JAEdJ5bHLps:6Im6G5UMejo:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=JAEdJ5bHLps:6Im6G5UMejo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=JAEdJ5bHLps:6Im6G5UMejo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=JAEdJ5bHLps:6Im6G5UMejo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=JAEdJ5bHLps:6Im6G5UMejo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=JAEdJ5bHLps:6Im6G5UMejo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=JAEdJ5bHLps:6Im6G5UMejo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/JAEdJ5bHLps" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/2006805733190457841?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/2006805733190457841?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/JAEdJ5bHLps/when-do-i-use-where-statement-instead.html" title="When do I use a WHERE statement instead of an IF statement to subset a data set?" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/08/when-do-i-use-where-statement-instead.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYGQHoyfyp7ImA9WhdTEEg.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-6461609317665326765</id><published>2011-07-04T11:36:00.011-04:00</published><updated>2011-07-07T11:38:41.497-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-07T11:38:41.497-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".XPT to SAS" /><category scheme="http://www.blogger.com/atom/ns#" term="proc cport" /><category scheme="http://www.blogger.com/atom/ns#" term="proc cimport" /><category scheme="http://www.blogger.com/atom/ns#" term="Proc Copy" /><category scheme="http://www.blogger.com/atom/ns#" term="SAS to XPT" /><category scheme="http://www.blogger.com/atom/ns#" term=".xpt creation" /><category scheme="http://www.blogger.com/atom/ns#" term="XPORT engine" /><category scheme="http://www.blogger.com/atom/ns#" term="Transport files" /><title>Transporting SAS Files using Proc Copy and or Proc Cport/Proc Cimport</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rVFgKWR4rbZuZ2LbXKKatUcLgtc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rVFgKWR4rbZuZ2LbXKKatUcLgtc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rVFgKWR4rbZuZ2LbXKKatUcLgtc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rVFgKWR4rbZuZ2LbXKKatUcLgtc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;When moving SAS datasets /catalogs from one type of computer to another, there are several things to be considered, such as the operating systems of the two computers, the versions of SAS and the type of communication link between the computers. 



The easiest way to move SAS datasets from one system to another system is to: 



Create a transport file using any SAS version.Move the transport file to the new system. Import the transport file on the new system. 

Transport datasets are 80-byte length binary files made from SAS datasets. PROC COPY or PROC CPORT can create Transport datasets but they both create different types of transport files. Transport files can be created and read using either PROC COPY or PROC CPORT &amp;amp; PROC CIMPORT, but you cannot mix and match. Transport files created with PROC COPY must be read with PROC COPY; those created by PROC CPORT must be read with PROC CIMPORT.

PROC COPY uses an engine (i.e. XPORT) to create a SAS transport file. PROC COPY is used...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=PVFWxTUHjfQ:Z38Ex3pYPbI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=PVFWxTUHjfQ:Z38Ex3pYPbI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=PVFWxTUHjfQ:Z38Ex3pYPbI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=PVFWxTUHjfQ:Z38Ex3pYPbI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=PVFWxTUHjfQ:Z38Ex3pYPbI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=PVFWxTUHjfQ:Z38Ex3pYPbI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=PVFWxTUHjfQ:Z38Ex3pYPbI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=PVFWxTUHjfQ:Z38Ex3pYPbI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/PVFWxTUHjfQ" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6461609317665326765?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6461609317665326765?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/PVFWxTUHjfQ/transporting-sas-files-using-proc-copy.html" title="Transporting SAS Files using Proc Copy and or Proc Cport/Proc Cimport" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/07/transporting-sas-files-using-proc-copy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIERnw4fCp7ImA9WhZbGE4.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-4398581142726481682</id><published>2011-06-14T16:34:00.004-04:00</published><updated>2011-06-23T08:01:47.234-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-23T08:01:47.234-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="monname3." /><category scheme="http://www.blogger.com/atom/ns#" term="generate the month name from a numeric value" /><category scheme="http://www.blogger.com/atom/ns#" term="monnamew. format" /><title>How to generate the month name from a numeric date value</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KdfTMnQwxO1t4zi2vIGJYBwGjBg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KdfTMnQwxO1t4zi2vIGJYBwGjBg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KdfTMnQwxO1t4zi2vIGJYBwGjBg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KdfTMnQwxO1t4zi2vIGJYBwGjBg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Task: I have a SAS date and wanted to create a variable with the month name.

Here is how to do it......



Using MONNAMEw. format which is simple and easy.&amp;nbsp; MONNAMEw. format is available in SAS 9.X versions.



/*Use MONNAMEw. format*/



data month;

input date:mmddyy8.;

month_name=put(date,monname3.);

datalines;

01/15/04

02/29/04

07/04/04

08/18/04

12/31/04;run;

proc print;

run;&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=AStqyQ29iBE:amGbSY1Qxx8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=AStqyQ29iBE:amGbSY1Qxx8:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=AStqyQ29iBE:amGbSY1Qxx8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=AStqyQ29iBE:amGbSY1Qxx8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=AStqyQ29iBE:amGbSY1Qxx8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=AStqyQ29iBE:amGbSY1Qxx8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=AStqyQ29iBE:amGbSY1Qxx8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=AStqyQ29iBE:amGbSY1Qxx8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/AStqyQ29iBE" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4398581142726481682?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4398581142726481682?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/AStqyQ29iBE/how-to-generate-month-name-from-numeric.html" title="How to generate the month name from a numeric date value" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-3um_qKmT8Ew/TffGiRkB_dI/AAAAAAAADVc/gCJkVUS759E/s72-c/Untitled+1.png" height="72" width="72" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/06/how-to-generate-month-name-from-numeric.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkQDQn4zcCp7ImA9WhZbEEU.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-8541791171415773738</id><published>2011-06-14T15:38:00.001-04:00</published><updated>2011-06-14T15:39:33.088-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-14T15:39:33.088-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="The MS Excel table (worksheetname) has been opened for OUTPUT" /><category scheme="http://www.blogger.com/atom/ns#" term="Export unsuccessful" /><category scheme="http://www.blogger.com/atom/ns#" term="This engine does not support the REPLACE option" /><title>ERROR: The MS Excel table (worksheetname) has been opened for OUTPUT.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/K_-Cp6_qZB-uh-G42WlRVhTcBbw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K_-Cp6_qZB-uh-G42WlRVhTcBbw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/K_-Cp6_qZB-uh-G42WlRVhTcBbw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K_-Cp6_qZB-uh-G42WlRVhTcBbw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I happend to stumbleupon a post from SAS support blog regarding the ERROR message in the LOG file when trying to output a SAS dataset in the form of Excel sheet.





Direct link: 





ERROR: The MS Excel table (worksheetname) has been opened for OUTPUT. 



This table already exists, or there is a name conflict with an existing object. This table will not be replaced. This engine does not support the REPLACE option.

ERROR: Export unsuccessful. See SAS Log for details.



When you use the EXPORT procedure on an Excel workbook, the workbook might be corrupted and the following error message generated:



This problem can occur if a previous EXPORT procedure attempts to export a SAS data set in the workbook that does not contain any observations. The following example illustrates an export procedure on such a data set: 



%macro blowup;



data a;

a=1;

stop;

run;





%do i=1 %to 2;



proc export data=a outfile="c:\temp\test.xls" 

dbms=excel2000...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VuCuUXd4EcY:80-JHCZB-D0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VuCuUXd4EcY:80-JHCZB-D0:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VuCuUXd4EcY:80-JHCZB-D0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=VuCuUXd4EcY:80-JHCZB-D0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VuCuUXd4EcY:80-JHCZB-D0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=VuCuUXd4EcY:80-JHCZB-D0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VuCuUXd4EcY:80-JHCZB-D0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=VuCuUXd4EcY:80-JHCZB-D0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/VuCuUXd4EcY" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8541791171415773738?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8541791171415773738?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/VuCuUXd4EcY/error-ms-excel-table-worksheetname-has.html" title="ERROR: The MS Excel table (worksheetname) has been opened for OUTPUT." /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/06/error-ms-excel-table-worksheetname-has.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUERXwzeip7ImA9WhZTE0Q.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-3803129719828000852</id><published>2011-02-06T15:08:00.004-05:00</published><updated>2011-03-17T16:20:04.282-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-17T16:20:04.282-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Opposite to LAG function" /><category scheme="http://www.blogger.com/atom/ns#" term="mergeNoBy=nowarn" /><category scheme="http://www.blogger.com/atom/ns#" term="Lead Function" /><category scheme="http://www.blogger.com/atom/ns#" term="read next record while working on the current record" /><title>How to read next record while working on the current record. (LEAD FUNCTION)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MpTHjy6StG76pYL3eYDcLa2TBjo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MpTHjy6StG76pYL3eYDcLa2TBjo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MpTHjy6StG76pYL3eYDcLa2TBjo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MpTHjy6StG76pYL3eYDcLa2TBjo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Even though there is no function&amp;nbsp;is available in SAS to do exactly the opposite work&amp;nbsp;of the LAG function (i.e: reading the next record while working on the current one), there are few things you can do to do exactly that. 

Here are few simple techniques which are proved to work without any problem.



*SAMPLE DATASET;





data test;

input id age grp ;

datalines;

1 10 1

2 20 1

3 30 1

4 40 1

5 50 1

1 10 2

2 20 2

3 30 2

4 40 2

5 50 2

;

run;





*1) Using the POINT feature along with automatic variable _N_;

This solution was suggested by Paul M. Dorfman;





data leads;

_n_ ++ 1;

if _n_ le n then do;

set one point=_n_;

leadage=age;

end;

set one nobs=n;

run;





*OR*;





data leads;

_n_ ++ _n_ lt n;

set one point=_n_;

leadage=age;

set one nobs=n end=end;

if end then leadage=.;

run;



By using the above techniques, you can jump a bit higher and even look values of two, three or any numbers of observations in advance by advancing the value of...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xYd_82u1CA0:jvkK38KCYic:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xYd_82u1CA0:jvkK38KCYic:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xYd_82u1CA0:jvkK38KCYic:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=xYd_82u1CA0:jvkK38KCYic:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xYd_82u1CA0:jvkK38KCYic:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=xYd_82u1CA0:jvkK38KCYic:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xYd_82u1CA0:jvkK38KCYic:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xYd_82u1CA0:jvkK38KCYic:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/xYd_82u1CA0" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3803129719828000852?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3803129719828000852?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/xYd_82u1CA0/how-to-read-next-record-while-working.html" title="How to read next record while working on the current record. (LEAD FUNCTION)" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/02/how-to-read-next-record-while-working.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IGRnY8fyp7ImA9Wx9WGEw.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-6902570192956206127</id><published>2011-01-22T13:21:00.003-05:00</published><updated>2011-01-23T15:45:27.877-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-23T15:45:27.877-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="One liner" /><category scheme="http://www.blogger.com/atom/ns#" term="Study Day calculation" /><title>STUDY 'DAY' CLCULATION (ONE-LINER)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7k1bCK-ihodymFNfPv8LeIbLve8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7k1bCK-ihodymFNfPv8LeIbLve8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7k1bCK-ihodymFNfPv8LeIbLve8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7k1bCK-ihodymFNfPv8LeIbLve8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Recently I stumbled upon a SUGI-Paper&amp;nbsp; SAS 1-Liners by Stephen Hunt. I liked the way Stephen developed the 1-liner&amp;nbsp;for &amp;nbsp;STUDY DAY calculation.



Direct link:

One of the most common calculation used across all types of programming is determining a relative 'day' based on 2 date fields. In clinical trials the initial 'Study Day' is generally considered to begin at either randamization or dosing, thus assessments made prior to this starting point require a slight variation in the calculating in order to preserve the typical&amp;nbsp; 'no day 0' concept.﻿ 

﻿ 



SUGI proceedings10/054-2010.pdf
﻿ ﻿ ﻿﻿When it comes to calculating such, some programmers opt to both with evaluating whether a visit date occurred on or /after randomization.



if visdt &amp;gt; randdt &amp;gt;.z then stydy=visdt-randdt;

else stydt=visdt-randdt+1;



However, this is unnecessary, sine the 1-liner will suffice:



if visdt &amp;gt;.z &amp;amp; randdt &amp;gt;.z then stydy=visdt-randdt+(visdt&amp;gt;=randdt);



Thanks...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=N-kJ4fXMJJw:8JNufSb73zw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=N-kJ4fXMJJw:8JNufSb73zw:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=N-kJ4fXMJJw:8JNufSb73zw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=N-kJ4fXMJJw:8JNufSb73zw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=N-kJ4fXMJJw:8JNufSb73zw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=N-kJ4fXMJJw:8JNufSb73zw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=N-kJ4fXMJJw:8JNufSb73zw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=N-kJ4fXMJJw:8JNufSb73zw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/N-kJ4fXMJJw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6902570192956206127?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6902570192956206127?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/N-kJ4fXMJJw/study-day-clculation-one-liner.html" title="STUDY 'DAY' CLCULATION (ONE-LINER)" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_0rmiPxM83H8/TTscP7WA9KI/AAAAAAAABmw/NQhbMcZ-a6U/s72-c/studyday.bmp" height="72" width="72" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2011/01/study-day-clculation-one-liner.html</feedburner:origLink></entry><entry><title type="text">Easy way to UPCASE variable names of SAS dataset | StudySAS Blog [Digg]</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/fmUPsacFoP4/easy_way_to_upcase_variable_names_of_sas_dataset_studysas_blog" /><author><name>Digg</name></author><updated>2010-12-06T06:04:37-08:00</updated><id>http://digg.com/news/technology/easy_way_to_upcase_variable_names_of_sas_dataset_studysas_blog</id><content type="html">Upcasing the Variable names of the SAS dataset&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/fmUPsacFoP4" height="1" width="1"/&gt;</content><digg:diggCount xmlns:digg="http://digg.com/docs/diggrss/">
			1
		</digg:diggCount><digg:category xmlns:digg="http://digg.com/docs/diggrss/">
			Technology
		</digg:category><digg:commentCount xmlns:digg="http://digg.com/docs/diggrss/">
			0
		</digg:commentCount><digg:userActivity xmlns:digg="http://digg.com/docs/diggrss/">
			digg
		</digg:userActivity><digg:userActivity xmlns:digg="http://digg.com/docs/diggrss/">
			submission
		</digg:userActivity><feedburner:origLink>http://digg.com/news/technology/easy_way_to_upcase_variable_names_of_sas_dataset_studysas_blog?utm_campaign=Feed%3A+http%3A%2F%2Fservices.digg.com%2F2.0%2Fuser.getActivity%3Ftype%3Drss%26activity_type%3Ddigg%26username%3Dswapnasarath&amp;utm_medium=feed&amp;utm_source=diggapi</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQDSX4-fCp7ImA9Wx9SFk0.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-4904842198216296085</id><published>2010-12-05T17:39:00.011-05:00</published><updated>2010-12-05T21:42:58.054-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-05T21:42:58.054-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="upcase macro" /><category scheme="http://www.blogger.com/atom/ns#" term="Validvarname=Upcase" /><title>Easy way to UPCASE variable names of SAS dataset</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/D_5yHhH265l2zHA3FhKzeQ1gZsQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D_5yHhH265l2zHA3FhKzeQ1gZsQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/D_5yHhH265l2zHA3FhKzeQ1gZsQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D_5yHhH265l2zHA3FhKzeQ1gZsQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;option VALIDVARNAME=UPCASE;



Use trhe above option statement to&amp;nbsp;upcase&amp;nbsp;the variable name of the SAS dataset&amp;nbsp;irrespective of type of variable in the dataset (character or numeric).





The following example shows how the option sattement VALIDVARNAME=UPCASE works.



proc contents data=sashelp.class out=test;



run;









Note: Propcase variable&amp;nbsp;names.&amp;nbsp;



*Upcasing the variables;



option validvarname=upcase;

proc sort data=sashelp.class out=test; run;







Because of the option statement. Ex:&amp;nbsp; 'Age'&amp;nbsp; becomes&amp;nbsp;'AGE' and 'Height' becomes 'HEIGHT' etc.



See the SAS Language Reference dictionary to get more details.





Another way to do this is to use a macro and I call it as UPCASE macro.



proc sort data=sashelp.class out=test;



by name;

run;

&amp;nbsp; 

%macro upcase (lib,dsn); 





*Create a macro variable with the total number of variable count;

data _null_;

set sashelp.vtable(where=(libname="&amp;amp;LIB" and...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NosE1TmHbuM:KeggYWi0iY0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NosE1TmHbuM:KeggYWi0iY0:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NosE1TmHbuM:KeggYWi0iY0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=NosE1TmHbuM:KeggYWi0iY0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NosE1TmHbuM:KeggYWi0iY0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=NosE1TmHbuM:KeggYWi0iY0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NosE1TmHbuM:KeggYWi0iY0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NosE1TmHbuM:KeggYWi0iY0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/NosE1TmHbuM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4904842198216296085?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4904842198216296085?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/NosE1TmHbuM/simple-way-to-upcase-all-variables-of.html" title="Easy way to UPCASE variable names of SAS dataset" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_0rmiPxM83H8/TPwp4GPFlEI/AAAAAAAAA0Q/J0HIxXVN_gM/s72-c/propcase.bmp" height="72" width="72" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/12/simple-way-to-upcase-all-variables-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYERXc9cCp7ImA9Wx5aFU0.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-5649533895031288714</id><published>2010-11-04T17:42:00.003-04:00</published><updated>2010-11-11T15:08:24.968-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-11T15:08:24.968-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mdy" /><title>MDY Function</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WPiViMqmSWe5-p3XvwUdRDv5n4I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WPiViMqmSWe5-p3XvwUdRDv5n4I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WPiViMqmSWe5-p3XvwUdRDv5n4I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WPiViMqmSWe5-p3XvwUdRDv5n4I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;The MDY function converts MONTH, DAY, and YEAR values to a SAS date value. For example, MDY(10,19,1999) returns the SAS date value '19OCT99'D. 



Syntax:&amp;nbsp;&amp;nbsp;&amp;nbsp; MDY(month,day,year) 



Arguments



month : specifies a numeric expression that represents an integer from 1 through 12. 



day&amp;nbsp;&amp;nbsp;&amp;nbsp; :specifies a numeric expression that represents an integer from 1 through 31. 



year&amp;nbsp;&amp;nbsp; :specifies a two-digit or four-digit integer that represents the year. The YEARCUTOFF= system&amp;nbsp;&amp;nbsp;&amp;nbsp; option defines the year value for two-digit dates.



If you know month, day, and year values, it’s very easy to derive date variable. You just need to use MDY function (of course, month, day, and year should be numeric). However, if the data is character then the conversion to numeric should occur first and then the conversion to the date value.



Example:



*When month, day, and year has numeric values;

data...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=-4ZHW1048_Y:ww2xUQq41Bs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=-4ZHW1048_Y:ww2xUQq41Bs:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=-4ZHW1048_Y:ww2xUQq41Bs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=-4ZHW1048_Y:ww2xUQq41Bs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=-4ZHW1048_Y:ww2xUQq41Bs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=-4ZHW1048_Y:ww2xUQq41Bs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=-4ZHW1048_Y:ww2xUQq41Bs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=-4ZHW1048_Y:ww2xUQq41Bs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/-4ZHW1048_Y" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/5649533895031288714?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/5649533895031288714?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/-4ZHW1048_Y/mdy-function.html" title="MDY Function" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/11/mdy-function.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08DQng-cSp7ImA9Wx5VE08.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-5566140233009585803</id><published>2010-10-04T08:36:00.002-04:00</published><updated>2010-10-05T19:37:53.659-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-05T19:37:53.659-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Overview" /><category scheme="http://www.blogger.com/atom/ns#" term="Implementation" /><category scheme="http://www.blogger.com/atom/ns#" term="CDISC Audio Seminars" /><category scheme="http://www.blogger.com/atom/ns#" term="Advantages" /><title>Overview on CDISC Implementation</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AqwTZv1um8mb8QlgyXM9-Y2mrAA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AqwTZv1um8mb8QlgyXM9-Y2mrAA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AqwTZv1um8mb8QlgyXM9-Y2mrAA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AqwTZv1um8mb8QlgyXM9-Y2mrAA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;﻿﻿﻿CDISC Advantages





CDISC has developed a set of data standards to enhance 

data collection, management, analysis, and reporting efficiencies, improve safety monitoring, and streamline the review and approval process for investigational treatments. 

Under the ICH’s electronic Common Technical Document (eCTD) guidance, CDISC Study Data Tabulation Model (SDTM) is the preferred standard for content format and structure of clinical data for all clinical studies. Based on proposed federal regulations, the FDA will mandate that all clinical trial submissions be in electronic format and that the content comply with data standards guidance. Veristat helps our clients by not only implementing these standards on a project or program, but also by providing our clients with an understanding of the CDISC standards.

source:veristatinc.com



﻿ 








﻿﻿﻿source: http://cro.businessdecision.com/ 





('’)&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gvWyB2nGes0:te7-ZSc7iL0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gvWyB2nGes0:te7-ZSc7iL0:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gvWyB2nGes0:te7-ZSc7iL0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=gvWyB2nGes0:te7-ZSc7iL0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gvWyB2nGes0:te7-ZSc7iL0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=gvWyB2nGes0:te7-ZSc7iL0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gvWyB2nGes0:te7-ZSc7iL0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gvWyB2nGes0:te7-ZSc7iL0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/gvWyB2nGes0" height="1" width="1"/&gt;</content><link rel="related" href="http://cro.businessdecision.com/1654-cdisc-consultancy-readiness-assessment-implementation-roadmap-and-services.htm" title="Overview on CDISC Implementation" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/5566140233009585803?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/5566140233009585803?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/gvWyB2nGes0/overview-on-cdisc-implementation.html" title="Overview on CDISC Implementation" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_0rmiPxM83H8/TKnFytrqMFI/AAAAAAAAAxM/sa9_K7lmJfw/s72-c/CDISC+Implementation.jpg" height="72" width="72" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/10/overview-on-cdisc-implementation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcFRXg5fSp7ImA9Wx5VEUw.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-4038712234675679826</id><published>2010-09-16T10:35:00.010-04:00</published><updated>2010-10-03T10:26:54.625-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-03T10:26:54.625-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mdyampm25.2" /><category scheme="http://www.blogger.com/atom/ns#" term="datestyle=dmy" /><category scheme="http://www.blogger.com/atom/ns#" term="ANYDTDTMw format" /><category scheme="http://www.blogger.com/atom/ns#" term="read datetime string directly into SAS datetime format" /><category scheme="http://www.blogger.com/atom/ns#" term="Import strange datetime format" /><category scheme="http://www.blogger.com/atom/ns#" term="datestyle=mdy" /><category scheme="http://www.blogger.com/atom/ns#" term="findc" /><category scheme="http://www.blogger.com/atom/ns#" term="datetime" /><category scheme="http://www.blogger.com/atom/ns#" term="anydtdte30." /><category scheme="http://www.blogger.com/atom/ns#" term="mdyampm" /><category scheme="http://www.blogger.com/atom/ns#" term="anydate" /><title>How to convert the datetime character string to SAS datetime value? (ANYDTDTM and MDYAMPM formats)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UJHVRyXkeHZNLLTPuOADMlmcWM4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UJHVRyXkeHZNLLTPuOADMlmcWM4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UJHVRyXkeHZNLLTPuOADMlmcWM4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UJHVRyXkeHZNLLTPuOADMlmcWM4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;When we have a string like this "9/01/2010 11:52:54 AM" and would like to translate the string to a numeric SAS date time variable, most of the times we use SCAN function to extract the information to get the DATETIME format. This is definitely a tedious job.



SAS formats (MDYAMPM, ANTDTDTM) comes to rescue us. Here is how it works.



data test;

length date $25;



date="9/01/2010 11:52:54 AM";

*Convert the character string to SAS datetime value;

datetimevar =input(date,mdyampm25.2);

datetimevar1 =input(date,anydtdtm20.);

*Apply format to the SAS date time value;

format datetimevar datetimevar1&amp;nbsp;datetime19.;

run;



Result: 01SEP2010:11:52:54 





*ANYDTDTM and MDYAMPM informats work together when the datetime value has AM PM specified or day, month, and year components are not ambiguous.



The MDYAMPMw. format writes datetime values with separators in the form mm/dd/yy hh:mm AM PM, and requires a space between the date and the time. 

The ANYDTDTM w. format writes...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NG3-0RYOthE:rCvztjcO7pg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NG3-0RYOthE:rCvztjcO7pg:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NG3-0RYOthE:rCvztjcO7pg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=NG3-0RYOthE:rCvztjcO7pg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NG3-0RYOthE:rCvztjcO7pg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=NG3-0RYOthE:rCvztjcO7pg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NG3-0RYOthE:rCvztjcO7pg:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=NG3-0RYOthE:rCvztjcO7pg:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/NG3-0RYOthE" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4038712234675679826?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4038712234675679826?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/NG3-0RYOthE/how-to-convert-character-string-date-to.html" title="How to convert the datetime character string to SAS datetime value? (ANYDTDTM and MDYAMPM formats)" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_0rmiPxM83H8/TKiN5_gfXEI/AAAAAAAAAxI/5VSNtJw14Vk/s72-c/Untitled.jpg" height="72" width="72" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/09/how-to-convert-character-string-date-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcGSHg7cSp7ImA9WhZaFk0.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-1043831089678463532</id><published>2010-09-12T08:04:00.002-04:00</published><updated>2011-07-02T06:53:49.609-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-02T06:53:49.609-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CTRL" /><category scheme="http://www.blogger.com/atom/ns#" term="SHIFT" /><category scheme="http://www.blogger.com/atom/ns#" term="Keyboard Shortcuts" /><category scheme="http://www.blogger.com/atom/ns#" term="Uppercase and lowercase shortcut key" /><category scheme="http://www.blogger.com/atom/ns#" term="keys" /><category scheme="http://www.blogger.com/atom/ns#" term="ALT" /><title>SAS Keyboard Shortcuts</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jn5wyUp0U76qXhWl4g86zyqKg0o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jn5wyUp0U76qXhWl4g86zyqKg0o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jn5wyUp0U76qXhWl4g86zyqKg0o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jn5wyUp0U76qXhWl4g86zyqKg0o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Here are the few shortcuts you need to&amp;nbsp;know to&amp;nbsp;speed up the code writing. These work in both EPG (Enterprise Guide) and SAS Enhanced Editor. 

Shortcuts and their descriptions: 

Remember that the keyboard shortcuts listed here are default.



Selection Operations:1) Comment the section with line comments (/): press CTL + /

2) Undo the comment: press CTL + SHIFT + /

3) Convert selected text to lowercase: press CTL + SHIFT + L

4) Convert selected text to uppercase: press CTL + SHIFT + U

Shortcuts (pre-defined) CTRL+Shift+L or +U (only for the enhanced editor), which convert all selected text into lowercase or uppercase respectively. These become very handy&amp;nbsp; when we&amp;nbsp;insert the text by copy+paste.



5) Indent selected section: press TAB

6) Un-indent selected section: press SHIFT + TAB

7) To move curser to the matching DO/END statement: press

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ALT + [ or 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALT + { or&amp;nbsp;&amp;nbsp;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALT+]...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=GA4T2FfZu_w:2N_kmcAGgrI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=GA4T2FfZu_w:2N_kmcAGgrI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=GA4T2FfZu_w:2N_kmcAGgrI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=GA4T2FfZu_w:2N_kmcAGgrI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=GA4T2FfZu_w:2N_kmcAGgrI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=GA4T2FfZu_w:2N_kmcAGgrI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=GA4T2FfZu_w:2N_kmcAGgrI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=GA4T2FfZu_w:2N_kmcAGgrI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/GA4T2FfZu_w" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/1043831089678463532?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/1043831089678463532?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/GA4T2FfZu_w/sas-keyboard-shortcuts.html" title="SAS Keyboard Shortcuts" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/09/sas-keyboard-shortcuts.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4HR308eCp7ImA9Wx5XEU8.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-8658679905903906103</id><published>2010-09-10T09:34:00.002-04:00</published><updated>2010-09-10T09:55:36.370-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-10T09:55:36.370-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Global" /><category scheme="http://www.blogger.com/atom/ns#" term="%local" /><category scheme="http://www.blogger.com/atom/ns#" term="call symputx" /><category scheme="http://www.blogger.com/atom/ns#" term="call symput" /><category scheme="http://www.blogger.com/atom/ns#" term="%global" /><category scheme="http://www.blogger.com/atom/ns#" term="Local" /><category scheme="http://www.blogger.com/atom/ns#" term="Resolving Macro Variables" /><title>How to create Global or Local macro variables: (%Global / %Local)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/t4MsB4d87yEt0YnQSD28V_1AnZU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t4MsB4d87yEt0YnQSD28V_1AnZU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/t4MsB4d87yEt0YnQSD28V_1AnZU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t4MsB4d87yEt0YnQSD28V_1AnZU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Global Macro Variables:The global macro variable gets created during the initialization of a SAS session and its get deleted at the end of the session. 



Global macro variable cane be created with 



&#x100000; a %LET statement (used outside a macro definition) 

&#x100000; a DATA step that contains a SYMPUT routine 

&#x100000; a DATA step that contains a SYMPUTX routine (New with SAS 9) 

&#x100000; a SELECT statement that contains an INTO clause in PROC SQL 

&#x100000; a %GLOBAL statement. 



Global macro variables include the following: 



*all automatic macro variables except SYSPBUFF. See Automatic Macro Variables for more information about SYSPBUFF and other automatic macro variables.

*macro variables created outside of any macro.

*macro variables created in %GLOBAL statements. See Creating Global Macro Variables for more&amp;nbsp; information about the %GLOBAL statement.



*most macro variables created by the CALL SYMPUT routine. See Special Cases of Scope with the CALL SYMPUT Routine for more information about...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YM0EuhzIJm0:jCro5hyrxxg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YM0EuhzIJm0:jCro5hyrxxg:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YM0EuhzIJm0:jCro5hyrxxg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=YM0EuhzIJm0:jCro5hyrxxg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YM0EuhzIJm0:jCro5hyrxxg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=YM0EuhzIJm0:jCro5hyrxxg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YM0EuhzIJm0:jCro5hyrxxg:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YM0EuhzIJm0:jCro5hyrxxg:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/YM0EuhzIJm0" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8658679905903906103?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8658679905903906103?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/YM0EuhzIJm0/how-to-create-global-or-local-macro.html" title="How to create Global or Local macro variables: (%Global / %Local)" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/09/how-to-create-global-or-local-macro.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04GQ3Y8cSp7ImA9Wx5XFUw.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-2154814344485744969</id><published>2010-08-26T15:56:00.003-04:00</published><updated>2010-09-14T21:58:42.879-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-14T21:58:42.879-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cntlout" /><category scheme="http://www.blogger.com/atom/ns#" term="Permanant and Temporary Formats" /><category scheme="http://www.blogger.com/atom/ns#" term="Format Details" /><category scheme="http://www.blogger.com/atom/ns#" term="Proc Catalog" /><category scheme="http://www.blogger.com/atom/ns#" term="using formats and format libraries" /><title>How to get the details of formats from the format libraries:</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kgziA0MrtRyWcXNN1JzmFrY9bpA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kgziA0MrtRyWcXNN1JzmFrY9bpA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kgziA0MrtRyWcXNN1JzmFrY9bpA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kgziA0MrtRyWcXNN1JzmFrY9bpA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;If you are like me wanted to get the details of formats stored in the format library, here are two easy ways ….Proc catalog or Proc format



Proc Catalog: Proc catalog will give us the details about name and type (numeric or character) of formats



Syntax:

proc catalog catalog = frmtdir.formats;

contents;

run;



*FORMATS, is the name of the folder where all permanent formats are stored inside the library FRMTDIR.



*If you want to get the details of temporary formats use WORK in place of frmtdir.formats;



Proc Format: 



Use either SELECT or&amp;nbsp;EXCLUDE statements to choose the formats for which you want to get the details. 



Syntax:



proc format library = frmtdir.formats;

select locfmt;

run;



This code will provide the details of LOCFMT in the FRMTDIR library. 





Below code gives complte information about what's stored in your format catalogs.



libname frmtdir 'c:\saswork';





proc format library=frmtdir.formats cntlout = formats;

run;



Look at&amp;nbsp;the...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=87NNa-14gPc:Tl0LACnQlpQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=87NNa-14gPc:Tl0LACnQlpQ:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=87NNa-14gPc:Tl0LACnQlpQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=87NNa-14gPc:Tl0LACnQlpQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=87NNa-14gPc:Tl0LACnQlpQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=87NNa-14gPc:Tl0LACnQlpQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=87NNa-14gPc:Tl0LACnQlpQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=87NNa-14gPc:Tl0LACnQlpQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/87NNa-14gPc" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/2154814344485744969?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/2154814344485744969?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/87NNa-14gPc/how-to-get-details-of-formats-from.html" title="How to get the details of formats from the format libraries:" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/08/how-to-get-details-of-formats-from.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUERHg-fip7ImA9WxFaFUU.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-3417960970918159885</id><published>2010-07-19T19:27:00.001-04:00</published><updated>2010-07-19T19:30:05.656-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-19T19:30:05.656-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SPSS" /><category scheme="http://www.blogger.com/atom/ns#" term="Convert SAS to SPSS" /><category scheme="http://www.blogger.com/atom/ns#" term="GET SAS" /><title>Converting SAS datasets to SPSS</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iQQKcpz0ImS80iGpc7In0Dnar3E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iQQKcpz0ImS80iGpc7In0Dnar3E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/iQQKcpz0ImS80iGpc7In0Dnar3E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iQQKcpz0ImS80iGpc7In0Dnar3E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;If you want to view SAS dataset in SPSS you can use GET SAS command of SPSS.



Here is the syntax;

get sas data='C:\data\class.sas7bdat'.



For conversion of SAS to SPSS we need to see if any formats assigned to variables in the dataset or not. 

If there are no formats then we just follow following steps to convert SAS dataset to SPSS.



**STEP1: Creating .xpt file of a SAS dataset using Proc COPY.**



libname SAS 'c:\sas\data\';

libname SPSS xport 'c:\sas\data\class.xpt';



proc copy in=sas out=spss;

select class; 

run;





**STEP2: Use SPSS command to convert the transport format SAS file to SPSS;**





You should use following commands to convert transport format file to SPSS data.





get sas data='c:\sas\data\class.xpt'.

execute.



*******************************************************************************************;

If there are formats then we need to convert the formats catalog to a SAS data set before converting the SAS dataset into a .XPT file. This has...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=0D6tMegDQxI:SVCNMRzTa94:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=0D6tMegDQxI:SVCNMRzTa94:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=0D6tMegDQxI:SVCNMRzTa94:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=0D6tMegDQxI:SVCNMRzTa94:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=0D6tMegDQxI:SVCNMRzTa94:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=0D6tMegDQxI:SVCNMRzTa94:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=0D6tMegDQxI:SVCNMRzTa94:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=0D6tMegDQxI:SVCNMRzTa94:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/0D6tMegDQxI" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3417960970918159885?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3417960970918159885?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/0D6tMegDQxI/converting-sas-datasets-to-spss.html" title="Converting SAS datasets to SPSS" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/07/converting-sas-datasets-to-spss.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UNR3Y8eyp7ImA9WxFaFUs.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-8909117031036951462</id><published>2010-07-19T13:41:00.000-04:00</published><updated>2010-07-19T13:41:36.873-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-19T13:41:36.873-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="N and NMISS" /><category scheme="http://www.blogger.com/atom/ns#" term="Coalsece" /><category scheme="http://www.blogger.com/atom/ns#" term="Delete observations" /><title>Delete observations from a SAS data set when all or most of  variables has missing data</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rUko_CaKpPjynpaQFaezg0kG-hw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rUko_CaKpPjynpaQFaezg0kG-hw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rUko_CaKpPjynpaQFaezg0kG-hw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rUko_CaKpPjynpaQFaezg0kG-hw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;/* Sample data set */

data missing; 

input n1 n2 n3 n4 n5 n6 n7 n8 c1 $ c2 $ c3 $ c4 $;

datalines;

1 . 1 . 1 . 1 4 a . c .

1 1 . . 2 . . 5 e . g h

1 . 1 . 3 . . 6 . . k i

1 . . . . . . . . . . .

1 . . . . . . .&amp;nbsp;c . . .

. . . . . . . . . . . .

;

run;



*If you want to delete observation &amp;nbsp;if the data for every variable is missing then use the following code;



*Approach 1: Using the coalesce option inside the datastep;



data drop_misobs; 



set missing; 

if missing(coalesce(of _numeric_)) and missing(coalesce(of _character_)) then delete;

run;



&amp;nbsp;Pros:

*Simple code

Cons;

*This code doesn't work if we want to delete observation based on specific variables and not all of them.



*Approach 2:Using N/NMISS option inside the datastep;



data drop_missing; 



set missing; 

*Checks the Non missing values using ;



if n(n1, n2, n3, n4, n5, n6, n7, n8, c1, c2, c3, c4)=0 then delete; 

run;



data drop_missing; 



set missing; 

*Checks the missing...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=QpI_zNwh_CM:cVFE-IEQR5I:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=QpI_zNwh_CM:cVFE-IEQR5I:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=QpI_zNwh_CM:cVFE-IEQR5I:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=QpI_zNwh_CM:cVFE-IEQR5I:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=QpI_zNwh_CM:cVFE-IEQR5I:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=QpI_zNwh_CM:cVFE-IEQR5I:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=QpI_zNwh_CM:cVFE-IEQR5I:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=QpI_zNwh_CM:cVFE-IEQR5I:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/QpI_zNwh_CM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8909117031036951462?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8909117031036951462?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/QpI_zNwh_CM/delete-observations-from-sas-data-set.html" title="Delete observations from a SAS data set when all or most of  variables has missing data" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/07/delete-observations-from-sas-data-set.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8ERXw4cSp7ImA9WxFbGEk.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-3046049877053279496</id><published>2010-07-10T16:08:00.002-04:00</published><updated>2010-07-11T07:30:04.239-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-11T07:30:04.239-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="explicit step boundaries" /><category scheme="http://www.blogger.com/atom/ns#" term="QUIT" /><category scheme="http://www.blogger.com/atom/ns#" term="RUN" /><title>Diffrence Between RUN and QUIT statements</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1j8xv6AYqNcGh7AaleOut1k6Yw4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1j8xv6AYqNcGh7AaleOut1k6Yw4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1j8xv6AYqNcGh7AaleOut1k6Yw4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1j8xv6AYqNcGh7AaleOut1k6Yw4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Folkes,&amp;nbsp; Here is the answer from Andrew Karp..... Direct link

****************************************************************************************************;Allow me to weigh in on this topic. It comes up alot when I give SAS training classes. First, RUN and QUIT are both "explicit step boundaries" in the SAS Programming Language. PROC and DATA are "implied step boundaries." 

Example 1: Two explicit step boundaries.

DATA NEW; SET OLD: C = A + B;RUN; PROC PRINT DATA=NEW; RUN; 

In this example, both the data and the proc steps are explicitly "ended" by their respective RUN statements. 

Example 2: No explicit step boundaries.

DATA NEW; SET OLD;C = A + B; PROC PRINT DATA=NEW; 

In this example, the data step is implicitly terminated by the PROC statement. But, there is no step boundary for the PROC PRINT step/task, so it will not terminate unless/until the SAS supervisor "receives" a step boundary. 

Some PROCS support what is called RUN group processing. These include...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rVywma5SPb4:wMcUyW0Xf4A:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rVywma5SPb4:wMcUyW0Xf4A:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rVywma5SPb4:wMcUyW0Xf4A:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=rVywma5SPb4:wMcUyW0Xf4A:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rVywma5SPb4:wMcUyW0Xf4A:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=rVywma5SPb4:wMcUyW0Xf4A:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rVywma5SPb4:wMcUyW0Xf4A:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rVywma5SPb4:wMcUyW0Xf4A:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/rVywma5SPb4" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3046049877053279496?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3046049877053279496?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/rVywma5SPb4/diffrence-between-run-and-quit.html" title="Diffrence Between RUN and QUIT statements" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/07/diffrence-between-run-and-quit.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU8FRH0zeCp7ImA9WxFXEk4.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-750700868385603366</id><published>2010-05-18T12:57:00.002-04:00</published><updated>2010-05-18T21:50:15.380-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-18T21:50:15.380-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Routing the Output" /><category scheme="http://www.blogger.com/atom/ns#" term="Saving the Log and Output files" /><category scheme="http://www.blogger.com/atom/ns#" term="DM Commands" /><category scheme="http://www.blogger.com/atom/ns#" term="Write Log and Output to a seperate file" /><category scheme="http://www.blogger.com/atom/ns#" term="Sending the Log and Output" /><title>Sending the LOG and OUTPUT from PC SAS to a seperate file</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PjewXu_qWK4OIKdKKFA6-DvzcxY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PjewXu_qWK4OIKdKKFA6-DvzcxY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PjewXu_qWK4OIKdKKFA6-DvzcxY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PjewXu_qWK4OIKdKKFA6-DvzcxY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Here is how to direct the SAS LOG file and or SAS Output&amp;nbsp; to a seperate file.



Approach 1: Using Display Manager Statements;



filename log 'C:\temp\logfile.log';



filename out 'C:\temp\output.lst';



*Select only male students and age less than 16;

proc sql;

create table males as 

select age, height, weight 

from sashelp.class 

where sex='M' and age lt 16&amp;nbsp;

order by age; 

quit;





*Get the descriptive statistics for height variable by age;

proc means data=males ;

by age;

var height;

output out=htstats mean=mean n=n std=sd median=med min=min max=max;

run;





DM 'OUT;FILE OUT REP;';

DM 'LOG;FILE LOG REP;';



Information about Display Manager Commands:

DEXPORT and DIMPORT: DISPLAY MANAGER commands used to IMPORT and EXPORT the Tab delimited (Excel and .CSV) files; 

SAS Display Manager Commands 







Approach 2: Using Proc PRINTTO procedure;



Refer:&amp;nbsp; How to save the log file or what is PROC PRINTTO procedure&amp;nbsp;



('’)&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=WwiYE-2VjtQ:VzFNCa58l0M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=WwiYE-2VjtQ:VzFNCa58l0M:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=WwiYE-2VjtQ:VzFNCa58l0M:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=WwiYE-2VjtQ:VzFNCa58l0M:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=WwiYE-2VjtQ:VzFNCa58l0M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=WwiYE-2VjtQ:VzFNCa58l0M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=WwiYE-2VjtQ:VzFNCa58l0M:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=WwiYE-2VjtQ:VzFNCa58l0M:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/WwiYE-2VjtQ" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/750700868385603366?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/750700868385603366?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/WwiYE-2VjtQ/sending-log-and-output-from-pc-sas-to.html" title="Sending the LOG and OUTPUT from PC SAS to a seperate file" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/05/sending-log-and-output-from-pc-sas-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0INSHkzeip7ImA9WxFQFE0.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-1097729614393561617</id><published>2010-05-09T08:49:00.002-04:00</published><updated>2010-05-09T08:53:19.782-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-09T08:53:19.782-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Shuffling" /><category scheme="http://www.blogger.com/atom/ns#" term="Random sampling" /><category scheme="http://www.blogger.com/atom/ns#" term="seed" /><category scheme="http://www.blogger.com/atom/ns#" term="Random records" /><category scheme="http://www.blogger.com/atom/ns#" term="RANUNI" /><category scheme="http://www.blogger.com/atom/ns#" term="Sampling Datasets" /><category scheme="http://www.blogger.com/atom/ns#" term="Random Number" /><category scheme="http://www.blogger.com/atom/ns#" term="Proc Surveyselect" /><title>Random Sample Selection</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/r7AmvuMvm5GDtE7e7Xiu5-n_Y7U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/r7AmvuMvm5GDtE7e7Xiu5-n_Y7U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/r7AmvuMvm5GDtE7e7Xiu5-n_Y7U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/r7AmvuMvm5GDtE7e7Xiu5-n_Y7U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Last week my manager asked me to randomly pick 10%observations from a large data set and then create a listing so that the Data management programmers can QC the data. I want to share some thoughts here … how easy and simple to do random sampling. 

Approach 1:



Data step Approach: In this approach, the observations are shuffled using the RANUNI function which assigns a random number to each observation.



Step1: Generating the Random Vector (shuffling) using the RANUNI function;

The RANUNI function generates a random number from a continuous uniform distribution (the interval (0, 1). 



Step2: After assigning a random number to each record, the records can then be sorted in ascending or descending order of the random numbers.;



data randsamp ;input patno @@; random=RANUNI(-1);* RANUNI function to assign a random number to each record.;* Here the seed is negative integer (-1) so the results are not replicable.;cards; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=5cH4Pe_293A:VCKfYpIgrvI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=5cH4Pe_293A:VCKfYpIgrvI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=5cH4Pe_293A:VCKfYpIgrvI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=5cH4Pe_293A:VCKfYpIgrvI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=5cH4Pe_293A:VCKfYpIgrvI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=5cH4Pe_293A:VCKfYpIgrvI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=5cH4Pe_293A:VCKfYpIgrvI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=5cH4Pe_293A:VCKfYpIgrvI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/5cH4Pe_293A" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/1097729614393561617?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/1097729614393561617?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/5cH4Pe_293A/random-sample-selection.html" title="Random Sample Selection" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/05/random-sample-selection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YNRH06fip7ImA9WxFRGUQ.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-6750987768895071273</id><published>2010-04-26T20:25:00.003-04:00</published><updated>2010-05-04T14:53:15.316-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-04T14:53:15.316-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="noQuoteLenMax" /><category scheme="http://www.blogger.com/atom/ns#" term="more than 262 characters long" /><category scheme="http://www.blogger.com/atom/ns#" term="unbalanced quotation marks" /><category scheme="http://www.blogger.com/atom/ns#" term="QuoteLenMax" /><title>WARNING: You may have unbalanced quotation marks.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NLmWrd0dE7XwWSpTMMY304Xg5Dg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NLmWrd0dE7XwWSpTMMY304Xg5Dg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NLmWrd0dE7XwWSpTMMY304Xg5Dg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NLmWrd0dE7XwWSpTMMY304Xg5Dg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;SAS can allow the strings up to 32,767 characters long but some times SAS will write a Warning message ‘WARNING: The quoted string currently being processed has become more than 262 characters long. You may have unbalanced quotation marks.’, when you try to keep a character string longer than 262 characters to a variable.&amp;nbsp; It is hard to look back at the SAS code to search for unbalanced quotes. 

To make it more clearly I am going to show an example.



I want to add a 263 characters long name to a variable (longvar) and to do that I will simply use a data step… and when I do that I will see the WARNING message in Log.



data TEST;

x="(SEE DOCTOR'S LETTER)3RD ADMINISTRATION OF MTX WAS DELAYED BY 14 DAYS AND WAS REDUCED TO 1G/M2 INSTEAD OF 5G/M2, PROBLEMS, E.COLI SEPSIS WITH HEART INSUFFICIENCY WITH SINUS TACHYCARDY, PARALYTIC ILEUS, TACHYPNEA , PATIENT DIED ON 21.04.98 FROM MULTIORGAN FAILURE.";

y=length(x);

put x;

run;



LOG FILE:



There is a SAS option (NOQUOTELENMAX)...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=o9_zu-J-9EQ:G62I3ZadNK0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=o9_zu-J-9EQ:G62I3ZadNK0:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=o9_zu-J-9EQ:G62I3ZadNK0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=o9_zu-J-9EQ:G62I3ZadNK0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=o9_zu-J-9EQ:G62I3ZadNK0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=o9_zu-J-9EQ:G62I3ZadNK0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=o9_zu-J-9EQ:G62I3ZadNK0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=o9_zu-J-9EQ:G62I3ZadNK0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/o9_zu-J-9EQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://studysas.blogspot.com/feeds/6750987768895071273/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://studysas.blogspot.com/2010/04/warning-you-may-have-unbalanced.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6750987768895071273?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6750987768895071273?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/o9_zu-J-9EQ/warning-you-may-have-unbalanced.html" title="WARNING: You may have unbalanced quotation marks." /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_0rmiPxM83H8/S9YuV25E0GI/AAAAAAAAApk/06ReXfGFg5U/s72-c/Quote.bmp" height="72" width="72" /><thr:total>0</thr:total><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/04/warning-you-may-have-unbalanced.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYFQnY6eCp7ImA9WxFRGE4.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-126984060865936866</id><published>2010-04-17T08:45:00.007-04:00</published><updated>2010-05-02T16:45:13.810-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-02T16:45:13.810-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sort multiple SAS datasets using single Proc sort and CALL Execute" /><category scheme="http://www.blogger.com/atom/ns#" term="Call Execute" /><title>CALL EXECUTE: Easy way to print or sort multiple files.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/P751zlz-dnsGvRbuB_pQBFS88dg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/P751zlz-dnsGvRbuB_pQBFS88dg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/P751zlz-dnsGvRbuB_pQBFS88dg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/P751zlz-dnsGvRbuB_pQBFS88dg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;When printing multiple files, or sorting multiple datasets, the traditional method is to write multiple steps as below.



Proc print data=libref.ae; var _all_; run;

Proc print data=libref.conmed; var _all_; run;

Proc print data=libref.demog; var _all_; run;

Proc print data=libref.lab; var _all_; run;

Proc print data=libref.medhist; var _all_; run; 

If you are like me who likes to simplify the traditional SAS code here is the tip. CALL EXECUTE comes to rescue here.



*Using Disctionary Tables and Call Execute;

proc sql;

create table dsn as select distinct memname from dictionary.tables

where libname="LIBREF" and memtype="DATA";

quit;



*Sorts all the datasets using Call Execute; 

data _null_;

set dsn;

call execute ("proc sort data=final.||'memname||';by usubjid; run;");

run;



*Prints all the datasets using Call Execute; 

data _null_;

set dsn;

call execute ("proc print data=final.||'trim(memname)||';var _all_; run;");

run;



*Using Proc Contents and Call...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=M27XT93t9Co:c9e611EIM_s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=M27XT93t9Co:c9e611EIM_s:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=M27XT93t9Co:c9e611EIM_s:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=M27XT93t9Co:c9e611EIM_s:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=M27XT93t9Co:c9e611EIM_s:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=M27XT93t9Co:c9e611EIM_s:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=M27XT93t9Co:c9e611EIM_s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=M27XT93t9Co:c9e611EIM_s:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/M27XT93t9Co" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://studysas.blogspot.com/feeds/126984060865936866/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://studysas.blogspot.com/2010/04/call-execute-easy-way-to-print-or-sort.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/126984060865936866?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/126984060865936866?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/M27XT93t9Co/call-execute-easy-way-to-print-or-sort.html" title="CALL EXECUTE: Easy way to print or sort multiple files." /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><thr:total>0</thr:total><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/04/call-execute-easy-way-to-print-or-sort.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8DRXw6fyp7ImA9Wx5VEUk.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-4593368082389148723</id><published>2010-04-10T13:08:00.004-04:00</published><updated>2010-10-03T19:34:34.217-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-03T19:34:34.217-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Letter" /><category scheme="http://www.blogger.com/atom/ns#" term="Sending Email using SAS" /><category scheme="http://www.blogger.com/atom/ns#" term="Emailing with SAS" /><title>Write a Letter using SAS/ Emailing with SAS</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lqLN5bKEVfklPEErC91-Q0SjAFk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lqLN5bKEVfklPEErC91-Q0SjAFk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lqLN5bKEVfklPEErC91-Q0SjAFk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lqLN5bKEVfklPEErC91-Q0SjAFk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;SAS can do many things which most of us don’t have a clue. Here is one example….



Writing a letter:



filename formltr 'C:\Documents and Settings\sreddy\Desktop\formltr.rtf';



data address;

infile datalines;

input @ 1 stno 

&amp;nbsp;@ 6 lane $12.

@19 aptno $7.

@27 city $9.

@37 state $2.

@40 zip ;

datalines;

2550 Augusta Blvd Apt#203 Fairfield OH 45014

;

run;



data _null_;

retain lm 5; 

set address;

file formltr;* print notitles;

put _page_;

adr1 = trim(stno) ' ' trim(lane);

put @lm adr1;

adr2 = trim(aptno);

put @lm adr2;

adr3 = trim(city) ||', '|| trim(state) ||' '|| trim(zip);

put @lm adr3;

adr4 = trim('Dear')|| ' ' ||trim('SAS') || ' ' || trim('Users,');

put / @lm adr4;

put / @lm 'StudySAS Blog offers a lot of information regarding tips and tutorials on various topics ' ;

put @lm 'in SAS. It covers basics to get started to more in-depth topics like Macros and Proc SQL.';

put @lm 'It is a great site to browse to help broaden and deepen your SAS knowledge...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gDeZ-Hm8i_M:hgabUFg-yQ8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gDeZ-Hm8i_M:hgabUFg-yQ8:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gDeZ-Hm8i_M:hgabUFg-yQ8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=gDeZ-Hm8i_M:hgabUFg-yQ8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gDeZ-Hm8i_M:hgabUFg-yQ8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=gDeZ-Hm8i_M:hgabUFg-yQ8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gDeZ-Hm8i_M:hgabUFg-yQ8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=gDeZ-Hm8i_M:hgabUFg-yQ8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/gDeZ-Hm8i_M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://studysas.blogspot.com/feeds/4593368082389148723/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://studysas.blogspot.com/2010/04/write-letter-using-sas.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4593368082389148723?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4593368082389148723?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/gDeZ-Hm8i_M/write-letter-using-sas.html" title="Write a Letter using SAS/ Emailing with SAS" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><thr:total>0</thr:total><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/04/write-letter-using-sas.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcGR3Y4fip7ImA9WxFTE00.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-9048753061410992913</id><published>2010-04-03T08:46:00.003-04:00</published><updated>2010-04-03T09:57:06.836-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-03T09:57:06.836-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Everything You Ever Wanted to Know" /><category scheme="http://www.blogger.com/atom/ns#" term=".Z" /><category scheme="http://www.blogger.com/atom/ns#" term=".A" /><category scheme="http://www.blogger.com/atom/ns#" term="Special Missing Values" /><category scheme="http://www.blogger.com/atom/ns#" term="dot-Z" /><title>Special Missing Values in SAS</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Eqbl2SPQ0QH0PZjYO_OA__FdKQ4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Eqbl2SPQ0QH0PZjYO_OA__FdKQ4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Eqbl2SPQ0QH0PZjYO_OA__FdKQ4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Eqbl2SPQ0QH0PZjYO_OA__FdKQ4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Definition: Special missing value is a type of numeric missing value that enables you to represent different categories of missing data by using the letters A-Z or an underscore. Ref: SAS 9.1.3 language reference: concepts page no: 102

The symbol usually used to represent a missing value for a numerical variable is the period or dot. Aside from the dot, there are 27 special missing values SAS can store in numerical variables. They are the dot-underscore (._), and dot-letter (.A thru .Z). Note that these special values are case insensitive. That is, .A=.a .B=.b .C=.c etc.

If you do not begin a special numeric missing value with a period, SAS identifies it as a variable name. Therefore, to use a special numeric missing value in a SAS expression or assignment statement, you must begin the value with a period, followed by the letter or underscore, as in the following example:

x=.d;

When SAS prints a special missing value, it prints only the letter. When data values contain characters...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/sastips?a=piaL1rj0BSs:BfzmEE3qQZQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=piaL1rj0BSs:BfzmEE3qQZQ:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=piaL1rj0BSs:BfzmEE3qQZQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=piaL1rj0BSs:BfzmEE3qQZQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=piaL1rj0BSs:BfzmEE3qQZQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=piaL1rj0BSs:BfzmEE3qQZQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=piaL1rj0BSs:BfzmEE3qQZQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=piaL1rj0BSs:BfzmEE3qQZQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/sastips/~4/piaL1rj0BSs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://studysas.blogspot.com/feeds/9048753061410992913/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://studysas.blogspot.com/2010/04/special-missing-values.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/9048753061410992913?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/9048753061410992913?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/piaL1rj0BSs/special-missing-values.html" title="Special Missing Values in SAS" /><author><name>sarath</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://4.bp.blogspot.com/_0rmiPxM83H8/SgWIuV0DAyI/AAAAAAAAAJg/Ax7s2BI7Kz4/S220/012.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_0rmiPxM83H8/S7c8UJm2c5I/AAAAAAAAAnk/-FbCRAUSK1c/s72-c/untitled.bmp" height="72" width="72" /><thr:total>0</thr:total><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><feedburner:origLink>http://studysas.blogspot.com/2010/04/special-missing-values.html</feedburner:origLink></entry></feed>

