<?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:blogger="http://schemas.google.com/blogger/2008" 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;C0EDQXczeyp7ImA9WhBaEUQ.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633</id><updated>2013-05-21T23:01:10.983-04:00</updated><category term="FAOBJ" /><category term="SAS sample programs" /><category term="correctencoding=wlatin1" /><category term="Floor" /><category term="SAShelp.Vtable" /><category term="Controlling the Graph Axis" /><category term="protocol" /><category term="%sysfunc" /><category term="character conversions" /><category term="SAS ® PROGRAM EFFICIENCY FOR BEGINNERS" /><category term="Proc Report" /><category term="read next record while working on the current record" /><category term="SAS Tips" /><category term="Path" /><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="SAS analyst" /><category term="put" /><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="wlatin1" /><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="Implementation" /><category term="UTF-8" /><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="Double Blind Study" /><category term="--ENDY" /><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="NDA application" /><category term="Open Label study" /><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="Findings About" /><category term="SAS in Life Sciences" /><category term="Everything You Ever Wanted to Know" /><category term="--OBJ" /><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="Phase 4" /><category term="Local" /><category term="Do-loop" /><category term="Proc Gplot" /><category term="Charcter to numeric conversion" /><category term="Tips and Techniques" /><category term="CMISS()" /><category term="Macro Debugging Options" /><category term="Phase1/2" /><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="Custom Domains" /><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="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="Define.XML/PDF" /><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="ENCODING=option" /><category term="Manipulating the Data" /><category term="SAS Tip 1: Use Less code" /><category term="Non-Standard SDTM domains" /><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="Study DAY" /><category term="SAS Tutorials" /><category term="ODM SDTM CDISC ADaM ISO HL7" /><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="Mapping" /><category term="Sparse Option" /><category term="NODUPRECS" /><category term="Do loops" /><category term="Where statement" /><category term="ERROR 29-185: Width Specified for format ----  is invalid; Invalid Width; ERROR 29-185;" /><category term="Cynthia Johnson" /><category term="Patient Profiles" /><category term="IND application" /><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="NMISS()" /><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="ASCIIANY" /><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="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="CDISC" /><category term="ODS  tip  report writing  cell width" /><category term="Clinical Trials" /><category term="Line Feeds" /><category term="Random records" /><category term="SAS Missing functions" /><category term="tod8. format" /><category term="WHODrug Coding" /><category term="Replace" /><category term="NODUP" /><category term="Helpful documents for Proc SQL:" /><category term="PROC IMPORT with a Twist" /><category term="Out=" /><category term="scan" /><category term="SAS software" /><category term="Do we need to create ADaM dataset for each SDTM dataset?" /><category term="Resource Tips" /><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="The MS Excel table (worksheetname) has been opened for OUTPUT" /><category term="Pathname" /><category term="CDISC Standards" /><category term="CATS" /><category term="cmiss vs nmiss in SAS" /><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="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="--OCCUR" /><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="Phase 2 and Phase3" /><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="Phase1b" /><category term="Open CDISC" /><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="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="preclinical" /><category term="delimiters" /><category term="SAS System Options in Unix" /><category term="ASCII files" /><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="Phase1" /><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="Special missing characaters" /><category term="SAS Interview Questions/Answers:Clinical trials" /><category term="Double Programming" /><category term="leading zeros." /><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="Macro Calls" /><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="DSD" /><category term="monname3." /><category term="%do_over" /><category term="Proc SQ" /><category term="SAS free study tutorials" /><category term="repeat function" /><category term="--DY" /><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="RFSTDTC" /><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="Global" /><category term="Oracle Clinical for SAS Programmers" /><category term="SHIFT" /><category term="SAS Arrays" /><category term="--STDY" /><category term="Dinctionary Tables" /><category term="DDE" /><category term="Datalines" /><category term="ODS escapechar" /><category term="Format Details" /><category term="flyover" /><category term="SAS sample Projects" /><category term="input" /><category term="Data Tabulations" /><category term="PRXMATCH" /><category term="mdyampm" /><category term="_numerric_" /><category term="_character_" /><category term="RELREC" /><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="Subject Reference Start Date." /><category term="Random sampling" /><category term="MISSING()" /><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="--PRESP" /><category term="Debugging SAS Code" /><category term="Filename" /><category term="Do over Zero" /><category term="SET statement" /><category term="PT" /><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="Unblinding" /><category term="SAShelp.Vcolumn" /><category term="numeric variables length more than 8" /><category term="Case Report Tabulations" /><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="Tumor domains.--STAT." /><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="Clinical Event" /><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="Blinded study" /><category term="Datastep" /><category term="EXECFILEPATH" /><category term="SAS Unix" /><category term="Lead Function" /><category term="EXIST" /><category term="Display Manager commands" /><category term="SASHELP views" /><category term="SAS Procedures" /><category term="transcoding error" /><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="ANY" /><category term="Transport files" /><category term="EBCDICANY" /><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="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="IRB" /><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="UTF-8 encoding" /><category term="COMMA10." /><category term="PUTNAMES=NO; %ds2CSV; ODS CSV; CSV tagset; table_headers=’NO’; Column Headers;" /><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="Single Blind study" /><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="ERROR: Some character data was lost during transcoding in the dataset" /><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="ENCODING=Dataset Option" /><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">StudySAS Blog</subtitle><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>194</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><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><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;DUADRnkyeSp7ImA9WhBQEko.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-2921126579292940096</id><published>2013-03-14T12:15:00.003-04:00</published><updated>2013-03-14T12:16:17.791-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-14T12:16:17.791-04:00</app:edited><title>Exploring the Analysis Data Model – ADaM Datasets</title><content type="html">Today, I stumbled upon a blog which is interesting and&amp;nbsp;resourceful. &amp;nbsp;I liked the article so much so want to share with all my friends here.



