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 the order of application for output data set options, input data set options and SAS statements?

1076


For what purpose would you use the RETAIN statement?

1036


Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager

1604


Mention the difference between ceil and floor functions in sas?

636


Describe the ways in which you can create a macro variable?

615






How do dates work in SAS data?

675


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

501


Which function is used to count the number of intervals between two sas dates?

564


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

934


What is a method to debug and test your SAS program?

706


what is the difference between nodup and nodupkey options? : Sas programming

611


What makes sas stand out to be the best over other data analytics tools?

579


How to create a permanent sas data set?

668


If you could design your ideal job, what would it look like?

2363


Did you used proc test? when?

1569