what is picture format? give any one example?

Answers were Sorted based on User's Feedback



what is picture format? give any one example?..

Answer / bitla

picture format writes a template for numerics
proc format ;
picture sno
low - -1 = '00.00'
0-9='9.999'
10-99='99.99'
100-999='999.9'
;

When you specify zero as the digit selector, any leading
zeros in the number to be displayed are shown as
blanks. When nine is specified as the digit selector, the
leading zeros are displayed in the output.

Is This Answer Correct ?    13 Yes 0 No

what is picture format? give any one example?..

Answer / aravind rangaraj

picture format is used to Create a template for printing
numbers.
ex:
proc format ;
picture nozeros low - -1 = '00.00' (prefix='-')
-1< - < 0 = '99' (prefix='-.' mult=100)
0 - < 1 = '99' (prefix='.' mult=100)
1 - high = '00.00';
run;

Is This Answer Correct ?    5 Yes 0 No

what is picture format? give any one example?..

Answer / gaurav verma

proc format;
picture pctfmt low-high='009.90%';
run;
proc tabulate data=xyz;
class name gender;
var rbc wbc;
table (name all)*(genderb all),
rbc*(mean*f=9. pct*f=pctfmt7.2)
wbc*(mean*f=8. pct*f=pctfmt7.2);
keylabel rbc='red blood cell'
wbc='white blood cell'
pct='percent';
run;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

what is the use of catalog?

1 Answers   Cognizant,


When you will use nowd option in report???

6 Answers   Accenture,


What is the difference between INPUT and INFILE ?

0 Answers  


i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.

6 Answers   CTS,


Explain the difference between nodup and nodupkey options?

0 Answers  






how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

0 Answers  


WHAT IS DEBUGGING? HOW TO TEST THE DEBUGGING IN SAS?

3 Answers   Accenture,


how to remove the duplicates by proc sql?

2 Answers   Genpact,


how to import HTML files into SAS datasets?

3 Answers   HP,


What do you know about symput and symget?

0 Answers  


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

0 Answers   SAS,


If i doest required Cumilative frequency in my table, generated by using PROC FREQ what i had to do?

8 Answers   HCL,


Categories