<?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: change export format of datetime data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830995#M328371</link>
    <description>&lt;P&gt;Here is picture format for ymd hms with space instead of T between the two.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
  picture  ymdhms (default=19)
    low-high='%Y-%0m-%0d %0H:%0M:%0s' (datatype=datetime)
    other = 'unknown'
  ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;3251  data _null_;
3252    now=datetime();
3253    put now ymdhms26.6 ;
3254  run;

2022-08-29 16:29:57.804000
&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Aug 2022 20:33:58 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-29T20:33:58Z</dc:date>
    <item>
      <title>change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830925#M328348</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that I am exporting to a text file, and it contains a couple of datetime fields.&lt;/P&gt;&lt;P&gt;I do not want those exported using the typical SAS format&amp;nbsp; (30JUN2022:15:23:34.760000).&lt;/P&gt;&lt;P&gt;Instead, I would like to have the 'date' portion in the YYYYMMDD format:&amp;nbsp; (2022-06-30&amp;nbsp;15:23:34.760000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I modify this code to get the correct output format?&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Barb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=client.incrmtl&lt;/P&gt;&lt;P&gt;outfile = "&amp;amp;filepath/incrmtl.txt"&lt;/P&gt;&lt;P&gt;dbms=tab replace&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;putnames=yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;%let _EFIERR_ = 0;&lt;/P&gt;&lt;P&gt;%let _EFIREC_ = 0;&lt;/P&gt;&lt;P&gt;file '/sasem/gbmkuser/client/incrmtl_data.txt' delimiter='09'x DSD DROPOVER lrecl=32767;&lt;/P&gt;&lt;P&gt;if _n_ = 1 then&lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;put&lt;/P&gt;&lt;P&gt;"CRET_TS"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;set&amp;nbsp; CLIENT.INCRMTL&amp;nbsp;&amp;nbsp; end=EFIEOD;&lt;/P&gt;&lt;P&gt;format CRET_TS datetime26.6 ;&lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;EFIOUT + 1;&lt;/P&gt;&lt;P&gt;put CRET_TS @;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;if _ERROR_ then call symputx('_EFIERR_',1);&lt;/P&gt;&lt;P&gt;if EFIEOD then call symputx('_EFIREC_',EFIOUT);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830925#M328348</guid>
      <dc:creator>BRKS2</dc:creator>
      <dc:date>2022-08-29T16:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830926#M328349</link>
      <description>&lt;P&gt;Are you using PROC EXPORT to create the tab delimited file?&lt;/P&gt;
