Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us