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
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 |
Answer / ganesh
by writing Put _all_; is the easy option to produce an
external file.
| Is This Answer Correct ? | 1 Yes | 1 No |
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 |
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 |
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
what is the difference between x=substr(name,1,2); and substr(name,1,2)='x';
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
What is the work of tranwrd function?
We have a string like this "kannafromsalembut" ,from this i want to get only "fromsal" (but one condition with out using substring function)here we can not use scan because in the given string there is no delimeter? so give ans without out using substring ?
how many types prompting framework can be broken down to? : Sas-bi
What data sets do you need to produce the report?
What is a post baseline?
How do i read multiple spaces in datasets?
Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.
Can we create datasets by proc step ? (Proc contents, Means)?
What are the implications?