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?

Answer Posted / prakhar sadafal

Use the _infile_ option in the put statement

view sourceprint?
filename some 'c:cool.dat';
filename cool1 'c:cool1.dat';
data _null_;
infile some;
input some;
file cool1;
put _infile_;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What versions of SAS have you used (on which platforms)?

1018


Describe 5 ways to do a “table lookup” in SAS?

703


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

4054


what is the use of proc sql? : Sas programming

600


Explain data_null_?

611






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

618


Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager

1614


Do you need to rearrange the order of the data for the report?

1840


Of all your work, where have you been the most successful?

4207


How to convert a numeric variable to a character variable?

634


Difference between nodup and nodupkey options?

637


What is Linear Regression?

689


What is the basic syntax of a sas program?

671


What is a method to debug and test your SAS program?

726


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

634