&lt;P&gt;Or are you running your own data step to create the tab delimited file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think there is a SAS defined format that produces that exact style.&amp;nbsp; But you could either create your own format using the PICTURE statement of PROC FORMAT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then all you need to do is change the format you have attached to the variable that has the datetime value in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could build your own character string and just write that instead.&amp;nbsp; That is easier if you are running your own data step to write the text file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set client.incrmtl;
  file '/sasem/gbmkuser/client/incrmtl_data.txt' dsd dlm='09'x ;
  length dt_string $26 ;
  if _n_=1 then do;
    put "CRET_TS" @;
   put;
 end;
 dt_string=translate(put(cret_ts,E8601DT26.6),' ','T');
 put dt_string ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830926#M328349</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-29T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830929#M328350</link>
      <description>&lt;P&gt;Hi Tom!&lt;BR /&gt;In your reply, it looks like there is a format&amp;nbsp;&lt;/P&gt;&lt;P&gt;E8601DT26.6&lt;/P&gt;&lt;P&gt;that would do what I need.&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;Barb&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830929#M328350</guid>
      <dc:creator>BRKS2</dc:creator>
      <dc:date>2022-08-29T16:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830934#M328353</link>
      <description>&lt;P&gt;As long as you don't mind using the ISO standard of having a capital letter T instead of space between the date part and time part.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830934#M328353</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-29T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830939#M328354</link>
      <description>&lt;P&gt;Woot!&amp;nbsp; That is great - thank you so much!&lt;/P&gt;&lt;P&gt;I just have one follow up question...&lt;/P&gt;&lt;P&gt;I coded my own export as follows, but I'm only getting the first record in the export.&lt;/P&gt;&lt;P&gt;Can&amp;nbsp; you tell me how to fix my make-shift code so that all of the records are exported?&lt;/P&gt;&lt;P&gt;Thanks so much - you are a lifesaver!&lt;/P&gt;&lt;P&gt;Barb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;%let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;%let _EFIREC_ = 0; /* clear export record count macro variable*/&lt;BR /&gt;file '/sasem/gbmkuser/client/incrmtl_ieid_98233475.txt' delimiter='09'x DSD lrecl=32767;&lt;BR /&gt;if _n_ = 1 then /* write column names or labels */&lt;BR /&gt;do;&lt;BR /&gt;put&lt;BR /&gt;"CURR_RCD_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"INDIV_ENTPR_ID"&lt;BR /&gt;'09'x&lt;BR /&gt;"CHNL_SRC_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"CLIENT_ID"&lt;BR /&gt;'09'x&lt;BR /&gt;"CLIENT_ACCT_NUM"&lt;BR /&gt;'09'x&lt;BR /&gt;"PRODT_CTGRY_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"CLIENT_BEN_KEY"&lt;BR /&gt;'09'x&lt;BR /&gt;"BEN_PLAN_NUM"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_ELGBTY_CVRG_EFF_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_ELGBTY_CVRG_TERM_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"RCD_EFF_TS"&lt;BR /&gt;'09'x&lt;BR /&gt;"RCD_TERM_TS"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_INTGRD_DTL_SV_EFF_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_INTGRD_DTL_SV_TERM_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"PRODT_FAM_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"PRODT_TY_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_BEHVRAL_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_DENT_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_MED_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_PHRM_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_VSN_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_EAP_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_INTGRD_DTL_INCRMTL_SV_KEY"&lt;BR /&gt;'09'x&lt;BR /&gt;"CRET_TS"&lt;BR /&gt;'09'x&lt;BR /&gt;"UPDT_TS"&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;set CLIENT.IEID_98233475_INCRMTL end=EFIEOD;&lt;BR /&gt;format CURR_RCD_IND $1. ;&lt;BR /&gt;format INDIV_ENTPR_ID $40. ;&lt;BR /&gt;format CHNL_SRC_CD $10. ;&lt;BR /&gt;format CLIENT_ID $10. ;&lt;BR /&gt;format CLIENT_ACCT_NUM $10. ;&lt;BR /&gt;format PRODT_CTGRY_CD $30. ;&lt;BR /&gt;format CLIENT_BEN_KEY $32. ;&lt;BR /&gt;format BEN_PLAN_NUM $10. ;&lt;BR /&gt;format CUST_ELGBTY_CVRG_EFF_DT yymmdd10. ;&lt;BR /&gt;format CUST_ELGBTY_CVRG_TERM_DT yymmdd10. ;&lt;BR /&gt;format RCD_EFF_TS E8601DT26.6 ;&lt;BR /&gt;format RCD_TERM_TS E8601DT26.6 ;&lt;BR /&gt;format CUST_INTGRD_DTL_SV_EFF_DT yymmdd10. ;&lt;BR /&gt;format CUST_INTGRD_DTL_SV_TERM_DT yymmdd10. ;&lt;BR /&gt;format PRODT_FAM_CD $30. ;&lt;BR /&gt;format PRODT_TY_CD $30. ;&lt;BR /&gt;format CVRG_BEHVRAL_IND $1. ;&lt;BR /&gt;format CVRG_DENT_IND $1. ;&lt;BR /&gt;format CVRG_MED_IND $1. ;&lt;BR /&gt;format CVRG_PHRM_IND $1. ;&lt;BR /&gt;format CVRG_VSN_IND $1. ;&lt;BR /&gt;format CVRG_EAP_IND $1. ;&lt;BR /&gt;format CUST_INTGRD_DTL_INCRMTL_SV_KEY $32. ;&lt;BR /&gt;format CRET_TS E8601DT26.6 ;&lt;BR /&gt;format UPDT_TS E8601DT26.6 ;&lt;BR /&gt;do;&lt;BR /&gt;EFIOUT + 1;&lt;BR /&gt;put CURR_RCD_IND $ @;&lt;BR /&gt;put INDIV_ENTPR_ID $ @;&lt;BR /&gt;put CHNL_SRC_CD $ @;&lt;BR /&gt;put CLIENT_ID $ @;&lt;BR /&gt;put CLIENT_ACCT_NUM $ @;&lt;BR /&gt;put PRODT_CTGRY_CD $ @;&lt;BR /&gt;put CLIENT_BEN_KEY $ @;&lt;BR /&gt;put BEN_PLAN_NUM $ @;&lt;BR /&gt;put CUST_ELGBTY_CVRG_EFF_DT @;&lt;BR /&gt;put CUST_ELGBTY_CVRG_TERM_DT @;&lt;BR /&gt;put RCD_EFF_TS @;&lt;BR /&gt;put RCD_TERM_TS @;&lt;BR /&gt;put CUST_INTGRD_DTL_SV_EFF_DT @;&lt;BR /&gt;put CUST_INTGRD_DTL_SV_TERM_DT @;&lt;BR /&gt;put PRODT_FAM_CD $ @;&lt;BR /&gt;put PRODT_TY_CD $ @;&lt;BR /&gt;put CVRG_BEHVRAL_IND $ @;&lt;BR /&gt;put CVRG_DENT_IND $ @;&lt;BR /&gt;put CVRG_MED_IND $ @;&lt;BR /&gt;put CVRG_PHRM_IND $ @;&lt;BR /&gt;put CVRG_VSN_IND $ @;&lt;BR /&gt;put CVRG_EAP_IND $ @;&lt;BR /&gt;put CUST_INTGRD_DTL_INCRMTL_SV_KEY $ @;&lt;BR /&gt;put CRET_TS @;&lt;BR /&gt;put UPDT_TS @;&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;if EFIEOD then call symputx('_EFIREC_',EFIOUT);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830939#M328354</guid>
      <dc:creator>BRKS2</dc:creator>
      <dc:date>2022-08-29T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830942#M328356</link>
      <description>&lt;P&gt;You do not want the last variable to have the @ in the last put statement. That prevents any following output from appearing on the next line.&lt;/P&gt;
