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 are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

771


what techniques and/or procs do you use for tables? : Sas programming

792


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

770


What is the difference between %local and %global? : sas-macro

878


In sas, what are the areas that you are most interested in? : sas-grid-administration

833


Explain the difference between nodup and nodupkey options?

795


Explain the use of proc print and proc contents?

730


what is sas application server? : Sas-di

725


which date function advances a date, time or datetime value by a given interval? : Sas programming

795


What are the ways to do a “table lookup” in sas?

781


How to limit decimal places for the variable using proc means?

809


Approximately what date is represented by the SAS date value of 730?

976


What’s the difference between var b1 – b3 and var b1 — b3?

1056


Are you sensitive to code walk-throughs peer review or QC review?

2893


name some data transformation used in sas di? : Sas-di

743