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 / durga g

DATA step copies records from the input file to the output
file without creating any SAS variables:

data _null_;
infile file-specification-1;
file file-specification-2;
input;
put _infile_;
run;

Is This Answer Correct ?    6 Yes 1 No

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

Answer / ganesh

by writing Put _all_; is the easy option to produce an
external file.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / prakash hullathi

DATA step copies records from the input file to the output
file without creating any SAS variables:

data _null_;
/*To read the external taw data file*/
infile 'file-specification-1';
input var1 var2 $ var3;
/*To write the external raw data file*/
file 'file-specification-2';
put var1 var2 var3;
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 / jothi sankar


PUT _ALL_;

Eg:

DATA
_NULL_;
SET MYDATA; --> is got from external input file
FILE OFILE<is having output file path>;

PUT _ALL_; --> is for writing values with variables

PUT (_ALL_) (+0); --> is for writing only values

RUN;


Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SAS Interview Questions

how does sas know on which server the piece of code to be executed ? say if a proc olap code is written then how the sas application would detect on which server to execute.

1 Answers   TCS,


Which command is used to perform sorting in sas program?

0 Answers  


What's the difference between VAR A1 - A4 and VAR A1 - A4?

1 Answers   Quintiles,


There is a river notoriously known for it?s large crocodile population. With ease, how do you safely cross it?

1 Answers   Oracle,


One way of creating a new variable in Macros is by % Let....What is the other way..?

5 Answers   TCS,






Describe how you would pass data to macro.

3 Answers  


What is factor analysis?

0 Answers  


Describe the ways in which you can create macro variables? : sas-macro

0 Answers  


what is sas data set?

0 Answers  


What are SAS/ACCESS and SAS/CONNECT?

0 Answers  


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

0 Answers  


Mention the difference between ceil and floor functions in sas?

0 Answers  


Categories