Interview Questions   Tutorials   Discussions   Programs   Videos   

SAS - What is picture format? give any one example?




297
views
asked mar September 20, 2014 06:29 AM  

What is picture format? give any one example?


           

1 Answers



 
answered By vishnoiprem   0  

Picture format is used to Create a template for printing numbers.

PICTURE name <(format-option(s))> <...value-range-set-n <(picture-n-option(s))>>>;

options nodate pageno=1 linesize=64 pagesize=60;

data sample;
   input Amount;
   datalines;
-2.051
-.05
-.017
  0
 .093
 .54
 .556
6.6
14.63
;

proc print data=sample;
   title 'Default Printing of the Variable Amount';
run;


  Default Printing of the Variable Amount            1

                     Obs     Amount

                      1      -2.051
                      2      -0.050
                      3      -0.017
                      4       0.000
                      5       0.093
                      6       0.540
                      7       0.556
                      8       6.600
                      9      14.630
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert