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?

Answers were Sorted based on User's Feedback



If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / sumit

data _null_;
infile 'path';
input;
file 'destination path';
put _infile_;
run;

Is This Answer Correct ?    16 Yes 2 No

If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / jim

filename indata 'c:\test_input.txt';
data _null_;
infile indata;
file 'c:\test_output.txt';
input;
put _infile_;
run;

Is This Answer Correct ?    11 Yes 2 No

If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / aditya panwar

importing
to used input and infile.

Is This Answer Correct ?    1 Yes 0 No

If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / sunymuny

A PUT Statement using a Variable _all_ can be used to
achieve this task. where we wont have to mention all the
variable names for output using put statement.

Is This Answer Correct ?    4 Yes 4 No

If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / 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

If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / selvi

_all_ - Write all var present in Dataset including computed
variables also.
_input_- write only those variables read from input file

Is This Answer Correct ?    0 Yes 3 No

If reading an external file to produce an external file, what is the shortcut to write that record ..

Answer / nandu

data test ;
infile "Path";
input var1 var2 var3 ;
file print 'path';
put @1 var1 @10 var2 ;
run;

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More SAS Interview Questions

%STPbegin;%STPEND; ERROR: No logical assign for filename _WEBOUT. WARNING: No body file. HTML output will not be created. unable to fix it.plz help

2 Answers  


In the flow of DATA step processing, what is the first action in a typical DATA Step?

6 Answers   Accenture,


What is the order of evaluation of the comparison operators: + - * /** ()?

3 Answers   Quintiles,


Can anyone help to find a statement to get all the predefined formats?

3 Answers   Verinon Technology Solutions,


Give e an example of..

0 Answers  






Give some ways by which you can define the variables to produce the summary report (using proc report)?

0 Answers  


what is information maps?

0 Answers   CitiGroup,


What is the size of PDV?

2 Answers   L&T,


What are MIs reports? what is the use of MIS reports and How can u generate the MIS reports in SAS? If any body know explain with the eg.

2 Answers   ABC, ASD Lab, CitiGroup,


The below code we are using for creating more than one macro variables in proc sql using into clause. How we can use same code to create macro variables vara, varb, varc instead of var1, var2, var3.? proc sql noprint; select count(distinct(patient)) into :var1 - :var3 from dataset1 group by trtreg1c ; quit;

1 Answers   Accenture,


Please, anyone, let me know the style or an example of using 'by='/'by' variable of a PDV(Program Data Vector)

3 Answers   Verinon Technology Solutions,


What is the difference between the proc sql and data step?

0 Answers  


Categories