I am new to SAS. I am trying to write to a txt file the following date format. 2015-47-31.06.47.31.235647. I am reading the date from a DB2 table and trying to write out the records to a txt file. I have tried different methods and read different threads. But no thread gave me the solution to the format that I want. the closest I came to what I need is with the following format 2015-47-31.06.47.31 using the below code. PROC FORMAT; PICTURE DATETS OTHER = '%0Y-%0M-%0D.%0H.%0M.%0S' (datatype=datetime); RUN; PROC PRINT DATA= EXAMPLE01; FORMAT ACC_ENY_ACT_TS DATETS.; RUN; Any help is greatly appreciated
... View more