How would you remove a format that has been permanently
associated with a variable?
________________

Answers were Sorted based on User's Feedback



How would you remove a format that has been permanently associated with a variable? _____________..

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

How would you remove a format that has been permanently associated with a variable? _____________..

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

How would you remove a format that has been permanently associated with a variable? _____________..

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

How would you remove a format that has been permanently associated with a variable? _____________..

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

How would you remove a format that has been permanently associated with a variable? _____________..

Answer / bhimanagouda

Use the previous format...So u can delete the new one

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More SAS Interview Questions

What are the difference between the sas data step and sas procs?

0 Answers  


what is sas metadata repository? : Sas-bi

0 Answers  


what is the difference between sas and other datawarehousing languages?what are the advantages of sas over them?

2 Answers   Accenture, Infosys,


Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.

7 Answers   Accenture,


Difference between nodup and nodupkey options?

0 Answers  






What is run-group processing?

0 Answers  


What would you change about your job?

0 Answers   Oracle,


Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?

1 Answers  


How we can call macros with in data step? : sas-macro

0 Answers  


Difference between SAS STATA & SPSS?

0 Answers  


What do you know about symput and symget?

0 Answers  


What are the rows present in protocol Violation table?

2 Answers   Accenture, Quintiles,


Categories