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 can you put a "trace" in your program? : Sas programming

0 Answers  


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

0 Answers   Quintiles,


How to create a permanent sas data set?

0 Answers  


What are types of transport files?

2 Answers   PRA Health Sciences, Quintiles,


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

0 Answers  






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

0 Answers  


whenever we using the merging through data set merging ,we can get note in log like this "MERGE STATEMENT HAS MORE THAN ONE ONE DATASET BY REPEATED BY VAIABLES" but the output has come in good manner,whenever in in sql(full join) we can get cartion product.so How do overcome this problem in sql?

1 Answers   Accenture,


How many missing values are available? When might you use them?

1 Answers   Quintiles,


Hi , which book should i refer to for preaparing SAS statistical Exam. Searched a lot on books but still did n't find relevant books

2 Answers  


what is program data vector? : Sas-administrator

0 Answers  


What is the registered Key word is sas????

2 Answers   TCS,


how can u extract,transform and loading?

2 Answers   CitiGroup,


Categories