Here is the direct link for the post to download or to review:

Actual Article:






The Analysis Data Model (ADaM) is a standard released by the&amp;nbsp;Clinical Data Interchange Standards Consortium (CDISC)&amp;nbsp;and has quickly become widely used in the submission of clinical trial information. ADaM has very close ties to another of CDISCs released standards,&amp;nbsp;Study Data Tabulation Model (SDTM).

The main difference between these two CDISC standards is the way in which the data is displayed. SDTM provides a standard for the creation and mapping of collected data from Raw sources, where as&amp;nbsp;ADAM provides a standard for the creation of analysis-ready data, often using SDTM data as the source.

The purpose of the analysis-ready ADaM data is to provide the programmer with a&amp;nbsp;means to create tables, listings and figures with...&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=k7WcSy9qPjM:KeU2lKU1Vds: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=k7WcSy9qPjM:KeU2lKU1Vds: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=k7WcSy9qPjM:KeU2lKU1Vds:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=k7WcSy9qPjM:KeU2lKU1Vds:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=k7WcSy9qPjM:KeU2lKU1Vds:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=k7WcSy9qPjM:KeU2lKU1Vds:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=k7WcSy9qPjM:KeU2lKU1Vds: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=k7WcSy9qPjM:KeU2lKU1Vds: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/k7WcSy9qPjM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/2921126579292940096?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/2921126579292940096?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/k7WcSy9qPjM/exploring-analysis-data-model-adam.html" title="Exploring the Analysis Data Model – ADaM Datasets" /><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><feedburner:origLink>http://studysas.blogspot.com/2013/03/exploring-analysis-data-model-adam.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcASH4-fSp7ImA9WhNaEUQ.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-8814836351563805666</id><published>2013-01-26T03:47:00.003-05:00</published><updated>2013-01-26T03:47:29.055-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-26T03:47:29.055-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cmiss vs nmiss in SAS" /><category scheme="http://www.blogger.com/atom/ns#" term="CMISS()" /><category scheme="http://www.blogger.com/atom/ns#" term="Special missing characaters" /><category scheme="http://www.blogger.com/atom/ns#" term="SAS Missing functions" /><category scheme="http://www.blogger.com/atom/ns#" term="NMISS()" /><category scheme="http://www.blogger.com/atom/ns#" term="MISSING()" /><title>How to use MISSING(), NMISS() and the CMISS() functions</title><content type="html">SAS provides several functions to test for
missing values but in this post we will focus on MISSING(), CMISS() and NMISS()
functions. The NMISS() function is reserved for numeric variables. The
MISSING() and CMISS() functions can be used with either character or numeric
variables.&amp;nbsp;&amp;nbsp;The CMISS() and
NMISS() functions are designed by SAS to count the number of arguments with
missing values whereas the MISSING function checks whether or not a variable is
missing. The MISSING(), CMISS(), and&amp;nbsp;&amp;nbsp;NMISS()
functions provide a simple approach to check for missing values and these
functions let you write few lines of code by avoiding large if-statements when
you need to check for missing values in several values at the same time.




