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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm

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