IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Program to read multiple fixed length files.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

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

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

Global Moderator


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

PostPosted: Tue Mar 02, 2010 7:34 am
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:

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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top