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

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

5 Answers   Quintiles, TCS,


what is difference in window SAS & Unix SAS.....how do define working environment in both???

1 Answers   JPMorgan Chase,


how to do user inputs and command line arguments in sas?

0 Answers   D&B, TCS,


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

7 Answers   Accenture,


What is the difference between using drop = data set option in data statement and set statement?

0 Answers  






This entry was posted in General. Bookmark the permalink. Post a comment or leave

0 Answers   Quintiles,


What is the use of PROC gplot?

0 Answers  


Can we create datasets by proc step ? (Proc contents, Means)?

2 Answers  


differnce between 8.2 and 9.1.3

1 Answers  


sas macros

12 Answers   TCS,


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

0 Answers  


if we dont want to print output what we have to do..???give syntax..???

8 Answers   Accenture, GSK GlaxoSmithKline,


Categories