What is the difference between informat and format statement?
Answer / ankit singh
Formats tells sas how to write the data to the output dataset and converts numeric to character value.
e.g. data out;
x=0;
format x date9.;
run;
Informats directs SAS to how to read the data from the source and converts charater to numeric value.;
| Is This Answer Correct ? | 0 Yes | 0 No |
WHAT DIFFERRENCE DID YOU FIND AMONG VERSION 6 8 AND 9 OF SAS.
Can anyone help me about SAS Realtime scenarios in Clinical field
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
here is a string like chq.2312244%4452- from that i want only special characters in a column. dont use compress. bcoz i have 1.2 billion of records.i want another process to find the values instant from the data.
How would you include common or reuse code to be processed along with your statements?
how to generate report for 0 observation dataset?
is there any differnce between proc means and proc summary?
Can Some one Explain How the Datasets from SAS can be loaded in to the MVS OS?
Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.
how to import HTML files into SAS datasets?
for what purpose would you use the retain statement? : Sas programming
In this question, I rename the numeric variable phone to numphone and then try use phone=put(numphone,comma16.) to store the numeric value numphone as a string value in phone. But I get a warning tha numphone already exists and in the data sat phone doesnt exist and numphone is set to missing. Why? data names_and_more; input Name $20. Phone : comma16. Height & $10. Mixed & $8.; Name = tranwrd(Name,' ',' '); rename phone = numphone; phone = put(numphone,comma16.); datalines; Roger Cody 9,087,821,234 5ft. 10in. 50 1/8 Thomas Jefferson 3,158,488,484 6ft. 1in. 23 1/2 Marco Polo 8,001,234,567 5Ft. 6in. 40 Brian Watson 5,183,551,766 5ft. 10in 89 3/4 Michael DeMarco 4,452,322,233 6ft. 76 1/3 ;