MISSING() function is very useful when you need
to check any variable has a missing value or not, but not sure if it’s a
character or numeric? MISSING function works for either character or numeric
variables and it also checks for the special...&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=Hhc2hUkk5qY:JSof45t6-JU: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=Hhc2hUkk5qY:JSof45t6-JU: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=Hhc2hUkk5qY:JSof45t6-JU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=Hhc2hUkk5qY:JSof45t6-JU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=Hhc2hUkk5qY:JSof45t6-JU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=Hhc2hUkk5qY:JSof45t6-JU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=Hhc2hUkk5qY:JSof45t6-JU: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=Hhc2hUkk5qY:JSof45t6-JU: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/Hhc2hUkk5qY" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8814836351563805666?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/8814836351563805666?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/Hhc2hUkk5qY/how-to-use-missing-nmiss-and-cmiss.html" title="How to use MISSING(), NMISS() and the CMISS() functions" /><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><feedburner:origLink>http://studysas.blogspot.com/2013/01/how-to-use-missing-nmiss-and-cmiss.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUHQXk9cSp7ImA9WhNbEEw.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-6320162481847063248</id><published>2013-01-12T13:36:00.001-05:00</published><updated>2013-01-12T13:43:50.769-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-12T13:43:50.769-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="--ENDY" /><category scheme="http://www.blogger.com/atom/ns#" term="Subject Reference Start Date." /><category scheme="http://www.blogger.com/atom/ns#" term="--STDY" /><category scheme="http://www.blogger.com/atom/ns#" term="RFSTDTC" /><category scheme="http://www.blogger.com/atom/ns#" term="Study DAY" /><category scheme="http://www.blogger.com/atom/ns#" term="--DY" /><title>Studyday calculation ( --DY Variable in SDTM)</title><content type="html">USE OF THE “STUDY DAY” VARIABLES



The permissible Study Day variables (--DY, --STDY, and --ENDY) describe the relative day of the observation starting with the reference date as Day 1. They are determined by comparing the date portion of the respective date/time variables (--DTC, --STDTC, and --ENDTC) to the date portion of the Subject Reference Start Date (RFSTDTC from the Demographics domain).



