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

Read file from 99th record


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

New User


Joined: 22 Jul 2008
Posts: 2
Location: pune

PostPosted: Thu Sep 04, 2008 7:22 pm
Reply with quote

i've one file ( sequential or vsam ) say it has records from 1 to 1000, and i want to read that file from 99th record thru cobol program. how can i read. dynamically we can reach at 99th record using START AND READ NEXT COMMAND or move the record key to that record key. But there is no key or without using key can we directly reach to 99th record using cobol program.

is it possible??
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 04, 2008 7:28 pm
Reply with quote

neeraj.gehani wrote:
is it possible??


No. The file has to be read sequentially from the beginning until the desired record is reached.
Back to top
View user's profile Send private message
neeraj.gehani

New User


Joined: 22 Jul 2008
Posts: 2
Location: pune

PostPosted: Thu Sep 04, 2008 7:48 pm
Reply with quote

thanks kevin.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top