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
 

 

Program to read multiple fixed length files.

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

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Mar 02, 2010 7:14 am    Post subject: Program to read multiple fixed length files.
Reply with quote

I used Cobol code from this site to dynamically open, read, and close files that have the same record size. It works fine.

Now I would like to use the same program to dynamically open, read, and close files that are fixed but have different record sizes.

S Vazifdar
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Tue Mar 02, 2010 7:28 am    Post subject:
Reply with quote

Is there a question in your post?
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Mar 02, 2010 7:34 am    Post subject: Reply to: Program to read multiple fixed length files.
Reply with quote

I think there was a long topic that discussed this issue back and forth with the ultimate conclusion being that no, it's not possible to dynamically read fixed-length files of various lengths with a single COBOL FD statement.

I'll see if I can find it ...

I think this is it:

http://www.ibmmainframes.com/viewtopic.php?t=38465&highlight=variable
Back to top
View user's profile Send private message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Mar 02, 2010 7:39 am    Post subject: Reply to: Program to read multiple fixed length files.
Reply with quote

I am sorry.

Yes, the question I am asking - is it possible to write one Cobol program that will read any fixed length file with any record size ?
Back to top
View user's profile Send private message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Mar 02, 2010 7:46 am    Post subject: Reply to: Program to read multiple fixed length files.
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


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