The Subject Reference Start Date (RFSTDTC) is designated as Study Day 1. The Study Day value is incremented by 1 for each date following RFSTDTC. Dates prior to RFSTDTC are decremented by 1, with the date preceding RFSTDTC designated as Study Day -1 (there is no Study Day 0). This algorithm for determining Study Day is consistent with how people typically describe sequential days relative to a fixed reference point, but creates problems if used for mathematical calculations because it does not allow for a Day 0. As such, Study Day is not suited for use in subsequent numerical...&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=xIvyP4uEEec:oJrgk5IftmM: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=xIvyP4uEEec:oJrgk5IftmM: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=xIvyP4uEEec:oJrgk5IftmM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=xIvyP4uEEec:oJrgk5IftmM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xIvyP4uEEec:oJrgk5IftmM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=xIvyP4uEEec:oJrgk5IftmM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xIvyP4uEEec:oJrgk5IftmM: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=xIvyP4uEEec:oJrgk5IftmM: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/xIvyP4uEEec" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6320162481847063248?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6320162481847063248?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/xIvyP4uEEec/studyday-calculation-dy-variable-in-sdtm.html" title="Studyday calculation ( --DY Variable in SDTM)" /><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><feedburner:origLink>http://studysas.blogspot.com/2013/01/studyday-calculation-dy-variable-in-sdtm.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YBRng4fCp7ImA9WhNXEkw.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-6095015562496591176</id><published>2012-11-29T14:32:00.002-05:00</published><updated>2012-11-29T14:59:17.634-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-11-29T14:59:17.634-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Custom Domains" /><category scheme="http://www.blogger.com/atom/ns#" term="SDTM" /><category scheme="http://www.blogger.com/atom/ns#" term="Non-Standard SDTM domains" /><category scheme="http://www.blogger.com/atom/ns#" term="CDISC" /><title>Creating Custom or Non-Standard CDISC SDTM Domains</title><content type="html">Here is the nice article about creating custom SDTM domains.........





Creating Custom or Non-Standard CDISC SDTM Domains




Within the&amp;nbsp;Clinical Data Interchange Standards Consortium (CDISC) Study Data Tabulation Model (SDTM), standard domains are split into four main types: special purpose, relationships, trial design and general observation classes. General observation classes cover the majority of observations collected during a study and can be divided among three general classes:


The Interventions class captures investigational, therapeutic and other treatments that are administered to the subject (with some actual or expected physiological effect) either as specified by the study protocol (e.g., “exposure”), coincident with the study assessment period (e.g., “concomitant medications”), or other substances self-administered by the subject (such as alcohol, tobacco, or caffeine).
The Events class captures planned protocol milestones such as randomization and study...&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=BQEpy4cGJBw:APRDUAI4ZKQ: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=BQEpy4cGJBw:APRDUAI4ZKQ: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=BQEpy4cGJBw:APRDUAI4ZKQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=BQEpy4cGJBw:APRDUAI4ZKQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=BQEpy4cGJBw:APRDUAI4ZKQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=BQEpy4cGJBw:APRDUAI4ZKQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=BQEpy4cGJBw:APRDUAI4ZKQ: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=BQEpy4cGJBw:APRDUAI4ZKQ: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/BQEpy4cGJBw" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6095015562496591176?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/6095015562496591176?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/BQEpy4cGJBw/creating-custom-or-non-standard-cdisc.html" title="Creating Custom or Non-Standard CDISC SDTM Domains" /><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><feedburner:origLink>http://studysas.blogspot.com/2012/11/creating-custom-or-non-standard-cdisc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMMR34zfyp7ImA9WhJTEkk.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-420833195092521802</id><published>2012-06-20T15:40:00.000-04:00</published><updated>2012-06-20T21:01:26.087-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-20T21:01:26.087-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UTF-8" /><category scheme="http://www.blogger.com/atom/ns#" term="ANY" /><category scheme="http://www.blogger.com/atom/ns#" term="wlatin1" /><category scheme="http://www.blogger.com/atom/ns#" term="ERROR: Some character data was lost during transcoding in the dataset" /><category scheme="http://www.blogger.com/atom/ns#" term="ENCODING=Dataset Option" /><category scheme="http://www.blogger.com/atom/ns#" term="ASCIIANY" /><category scheme="http://www.blogger.com/atom/ns#" term="transcoding error" /><category scheme="http://www.blogger.com/atom/ns#" term="EBCDICANY" /><title>ENCODING=Dataset Option</title><content type="html">Let me explain the reason writing this post….






My coworker was having problem reading in a SAS dataset
that he got from the Sponsor. It was a SAS dataset encoded with UTF-8 and other
coding related stuff. 
When he tried to get in the rawdata using Libname statement 






