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

How to merge the data using merge statement and proc format? Is the result is same ?

2 Answers  


How do you define proc in sas? : sas-grid-administration

0 Answers  


What would you change about your job?

0 Answers   Oracle,


how we can create optional or required parameters in SAS macro...

5 Answers   TCS,


Describe the ways in which you can create a macro variable?

0 Answers  






How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?

7 Answers   GSK, TNS,


what is information maps?

0 Answers   CitiGroup,


What are symget and symput? : sas-macro

0 Answers  


what are all the reports you generated in your recent project?

0 Answers   Accenture, Quintiles,


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

0 Answers   Oracle,


what is the primary variable in your study?

3 Answers   Accenture,


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

0 Answers  


Categories