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
 
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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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