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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Approximately what date is represented by the SAS date value of 730?

984


Explain what is data step?

935


what is business intelligence? : Sas-bi

809


what is program data vector? : Sas-administrator

843


explain the use of % includes a statement in sas? : Sas-administrator

767


What are the difference between sas functions and procedures?

856


what are input dataset and output dataset options? : Sas programming

809


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

836


What is SAS? What are the functions does it performs?

955


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

840


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

2034


Can you suggest us materials for sdtm mapping?

4244


what is change analysis in sas di ? : Sas-di

802


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

756


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

2012