Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Extract only 500 to 1000 Records from 10000 Records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Wed Jun 01, 2005 9:58 am    Post subject: Extract only 500 to 1000 Records from 10000 Records
Reply with quote

hi,

i'm having flat file of 10000 records in cobol,but i want only 500 to 1000 ,how can i do it.only y using cobol syntax(not by using dfsort),plz any one give me sugestion.


Regards,
kumar
Back to top
View user's profile Send private message

asr1983

New User


Joined: 31 May 2005
Posts: 11

PostPosted: Thu Jun 02, 2005 10:53 am    Post subject: Re: mainframe -basics cobol
Reply with quote

hi kumar,
As you are saying it as a flat file, you must be having a file structure for it.
So, you can skip the first 500 records and then fetch the next 500 records .

Ex : perform para-1 varying x from 1 by 1 until x = 1000

in para-1 you will be dispaying the records.

as the loop will be continuing until x = 1000 , you will get 500 to 1000 records
Back to top
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 141
Location: South Africa

PostPosted: Thu Jun 02, 2005 11:55 am    Post subject: Re: mainframe -basics cobol
Reply with quote

Hi Karthi,

I agree with asr, but you can still make your job easy if you repro it to a ksds, and then use the key value for dynamic access from 500 to 1000 records.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us