&lt;P&gt;If you look at your output file you should see lots of data to right of the "first record" on the same line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/432565"&gt;@BRKS2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Woot!&amp;nbsp; That is great - thank you so much!&lt;/P&gt;
&lt;P&gt;I just have one follow up question...&lt;/P&gt;
&lt;P&gt;I coded my own export as follows, but I'm only getting the first record in the export.&lt;/P&gt;
&lt;P&gt;Can&amp;nbsp; you tell me how to fix my make-shift code so that all of the records are exported?&lt;/P&gt;
&lt;P&gt;Thanks so much - you are a lifesaver!&lt;/P&gt;
&lt;P&gt;Barb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;%let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;%let _EFIREC_ = 0; /* clear export record count macro variable*/&lt;BR /&gt;file '/sasem/gbmkuser/client/incrmtl_ieid_98233475.txt' delimiter='09'x DSD lrecl=32767;&lt;BR /&gt;if _n_ = 1 then /* write column names or labels */&lt;BR /&gt;do;&lt;BR /&gt;put&lt;BR /&gt;"CURR_RCD_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"INDIV_ENTPR_ID"&lt;BR /&gt;'09'x&lt;BR /&gt;"CHNL_SRC_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"CLIENT_ID"&lt;BR /&gt;'09'x&lt;BR /&gt;"CLIENT_ACCT_NUM"&lt;BR /&gt;'09'x&lt;BR /&gt;"PRODT_CTGRY_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"CLIENT_BEN_KEY"&lt;BR /&gt;'09'x&lt;BR /&gt;"BEN_PLAN_NUM"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_ELGBTY_CVRG_EFF_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_ELGBTY_CVRG_TERM_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"RCD_EFF_TS"&lt;BR /&gt;'09'x&lt;BR /&gt;"RCD_TERM_TS"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_INTGRD_DTL_SV_EFF_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_INTGRD_DTL_SV_TERM_DT"&lt;BR /&gt;'09'x&lt;BR /&gt;"PRODT_FAM_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"PRODT_TY_CD"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_BEHVRAL_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_DENT_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_MED_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_PHRM_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_VSN_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CVRG_EAP_IND"&lt;BR /&gt;'09'x&lt;BR /&gt;"CUST_INTGRD_DTL_INCRMTL_SV_KEY"&lt;BR /&gt;'09'x&lt;BR /&gt;"CRET_TS"&lt;BR /&gt;'09'x&lt;BR /&gt;"UPDT_TS"&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;set CLIENT.IEID_98233475_INCRMTL end=EFIEOD;&lt;BR /&gt;format CURR_RCD_IND $1. ;&lt;BR /&gt;format INDIV_ENTPR_ID $40. ;&lt;BR /&gt;format CHNL_SRC_CD $10. ;&lt;BR /&gt;format CLIENT_ID $10. ;&lt;BR /&gt;format CLIENT_ACCT_NUM $10. ;&lt;BR /&gt;format PRODT_CTGRY_CD $30. ;&lt;BR /&gt;format CLIENT_BEN_KEY $32. ;&lt;BR /&gt;format BEN_PLAN_NUM $10. ;&lt;BR /&gt;format CUST_ELGBTY_CVRG_EFF_DT yymmdd10. ;&lt;BR /&gt;format CUST_ELGBTY_CVRG_TERM_DT yymmdd10. ;&lt;BR /&gt;format RCD_EFF_TS E8601DT26.6 ;&lt;BR /&gt;format RCD_TERM_TS E8601DT26.6 ;&lt;BR /&gt;format CUST_INTGRD_DTL_SV_EFF_DT yymmdd10. ;&lt;BR /&gt;format CUST_INTGRD_DTL_SV_TERM_DT yymmdd10. ;&lt;BR /&gt;format PRODT_FAM_CD $30. ;&lt;BR /&gt;format PRODT_TY_CD $30. ;&lt;BR /&gt;format CVRG_BEHVRAL_IND $1. ;&lt;BR /&gt;format CVRG_DENT_IND $1. ;&lt;BR /&gt;format CVRG_MED_IND $1. ;&lt;BR /&gt;format CVRG_PHRM_IND $1. ;&lt;BR /&gt;format CVRG_VSN_IND $1. ;&lt;BR /&gt;format CVRG_EAP_IND $1. ;&lt;BR /&gt;format CUST_INTGRD_DTL_INCRMTL_SV_KEY $32. ;&lt;BR /&gt;format CRET_TS E8601DT26.6 ;&lt;BR /&gt;format UPDT_TS E8601DT26.6 ;&lt;BR /&gt;do;&lt;BR /&gt;EFIOUT + 1;&lt;BR /&gt;put CURR_RCD_IND $ @;&lt;BR /&gt;put INDIV_ENTPR_ID $ @;&lt;BR /&gt;put CHNL_SRC_CD $ @;&lt;BR /&gt;put CLIENT_ID $ @;&lt;BR /&gt;put CLIENT_ACCT_NUM $ @;&lt;BR /&gt;put PRODT_CTGRY_CD $ @;&lt;BR /&gt;put CLIENT_BEN_KEY $ @;&lt;BR /&gt;put BEN_PLAN_NUM $ @;&lt;BR /&gt;put CUST_ELGBTY_CVRG_EFF_DT @;&lt;BR /&gt;put CUST_ELGBTY_CVRG_TERM_DT @;&lt;BR /&gt;put RCD_EFF_TS @;&lt;BR /&gt;put RCD_TERM_TS @;&lt;BR /&gt;put CUST_INTGRD_DTL_SV_EFF_DT @;&lt;BR /&gt;put CUST_INTGRD_DTL_SV_TERM_DT @;&lt;BR /&gt;put PRODT_FAM_CD $ @;&lt;BR /&gt;put PRODT_TY_CD $ @;&lt;BR /&gt;put CVRG_BEHVRAL_IND $ @;&lt;BR /&gt;put CVRG_DENT_IND $ @;&lt;BR /&gt;put CVRG_MED_IND $ @;&lt;BR /&gt;put CVRG_PHRM_IND $ @;&lt;BR /&gt;put CVRG_VSN_IND $ @;&lt;BR /&gt;put CVRG_EAP_IND $ @;&lt;BR /&gt;put CUST_INTGRD_DTL_INCRMTL_SV_KEY $ @;&lt;BR /&gt;put CRET_TS @;&lt;BR /&gt;put UPDT_TS @;&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;if EFIEOD then call symputx('_EFIREC_',EFIOUT);&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830942#M328356</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-29T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830944#M328358</link>
      <description>&lt;P&gt;Thank you, thank you, thank you!!!!!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830944#M328358</guid>
      <dc:creator>BRKS2</dc:creator>
      <dc:date>2022-08-29T17:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: change export format of datetime data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830995#M328371</link>
      <description>&lt;P&gt;Here is picture format for ymd hms with space instead of T between the two.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
  picture  ymdhms (default=19)
    low-high='%Y-%0m-%0d %0H:%0M:%0s' (datatype=datetime)
    other = 'unknown'
  ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;3251  data _null_;
3252    now=datetime();
3253    put now ymdhms26.6 ;
3254  run;

2022-08-29 16:29:57.804000
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 20:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-export-format-of-datetime-data/m-p/830995#M328371</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-29T20:33:58Z</dc:date>
    </item>
  </channel>
</rss>

