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

How may files a single cobol program read?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
earsha

New User


Joined: 16 Mar 2007
Posts: 17
Location: Pune

PostPosted: Mon Jun 02, 2008 2:47 pm
Reply with quote

How may files a single cobol program read?is it 255
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 02, 2008 2:51 pm
Reply with quote

Hello,

You will get more usable replies if you describe what your requirement is.

Depending on what you actually need to do the answer may vary.
Back to top
View user's profile Send private message
earsha

New User


Joined: 16 Mar 2007
Posts: 17
Location: Pune

PostPosted: Mon Jun 02, 2008 3:00 pm
Reply with quote

i want to read 270 files in a single program.so is it possible?
Back to top
View user's profile Send private message
mohitsaini
Warnings : 1

New User


Joined: 15 May 2006
Posts: 92

PostPosted: Mon Jun 02, 2008 3:18 pm
Reply with quote

Do all the files have different LRECLs??

- Mohit
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jun 02, 2008 3:34 pm
Reply with quote

hard to understand how someone who does not know enough about cobol to find out how many FD's maybe declared in a COBOL program, would have the witherwithall to code such a match/merge?

again, what do you need to do with these 270 files?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jun 02, 2008 4:49 pm
Reply with quote

earsha wrote:
i want to read 270 files in a single program.so is it possible?
Ok, what's the problem did you face..?
Back to top
View user's profile Send private message
jckraheja

New User


Joined: 19 May 2008
Posts: 13
Location: Pune

PostPosted: Mon Jun 02, 2008 5:28 pm
Reply with quote

In my opinion,we can use maximum 3273 files in an single cobol program...as this is the limit for number of DD statement that we able to defined in the JCL.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jun 02, 2008 5:41 pm
Reply with quote

Hi,
jckraheja wrote:
In my opinion,we can use maximum 3273 files in an single cobol program...as this is the limit for number of DD statement that we able to defined in the JCL.
Please direct me to a pointer stating this.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Jun 02, 2008 6:50 pm
Reply with quote

It's a little more complex. Look at the MVS Initialization and Tuning Reference manual for a description of the TIOT size. This can vary by site and controls the maximum number of DDs without concatenations and with files on a single device.

You'll need to know the setting for your site. Ask the sysprogs.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon Jun 02, 2008 9:08 pm
Reply with quote

I had no idea personal opinions could settle specific technical issues.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 02, 2008 9:19 pm
Reply with quote

Hi Phil,

Quote:
I had no idea personal opinions could settle specific technical issues.
Surely, you jest. . . With the time you've been in the game icon_smile.gif

Seems to often depend on one's pay grade or billing rate.


The reason i hedged on the number of files is because of some of the things mentioned here and the entire business of dynamic allocation.

It would be interesting to hear why 270 individual files need to be processed in a single program. If we understood the real requirement, we might be able to offer some suggestions.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 03, 2008 12:25 am
Reply with quote

Quote:
i want to read 270 files in a single program.so is it possible?


it might be interesting to understand the application/business requirements
that lead to such a design
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top