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
 

 

How may files a single cobol program read?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How may files a single cobol program read?
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

Site Director


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

PostPosted: Mon Jun 02, 2008 2:51 pm    Post subject:
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    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Mon Jun 02, 2008 3:34 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Jun 02, 2008 4:49 pm    Post subject:
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    Post subject: Reply to: How may files a single cobol program read?
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

Senior Member


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

PostPosted: Mon Jun 02, 2008 5:41 pm    Post subject: Re: Reply to: How may files a single cobol program read?
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    Post subject:
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

Active Member


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

PostPosted: Mon Jun 02, 2008 9:08 pm    Post subject:
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

Site Director


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

PostPosted: Mon Jun 02, 2008 9:19 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Jun 03, 2008 12:25 am    Post subject: Reply to: How may files a single cobol program read?
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    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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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