Help using Base SAS procedures

import 10 obs using PROC IMPORT

Accepted Solution Solved
Reply
Super Contributor
Posts: 279
Accepted Solution

import 10 obs using PROC IMPORT

I want to add an option/statement to this step so that only the first 10 obs are imported.

proc import data=map_export datafile="G:\Departments\Research\MAP\1112\Oconee - &admin. - Clean.txt" dbms=dlm replace;

   delimiter='09'x;

run;


Accepted Solutions
Solution
‎10-03-2011 04:18 PM
Trusted Advisor
Posts: 1,301

import 10 obs using PROC IMPORT

There is no procedure specific option to directly limit the quantity the import procudre will read in, to my knowledge.

options obs=10;

proc import

  datafile="G:\Departments\Research\MAP\1112\Oconee - &admin. - Clean.txt"

  out=map_export

  dbms=dlm

  replace;

  delimiter='09'x;

run;

options obs=max;

View solution in original post


All Replies
Solution
‎10-03-2011 04:18 PM
Trusted Advisor
Posts: 1,301

import 10 obs using PROC IMPORT

There is no procedure specific option to directly limit the quantity the import procudre will read in, to my knowledge.

options obs=10;

proc import

  datafile="G:\Departments\Research\MAP\1112\Oconee - &admin. - Clean.txt"

  out=map_export

  dbms=dlm

  replace;

  delimiter='09'x;

run;

options obs=max;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 8942 views
  • 0 likes
  • 2 in conversation