libname rawdata&amp;nbsp;&amp;nbsp;‘/sas/SAS913/SASDATA/CLIENT /ABC123/raw’;


data datasetname;


set rawdata.datasetname;

run;






When he runs the SAS
code above, SAS stops at the current block, and returns an error that looks
like this:




ERROR:
Some character data was lost during transcoding in the dataset RAWDATA.DATSETNAME.





NOTE:
The data step has been abnormally terminated.





NOTE:
The SAS System stopped processing this step because of errors.





NOTE:
SAS set option OBS=0 and will continue to check statements. This may cause
NOTE: No observations in data set.





NOTE:
There were 20314 observations read from the data set RAWDATA.DATSETNAME.





WARNING:
The data set WORK.DATASETNAME may be...&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=rI-1iyLYisk:bPoi2-VwzPY: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=rI-1iyLYisk:bPoi2-VwzPY: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=rI-1iyLYisk:bPoi2-VwzPY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=rI-1iyLYisk:bPoi2-VwzPY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rI-1iyLYisk:bPoi2-VwzPY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=rI-1iyLYisk:bPoi2-VwzPY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=rI-1iyLYisk:bPoi2-VwzPY: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=rI-1iyLYisk:bPoi2-VwzPY: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/rI-1iyLYisk" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/420833195092521802?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/420833195092521802?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/rI-1iyLYisk/encodingdataset-option.html" title="ENCODING=Dataset Option" /><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><feedburner:origLink>http://studysas.blogspot.com/2012/06/encodingdataset-option.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUCSXc4fip7ImA9WhVaFU4.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-4726926019632386233</id><published>2012-06-12T15:32:00.000-04:00</published><updated>2012-06-12T15:44:28.936-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-12T15:44:28.936-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PUTNAMES=NO; %ds2CSV; ODS CSV; CSV tagset; table_headers=’NO’; Column Headers;" /><title>Create a .CSV file of SAS dataset without column names or header row?</title><content type="html">SAS places the variables names in Row 1 when you try to
create an excel or .CSV file of the &amp;nbsp;SAS
dataset. I have found a tip to tell SAS not to keep variable names in
the row 1 of .CSV file.

SAScommunity.org page has put together nice information
regarding how to do this.




 

  
1 Run PROC EXPORT with
       PUTNAMES=NO
2 Run PROC EXPORT and recall
       and edit the code
3 Run PROC EXPORT and use a
       DATA step to rewrite the file without the first row
4 DATA _NULL_ with a PUT
       statement
5 DATA _NULL_ with a PUT
       statement, all fields quoted
6 ODS CSV and PROC REPORT
       with suppressed column headers
7 The&amp;nbsp;%ds2csv SAS
       Institute utility macro
8 The CSV tagset and the
       table_headers="NO" option


 


Run
PROC EXPORT with PUTNAMES=NO 

Sample program&amp;nbsp;



proc
export data=data_to_export&amp;nbsp; outfile='C:\data_exported.csv'

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=csv

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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=tD_Y66rLsNM:nuZAokCO794: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=tD_Y66rLsNM:nuZAokCO794: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=tD_Y66rLsNM:nuZAokCO794:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=tD_Y66rLsNM:nuZAokCO794:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=tD_Y66rLsNM:nuZAokCO794:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=tD_Y66rLsNM:nuZAokCO794:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=tD_Y66rLsNM:nuZAokCO794: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=tD_Y66rLsNM:nuZAokCO794: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/tD_Y66rLsNM" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4726926019632386233?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/4726926019632386233?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/tD_Y66rLsNM/create-csv-file-of-sas-dataset-without.html" title="Create a .CSV file of SAS dataset without column names or header row?" /><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><feedburner:origLink>http://studysas.blogspot.com/2012/06/create-csv-file-of-sas-dataset-without.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMCRHo6eyp7ImA9WhNaEUU.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-3450638476289344556</id><published>2012-06-07T03:03:00.002-04:00</published><updated>2013-01-26T03:21:05.413-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-26T03:21:05.413-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ERROR 29-185: Width Specified for format ----  is invalid; Invalid Width; ERROR 29-185;" /><title>ERROR 29-185: Width Specified for format ----  is invalid</title><content type="html">You&amp;nbsp;see "ERROR 29-185: Width Specified for format ----&amp;nbsp; is invalid" message in the log file&amp;nbsp;&amp;nbsp;when you try to&amp;nbsp;specify the DATE format but used an invalid width. DATE format will not result in a date if it is too long or too short. Valid values are 5-9 in SAS 9.1.X versions. If you use newer version (SAS 9.2) then you won't see this Error message in the log. ( I am assuming that this is fixed in SAS 9.2).





