CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS MAINFRAME DETAILS
    Question :
    how can we read the last 1000 records of a file using some sort utility?

    Posted by: neha on 6/13/2010

    Contact neha Contact neha
    Category Mainframe Interview Questions
    Rating (0.4) By 394 users
    Added on 6/13/2010
    Views 1521
    Rate it!
    Answers:

    We can STARTREC and ENDREC parameter of a SORT utility copy select records from a infile to outfile.



    Posted by: Manindra Kumar    

    Contact Manindra Kumar Contact Manindra Kumar

    by useing omit cond we can do that one

    we dont want first 1000 records
    omit cond-(postion,lenth,bi gtequal,c'1000')



    Posted by: divakar    

    Contact divakar Contact divakar

    first sort the file in descending order by usingsort utility,then put a filter STOP AFTER= 1000.
    Ex:
    sort fields= (0,10,ch,desc),
    then in next step

    stop aft= 1000,
    sort fields= copy.



    Posted by: naveen kumar    

    Contact naveen kumar Contact naveen kumar

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    why do we use S9(4) comp to define the PARM length and not s9(4)comp-3? which is better?
    View Answer
    what is the maximum no of characterts that can be passed thru PARM in jcl?
    View Answer
    What will the PDS utility do for TSO?
    View Answer
    Is it a Mainframe Systems problem or a Network Systems problem?
    View Answer
    What is IAM (Innovation Access Method) and why is it better than VSAM?
    View Answer
    How do I know which archived data sets are about to expire?
    View Answer
    What datasets are archived from disk and how long are they kept?
    View Answer
    Where and how to use JCL process(premap and response map)?
    View Answer
    what is the diff between dbrm.lib and loadlib what r they used for
    View Answer
    What is meant by impact analysis?
    View Answer
    What are different types of process in jcl?
    View Answer
    What is difference between oracle and sqlserver ?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Mainframe Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.030762 Seconds