GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Data Warehousing

 Print  |  
Question:  How to retrieve las ten or first ten rows from a flatfile



May 05, 2008 08:59:56 #1
 ambika shanmugam Mainframe Expert  Member Since: January 2007    Total Comments: 2 

RE: How to retrieve las ten or first ten rows from a flatfile
 
Using the SORT operation, we can retrieve the set of records from the flat file
 Sample command;

SORT FIELDS COPY
STOPAFT=10 (stop after 10th record)
SKIPREC=10 (skip first 10 records)
 
     

 

Back To Question