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

What is the role of sas grid administrator? : sas-grid-administration

0 Answers  


what is the difference between informat$8. $char8.

3 Answers   SAS,


what are some differences between proc summary and proc means? : Sas programming

0 Answers  


Did you used proc lifetest? when?

2 Answers   Accenture, Parexel, Quintiles,


In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?

6 Answers  






how do u validate sas program

3 Answers   Accenture,


how do i read multiple spaces in datasets? eg: vijaya raghava perumal.I tried with using & but it workss if its vijaya raghava but not for raghava perumal.how to do this?

8 Answers   Wipro, Xansa,


How many data types are there in SAS?

0 Answers  


Name statements that are recognized at compile time only?

3 Answers   Accenture,


Which date functions advances a date time or date/time value by agiven interval?

3 Answers  


What is the purpose of trailing @ and @@? How do you use them?

0 Answers  


how do we get duplicate observations in a separate dataset?

6 Answers   CitiGroup,


Categories