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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm


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