Try using format date9. instead of date11. if you are using SAS 9.1.x (either Windows or Unix) version.














data _null_;

date ='23-SEP-2004'd;

put date date11.;*This statement gives you error in SAS 9.1.2/9.1.3 versions; 

put date date9.;

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=Bjw_scZRjJo:HOJ5NcXjUPY: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=Bjw_scZRjJo:HOJ5NcXjUPY: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=Bjw_scZRjJo:HOJ5NcXjUPY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=Bjw_scZRjJo:HOJ5NcXjUPY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=Bjw_scZRjJo:HOJ5NcXjUPY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=Bjw_scZRjJo:HOJ5NcXjUPY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=Bjw_scZRjJo:HOJ5NcXjUPY: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=Bjw_scZRjJo:HOJ5NcXjUPY: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/Bjw_scZRjJo" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3450638476289344556?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/3450638476289344556?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/Bjw_scZRjJo/error-29-185-width-specified-for-format.html" title="ERROR 29-185: Width Specified for format ----  is invalid" /><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><feedburner:origLink>http://studysas.blogspot.com/2012/06/error-29-185-width-specified-for-format.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUCQXwzfSp7ImA9WhVUFEk.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-445854851458443207</id><published>2012-05-19T07:40:00.001-04:00</published><updated>2012-05-19T13:24:20.285-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-05-19T13:24:20.285-04:00</app:edited><title>My 5 Important reasons to use Proc SQL</title><content type="html">•           Proc SQL requires few lines of SAS code compared with datastep and or Proc steps
•             Frequency counting can be done in no time… which is very helpful during the QC or validation
•             Proc SQL can merge datasets together using different variable names unlike datastep.
•             Proc SQL can merge many datasets together in the same step on different variables
•             Proc SQL allows you to join more than two datasets together at the same time on different levels
•           The merge process Proc SQL join does not overlays the duplicate by-column, where the&amp;nbsp;Merge&amp;nbsp;&amp;nbsp;&amp;nbsp; statement of the&amp;nbsp;data step does.






Data step vs Proc SQL 







•&amp;nbsp;&amp;nbsp;Data step Merge–       Pre sorting of the dataset by the by-variable needed&amp;nbsp;before the merging process

–&amp;nbsp;Requires common variable names



–&amp;nbsp;&amp;nbsp;May need few more lines of code than Proc SQL




