DATA Step, Macro, Functions and more

Not getting correct output

Reply
New User
Posts: 1

Not getting correct output

Hi sir ,

 

I am typing this code 

data test ;

input dob ;

informat dob date9. ;

format dob date9. ;

datalines;

01jan2017

;

run 

 

 

still i m getting output 01jan201

but on other system i m getting correct output

 

kindly help me out in resolving this problem

 

thank you.

Super User
Posts: 6,637

Re: Not getting correct output

Your output is correct ... you just can't see it all.  Try expanding the width of the column, so it can display the entire value.

Super User
Posts: 23,323

Re: Not getting correct output

Agreed.

It works fine, try using PROC PRINT to view the output instead. 


sanyam1 wrote:

Hi sir ,

 

I am typing this code 

data test ;

input dob ;

informat dob date9. ;

format dob date9. ;

datalines;

01jan2017

;

run 

 

 

still i m getting output 01jan201

but on other system i m getting correct output

 

kindly help me out in resolving this problem

 

thank you.


 

Ask a Question
Discussion stats
  • 2 replies
  • 138 views
  • 0 likes
  • 3 in conversation