How would you remove a format that has been permanently
associated with a variable?
________________
Answers were Sorted based on User's Feedback
Answer / name is no need
we can remove the format by using procdatasets:
Procdatasets;
modify <data set name>;
format <variable name>(which variable format needs to
modify>;
run;
quit;
| Is This Answer Correct ? | 22 Yes | 2 No |
Answer / lakshmi
1. To remove formats permenantly then use this code in data
step,
data data2;
set data1;
format _all_; /* To remove format */
informat _all_; /* To remove informat */
run;
2. To remove formats permenantly then use this code in proc,
proc sort data=data1;
by subject;
format _all_;
run;
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / neel
There is also an another way.
data a;
attrib var1 label='Desired Label' format=desiredformat.;
set b;
run;
In this case the format associated with variable var1 in
dataatset b will be changed permanently in dataset a.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sonu
proc datasets library=<library name where the dataset has been stored>;
modify <dataset name>;
format <variable name>;
run;
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / bhimanagouda
Use the previous format...So u can delete the new one
| Is This Answer Correct ? | 0 Yes | 8 No |
How do you add a number to a macro variable?
what are the component of range? : Sas-bi
What are the main differences between sas versions 8.2, 9.0, 9.1?
what does .. meant in sas macros
Mention some common errors that are usually committed in sas programming.
In SAS explain which statement does not perform automatic conversions in comparisons?
What is the difference between Regression and Logistic Regression? Can u explain the Assumptions/Conditions?
What SAS statements would you code to read an external raw data file to a DATA step?
What are the different types of sas functions?
What are the differences between proc means and proc summary?
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specfications?