01-11-2016 02:39 PM
this is my program :
filename abcd 'c:/sample.csv';
delimiter=' ,' dsd 1rec1=350;
then do ;
put ' date '
in output date variable appears as 1045 instead of 001045 .
01-11-2016 02:44 PM
Open the file with a text editor and you'll see the leading zeroes.
Excel is trying to be smart and removing the 0's.
You can also view this by opening Excel and then importing the data rather than opening the file directly with Excel. The import wizard will allow you to specify variable type - character rather than numeric.
01-11-2016 03:25 PM