•&amp;nbsp;&amp;nbsp;&amp;nbsp;PROC SQL Join process works different than 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=YFZmJeMPCd4:QYygTPKFSRk: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=YFZmJeMPCd4:QYygTPKFSRk: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=YFZmJeMPCd4:QYygTPKFSRk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=YFZmJeMPCd4:QYygTPKFSRk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YFZmJeMPCd4:QYygTPKFSRk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=YFZmJeMPCd4:QYygTPKFSRk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=YFZmJeMPCd4:QYygTPKFSRk: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=YFZmJeMPCd4:QYygTPKFSRk: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/YFZmJeMPCd4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://studysas.blogspot.com/feeds/445854851458443207/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://studysas.blogspot.com/2012/05/5-my-important-reasons-to-consider-proc.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/445854851458443207?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/445854851458443207?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/YFZmJeMPCd4/5-my-important-reasons-to-consider-proc.html" title="My 5 Important reasons to use Proc SQL" /><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>1</thr:total><feedburner:origLink>http://studysas.blogspot.com/2012/05/5-my-important-reasons-to-consider-proc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUARnk4eip7ImA9WhVTEU8.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-7682958824903887664</id><published>2012-02-24T19:01:00.001-05:00</published><updated>2012-02-24T19:04:07.732-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-24T19:04:07.732-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ENCODING=option" /><category scheme="http://www.blogger.com/atom/ns#" term="UTF-8 encoding" /><category scheme="http://www.blogger.com/atom/ns#" term="correctencoding=wlatin1" /><title>Transcoding Problem: Option (correctencoding=wlatin1)</title><content type="html">Have you ever tried to convert the default encoding to Wlatin1 (Windows SAS Session Encoding)? 

Let me tell you the story behind writing this post….

Today I was asked to send SAS datasets to one of the client. I transferred the SAS datasets to the client and immediately after, I got an email from the so called client saying the encoding of SAS datasets is different this time when compared with the last transfer. He said It’s causing problems in Proc compare process.

Opps… bummer…. Client’s email got me little worried ...I checked the Proc contents details and saw the change in the encoding. I investigated the issue and found out that Unicode SAS with UTF-8 encoding uses 1 to 4 bytes to handle Unicode data. It is possible for the 8-bit characters to be expanded by 2 to 3 bytes when transcoding occurs, which causes the truncation error. 

Because of the truncation problem I was asked to change the unicoding back to WLATIN1 so that the character data present in the SAS datasets...&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=xLqlY2RXKJE:RUpP9Wo2ud4: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=xLqlY2RXKJE:RUpP9Wo2ud4: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=xLqlY2RXKJE:RUpP9Wo2ud4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=xLqlY2RXKJE:RUpP9Wo2ud4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xLqlY2RXKJE:RUpP9Wo2ud4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/sastips?i=xLqlY2RXKJE:RUpP9Wo2ud4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/sastips?a=xLqlY2RXKJE:RUpP9Wo2ud4: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=xLqlY2RXKJE:RUpP9Wo2ud4: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/xLqlY2RXKJE" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/7682958824903887664?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2315822260943695633/posts/default/7682958824903887664?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/sastips/~3/xLqlY2RXKJE/encodingoption-correctencodingwlatin1.html" title="Transcoding Problem: Option (correctencoding=wlatin1)" /><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><feedburner:origLink>http://studysas.blogspot.com/2012/02/encodingoption-correctencodingwlatin1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EFQn4_fip7ImA9WhNXFkg.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-7647235054129698720</id><published>2011-11-13T00:37:00.001-05:00</published><updated>2012-12-04T17:20:13.046-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-12-04T17:20:13.046-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">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...&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><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">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><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">/* 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><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">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><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">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><feedburner:origLink>http://studysas.blogspot.com/2011/07/transporting-sas-files-using-proc-copy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEEQnY4eip7ImA9WhJTEkk.&quot;"><id>tag:blogger.com,1999:blog-2315822260943695633.post-4398581142726481682</id><published>2011-06-14T16:34:00.004-04:00</published><updated>2012-06-20T21:03:23.832-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-20T21:03:23.832-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">Task: I have a SAS date and wanted to create a variable with the month name.

Here is how to do it......



Use MONNAMEw. format which is simple and easy.&amp;nbsp; You need to be using&amp;nbsp; SAS 9.X versions to make&amp;nbsp;it work.



/*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" /><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">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><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">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><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">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" /><feedburner:origLink>http://studysas.blogspot.com/2011/01/study-day-clculation-one-liner.html</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">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" /><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">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><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">﻿﻿﻿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" /><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">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" /><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">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><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">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><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">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><feedburner:origLink>http://studysas.blogspot.com/2010/08/how-to-get-details-of-formats-from.html</feedburner:origLink></entry></feed>
