Link to home
Start Free TrialLog in
Avatar of morinia
moriniaFlag for United States of America

asked on

Creating over 32 output datasets in SAS

Experts,

I am creating over 30 output files  from an input file.  Every 800 records I need to create another file.  Does anyone know of a way to loop through the file either in a data step or Proc Sql to create the output file based on the _n_ value of the input?
Avatar of lcohan
lcohan
Flag of Canada image

Here's an example of a stored procedure to page large tables or data sets that you could use to "page"(create) your record sets (#temp tables for instance ) each having 800 records by whatever criteria you need.

http://www.mssqltips.com/sqlservertip/1699/sql-server-stored-procedures-to-page-large-tables-or-queries/
ASKER CERTIFIED SOLUTION
Avatar of Aloysius Low
Aloysius Low
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of morinia

ASKER

Worked like a charm.