IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how can we read the 3rd, 5th, 12th records


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajeshbalina

New User


Joined: 13 Mar 2005
Posts: 1
Location: chennai

PostPosted: Sun Mar 27, 2005 12:10 am
Reply with quote

how can we read the 3rd, 5th, 12th records in a flat file.
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Mon Mar 28, 2005 7:52 am
Reply with quote

If it's a sequential file, read all the records and fetch only those required with a counter.

If it's random file, move 3, 5 and 12 to the Key field before fetching the records.

Better you refer good cobol manuals.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Identify and write records containing... SYNCSORT 11
No new posts Filter records where condition is in ... SYNCSORT 6
No new posts Extract records for a specific condit... DFSORT/ICETOOL 25
Search our Forums:


Back to Top