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

How many data types are there in SAS?

1132


How do you add a number to a macro variable? : sas-macro

1052


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

1050


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

1336


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1226


explain what is factor analysis? : Sas-administrator

1173


For what purpose would you use the RETAIN statement?

1585


how would you determine the number of missing or nonmissing values in computations? : Sas programming

1201


How to test the debugging in sas?

1243


what is information maps?

2282


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

1079


What do the put and input function do?

1112


Explain append procedure?

1134


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

1132


how many types of prompts are there? : Sas-bi

1125