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 |
What is _n_?
What are exact SAS Base contents..?N what r SAS Tools..?
i have a null dataset with 10 variables; i want to print only name of the varibales in log window and also output window.how can we do this one?
What is the difference between one to one merge and match merge? Give an example.
What will calendar procedure do?
what is the difference between proc means and proc tabulate?
explain about various caches available in data integrator? : Sas-di
what is AE onset date and what is RDS?
tell me about use of arrays in sas
Which date functions advances a date time or date/time value by agiven interval?
how will you location sas platform applications available from web browser? : Sas-bi
What are the automatic variables for macro? : sas-macro