<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Date prompts in SAS DI Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518039#M16081</link>
    <description>Date values are numeric in SAS. If you want to filter a character date variable then you will have to assign the same format character value to the macro parameter. &lt;BR /&gt;&lt;BR /&gt;To further investigate if you can share the macro and the parameter supplied along with sample data, that would help.</description>
    <pubDate>Mon, 03 Dec 2018 12:57:12 GMT</pubDate>
    <dc:creator>DMoovendhan</dc:creator>
    <dc:date>2018-12-03T12:57:12Z</dc:date>
    <item>
      <title>Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518014#M16073</link>
      <description>&lt;P&gt;We have created a date parameter in SAS DI and it is not getting resolved. I tried using date constant and input("&amp;amp;date",ddmmyy10.) as well but not getting any solution. Also for the reference attached the screenshot.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 11:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518014#M16073</guid>
      <dc:creator>Swati24</dc:creator>
      <dc:date>2018-12-03T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518018#M16075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the parameter is not been initialized or assigned a value.&lt;/P&gt;
&lt;P&gt;If you are sure that the&amp;nbsp;parameter is been assigned, please try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;date;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will give you the date value assigned to the parameter in the log window.&lt;/P&gt;
&lt;P&gt;If its not resolving or you still getting the same error as in the screen shot that you presented then you would have to assign the value first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Moovendhan D&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 11:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518018#M16075</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2018-12-03T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518024#M16077</link>
      <description>&lt;P&gt;The values are getting assigned.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518024#M16077</guid>
      <dc:creator>Swati24</dc:creator>
      <dc:date>2018-12-03T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518025#M16078</link>
      <description>can you share the complete code, along with the execution log.</description>
      <pubDate>Mon, 03 Dec 2018 12:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518025#M16078</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2018-12-03T12:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518032#M16079</link>
      <description>&lt;P&gt;The value for date is getting assigned. We are trying to pass this parameter in where tab for a variable which DI is selecting type as numeric but I'm providing the format for date.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518032#M16079</guid>
      <dc:creator>Swati24</dc:creator>
      <dc:date>2018-12-03T12:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518033#M16080</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SAS Log&lt;BR /&gt;1 The SAS System Monday 3 December 2018 05:46:00 PM&lt;BR /&gt;&lt;BR /&gt;NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.&lt;BR /&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M5 MBCS3170)&lt;BR /&gt;Licensed to INSPIRA ENTERPRISE INDIA PVT LTD-EVAL, Site 70241916.&lt;BR /&gt;NOTE: This session is executing on the X64_SR12R2 platform.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: Additional host information:&lt;BR /&gt;&lt;BR /&gt;X64_SR12R2 WIN 6.3.9600 Server&lt;BR /&gt;&lt;BR /&gt;NOTE: SAS Initialization used (Total process time):&lt;BR /&gt;real time 0.20 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: The autoexec file, C:\SAS\Config\Lev1\SASApp\StoredProcessServer\autoexec.sas, was executed at server initialization.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; SAS Macro Variables:&lt;BR /&gt;&lt;BR /&gt;DATE=12Feb2018&lt;BR /&gt;DATE_LABEL=February 12, 2018 (February 12, 2018)&lt;BR /&gt;DISTRICT=&lt;BR /&gt;SYSDBMSG=ODBC: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''.&lt;BR /&gt;SYSDBRC=28000&lt;BR /&gt;TICKET=ST-8684-SwOfNaaDSye3JSGcqVBU-cas&lt;BR /&gt;TYPE=&lt;BR /&gt;UNIT=&lt;BR /&gt;_APSLIST=date,date_label,District,Type,Unit,_srvname,_rmthost,_htcook,_username,_srvport,_reqmeth,_debug,_htua,_grafloc,_version,ticket,_url,_rmtaddr,_reqencoding,_userlocale,_program,_encoding,&lt;BR /&gt;_result,_metaperson,_metauser,_metafolder,_client,_SECUREUSERNAME&lt;BR /&gt;_CLIENT=StoredProcessService 9.4; JVM 1.7.0_181; Windows Server 2012 R2 (amd64) 6.3&lt;BR /&gt;_DEBUG=131&lt;BR /&gt;_ENCODING=UTF-8&lt;BR /&gt;_GRAFLOC=/sasweb/graph&lt;BR /&gt;_HTCOOK=8dc70cc4d076c9cbf20ed27554256c4a_Cluster1=658E93E061B62DEC5D334B2C49BEA223.8dc70cc4d076c9cbf20ed27554256c4a_SASServer1_1&lt;BR /&gt;_HTUA=Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko&lt;BR /&gt;_METAFOLDER=/Karnataka Police/Jobs/&lt;BR /&gt;_METAPERSON=sasdemo&lt;BR /&gt;_METAUSER=sasdemo@WIN-5LB1E1GE2QI&lt;BR /&gt;_PROGRAM=/Karnataka Police/Jobs/Test_SP&lt;BR /&gt;_REPLAY="&amp;amp;_URL?_sessionid=C442A6B1-1D29-4151-BE2D-72614C803D33&amp;amp;_program=replay&amp;amp;_entry=&amp;amp;_TMPCAT.."&lt;BR /&gt;_REQENCODING=UTF-8&lt;BR /&gt;_REQMETH=GET&lt;BR /&gt;_RESULT=STATUS&lt;BR /&gt;_RMTADDR=10.7.9.149&lt;BR /&gt;_RMTHOST=10.7.9.149&lt;BR /&gt;_SECUREUSERNAME=sasdemo&lt;BR /&gt;_SRVNAME=phqanalytics.karnataka.gov.in&lt;BR /&gt;_SRVPORT=7980&lt;BR /&gt;_TMPCAT=APSWORK.TCAT0027&lt;BR /&gt;_URL=/SASStoredProcess/do&lt;BR /&gt;_USERLOCALE=en_US&lt;BR /&gt;_USERNAME=sasdemo&lt;BR /&gt;_VERSION=Version 9.4 (Build 520)&lt;BR /&gt;&lt;BR /&gt;NOTE: %INCLUDE (level 1) file C:\SAS\SASHome\SASFoundation\9.4\inttech\sample\Process.sas is file C:\SAS\SASHome\SASFoundation\9.4\inttech\sample\Process.sas.&lt;BR /&gt;3 +*ProcessBody;&lt;BR /&gt;4 +%stpbegin;&lt;BR /&gt;5 +/****************************************************************************&lt;BR /&gt;6 + * Job: Process A5HJGUS2.BS0003UZ *&lt;BR /&gt;7 + * Description: *&lt;BR /&gt;8 + * *&lt;BR /&gt;9 + * Metadata Server: phqanalytics.karnataka.gov.in *&lt;BR /&gt;10 + * Port: 8561 *&lt;BR /&gt;11 + * Location: /Karnataka Police/Jobs *&lt;BR /&gt;12 + * *&lt;BR /&gt;13 + * Server: SASApp A5HJGUS2.AT000002 *&lt;BR /&gt;14 + * *&lt;BR /&gt;15 + * Source Table: FORT_SEMI - fort.FORT_SEMI A5HJGUS2.BK0004O1 *&lt;BR /&gt;16 + * *&lt;BR /&gt;17 + * Generated on: Monday, 3 December, 2018 5:44:54 PM IST *&lt;BR /&gt;18 + * Generated by: sasdemo@WIN-5LB1E1GE2QI *&lt;BR /&gt;19 + * Version: SAS Data Integration Studio 4.903 *&lt;BR /&gt;20 + ****************************************************************************/&lt;BR /&gt;21 +&lt;BR /&gt;22 +/* Generate the process id for job */&lt;BR /&gt;23 +%put Process ID: &amp;amp;SYSJOBID;&lt;BR /&gt;Process ID: 22952&lt;BR /&gt;24 +&lt;BR /&gt;25 +/* General macro variables */&lt;BR /&gt;26 +%let jobID = %quote(A5HJGUS2.BS0003UZ);&lt;BR /&gt;27 +%let etls_jobName = %nrquote(Process);&lt;BR /&gt;The SAS System&lt;BR /&gt;&lt;BR /&gt;28 +%let etls_userID = %nrquote(sasdemo@WIN-5LB1E1GE2QI);&lt;BR /&gt;29 +&lt;BR /&gt;30 +/* Setup to capture return codes */&lt;BR /&gt;31 +%global job_rc trans_rc sqlrc;&lt;BR /&gt;32 +%let sysrc=0;&lt;BR /&gt;33 +%let job_rc = 0;&lt;BR /&gt;34 +%let trans_rc = 0;&lt;BR /&gt;35 +%let sqlrc = 0;&lt;BR /&gt;36 +%global etls_stepStartTime;&lt;BR /&gt;37 +/* initialize syserr to 0 */&lt;BR /&gt;38 +data _null_; run;&lt;BR /&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;39 +&lt;BR /&gt;40 +%macro rcSet(error);&lt;BR /&gt;41 + %if (&amp;amp;error gt &amp;amp;trans_rc) %then&lt;BR /&gt;42 + %let trans_rc = &amp;amp;error;&lt;BR /&gt;43 + %if (&amp;amp;error gt &amp;amp;job_rc) %then&lt;BR /&gt;44 + %let job_rc = &amp;amp;error;&lt;BR /&gt;45 +%mend rcSet;&lt;BR /&gt;46 +&lt;BR /&gt;47 +%macro rcSetDS(error);&lt;BR /&gt;48 + if &amp;amp;error gt input(symget('trans_rc'),12.) then&lt;BR /&gt;49 + call symput('trans_rc',trim(left(put(&amp;amp;error,12.))));&lt;BR /&gt;50 + if &amp;amp;error gt input(symget('job_rc'),12.) then&lt;BR /&gt;51 + call symput('job_rc',trim(left(put(&amp;amp;error,12.))));&lt;BR /&gt;52 +%mend rcSetDS;&lt;BR /&gt;53 +&lt;BR /&gt;54 +/* Create metadata macro variables */&lt;BR /&gt;55 +%let IOMServer = %nrquote(SASApp);&lt;BR /&gt;56 +%let metaPort = %nrquote(8561);&lt;BR /&gt;57 +%let metaServer = %nrquote(phqanalytics.karnataka.gov.in);&lt;BR /&gt;58 +&lt;BR /&gt;59 +/* Setup for capturing job status */&lt;BR /&gt;The SAS System&lt;BR /&gt;&lt;BR /&gt;60 +%let etls_startTime = %sysfunc(datetime(),datetime.);&lt;BR /&gt;61 +%let etls_recordsBefore = 0;&lt;BR /&gt;62 +%let etls_recordsAfter = 0;&lt;BR /&gt;63 +%let etls_lib = 0;&lt;BR /&gt;64 +%let etls_table = 0;&lt;BR /&gt;65 +&lt;BR /&gt;66 +%global etls_debug;&lt;BR /&gt;67 +%macro etls_setDebug;&lt;BR /&gt;68 + %if %str(&amp;amp;etls_debug) ne 0 %then&lt;BR /&gt;69 + OPTIONS MPRINT%str(;);&lt;BR /&gt;70 +%mend;&lt;BR /&gt;71 +%etls_setDebug;&lt;BR /&gt;72 +&lt;BR /&gt;73 +/*---- Start of User Written Code ----*/&lt;BR /&gt;74 +&lt;BR /&gt;75 +&lt;BR /&gt;76 +%put &amp;amp;date.;&lt;BR /&gt;12Feb2018&lt;BR /&gt;77 +/*---- End of User Written Code ----*/&lt;BR /&gt;78 +&lt;BR /&gt;79 +%let etls_endTime = %sysfunc(datetime(),datetime.);&lt;BR /&gt;80 +&lt;BR /&gt;81 +&lt;BR /&gt;82 +%stpend;&lt;BR /&gt;MPRINT(STPEND): options nonotes;&lt;BR /&gt;MPRINT(STPEND): ods _ALL_ close;&lt;BR /&gt;MPRINT(STPEND): options NOTES;&lt;BR /&gt;NOTE: %INCLUDE (level 1) ending.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518033#M16080</guid>
      <dc:creator>Swati24</dc:creator>
      <dc:date>2018-12-03T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518039#M16081</link>
      <description>Date values are numeric in SAS. If you want to filter a character date variable then you will have to assign the same format character value to the macro parameter. &lt;BR /&gt;&lt;BR /&gt;To further investigate if you can share the macro and the parameter supplied along with sample data, that would help.</description>
      <pubDate>Mon, 03 Dec 2018 12:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518039#M16081</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2018-12-03T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518045#M16082</link>
      <description>data one;&lt;BR /&gt;input UID Action: $10. Date: Date9.;&lt;BR /&gt;format date date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;101 Pending 05Jan2011&lt;BR /&gt;102 Executed 09Jan2011&lt;BR /&gt;103 Executed 16Jan2011&lt;BR /&gt;104 Failed 15Feb2011&lt;BR /&gt;105 Warning 29Feb2012&lt;BR /&gt;106 Executed 1Mar2012&lt;BR /&gt;107 Executed 10Mar2012&lt;BR /&gt;108 Executed 17Mar2013&lt;BR /&gt;109 Pending 30Apr2013&lt;BR /&gt;110 Failed 18Sep2014&lt;BR /&gt;111 Failed 26Nov2014&lt;BR /&gt;112 Warning 15Aug2015&lt;BR /&gt;113 Pending 31Dec2018&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;This is my sample data set and I want to pass the date prompts to subset the data in SAS DI.</description>
      <pubDate>Mon, 03 Dec 2018 13:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518045#M16082</guid>
      <dc:creator>Swati24</dc:creator>
      <dc:date>2018-12-03T13:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518167#M16087</link>
      <description>&lt;P&gt;you are reading the date from data lines using date9. date format, so the data value will be read with that format and will be a numeric value. Format that you applied the nest statement is for the appearance and&amp;nbsp;to ease the interpretation of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you supply the&amp;nbsp;parameter, you supply it as a neumeric date or you can read the date as character and supply the parameter as character date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which ever is convenient for you.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 18:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518167#M16087</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2018-12-03T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date prompts in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518318#M16088</link>
      <description>If I will create date parameter as character then I will not be able to use this prompt for manipulation as I have to create a report for fortnight count for the Action.</description>
      <pubDate>Tue, 04 Dec 2018 07:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-prompts-in-SAS-DI-Studio/m-p/518318#M16088</guid>
      <dc:creator>Swati24</dc:creator>
      <dc:date>2018-12-04T07:40:45Z</dc:date>
    </item>
  </channel>
</rss>

