Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / paul

A flat file from mainframes generally have data values assigned with the variable names.
eg: cards;
name=XXX Age=XX Gender=XXXX
name=XXX Age=XX Gender=XXXX
name=XXX Age=XX Gender=XXXX
name=XXX Age=XX Gender=XXXX
;
so to read such data into SAS we simply use named input method.
data flat;
infile 'flatfile.csv';
input var1= $ var2= var3= :ddmmyy10. var4= ;
run;
/*here i specified var1 as char, var3 with date informat
rest are numeric vars */

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 intially documentation in sas?

4952


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

917


name some data transformation used in sas di? : Sas-di

911


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

7622


what do you mean by data staging area? : Sas-di

1063


What are the applications primarily used by business analyst? : Sas-bi

941


what is function of retain statment

1975


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

1040


Mention common programming errors committed in sas ?

1056


What Proc glm does?

1021


what is the use of sas management console? : Sas-di

1032


I have a dataset concat having variable a b & c. How to rename a b to e & f?

960


What is the difference between input and infile statement?

1110


What is the use of the %include statement?

1082


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

1002