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

what is sas enterprise intelligence architecture? : Sas-bi

547


Have you ever used the SAS Debugger?

1210


What is the use of %include statement?

623


What is the function of Stop statement in a SAS Program?

647


what is data access? : Sas-di

610






If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

612


what r the job openings SAS for fresher graduates !

2019


Explain the use of proc print and proc contents?

562


Difference between sum function and using “+” operator?

606


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4054


what is slowly changing dimension? : Sas-di

627


What’s the difference between var b1 – b3 and var b1 — b3?

835


Name types of category in which SAS Informats are placed?

738


What are the limitations for memory allocation for SAS variables

934


Explain the difference between informat and format with an example.

689