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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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