How do you download a flat file from Mainframe to your
local PC using SAS?

Answer Posted / sastechies

I would use FileName FTP statement...

FILENAME FILE2 FTP 'PDSNAME' HOST='host'
CD= "'dir'"
user='user'
pass='pass'
lrecl=256
debug;

data _NULL_;
infile FILE2 lrecl=26095;
file "file.txt" lrecl=3000 pad;
input;
put _infile_;
run;


Any other method....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

describe the interaction table in sas di? : Sas-di

734


where are dashboard components are created and maintained? : Sas-bi

735


Explain substr function?

732


How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

2531


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

886






for report generation which one you used proc report or data_null_?

6979


what are the scrubbing procedures in sas? : Sas programming

990


What are the table names in oracle database...?

2430


What is the sas data set? : sas-grid-administration

715


What is the difference between one to one merge and match merge? Give an example.

750


how would you create multiple observations from a single observation? : Sas programming

729


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

865


Describe a time when you were really stuck on a problem and how you solved it?

2358


what are the best practices to process the large data sets in sas programming? : Sas-administrator

704


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

717