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
 

 

Reading sequential file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
umanaga

New User


Joined: 09 Apr 2007
Posts: 33
Location: India

PostPosted: Thu Jan 03, 2008 11:15 am    Post subject: Reading sequential file
Reply with quote

Hi,
Is it possible to read sequential file in COBOL using a key.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Jan 03, 2008 11:27 am    Post subject:
Reply with quote

Umanaga,

Quote:
Is it possible to read sequential file in COBOL using a key.

Random access - No.
Back to top
View user's profile Send private message
kbalajie

New User


Joined: 07 Apr 2006
Posts: 1

PostPosted: Thu Jan 03, 2008 12:15 pm    Post subject: Is it possible to read sequential file in COBOL using a key.
Reply with quote

Hi,

A sequential file can be accessed only sequentially and it is organized sequentially. We cannot read it through a key.

If you want to do some operation for a particular row using the key value which you have assigned, then you have to read the file sequentially and use a "if" or "evaluate" to pick a particular row sequentially.

Again I am insisting there is no way you can read the sequential file using the key.

Thanks & Regards,
Balaji
Back to top
View user's profile Send private message
balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Thu Jan 03, 2008 12:28 pm    Post subject: Reply to: Reading sequential file
Reply with quote

One suggestion...If the record count is less you can load the seq file into an array and use it as a table..
Back to top
View user's profile Send private message
Max Payne

New User


Joined: 13 Dec 2007
Posts: 10
Location: Shanghai

PostPosted: Fri Jan 04, 2008 7:40 am    Post subject: Reply to: Reading sequential file
Reply with quote

Sequential File can only be accessed by sequential read.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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