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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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